Changeset 7347 in orxonox.OLD for trunk/src/world_entities/playable.cc
- Timestamp:
- Apr 19, 2006, 1:38:23 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/playable.cc
r7346 r7347 21 21 #include "player.h" 22 22 #include "state.h" 23 #include "camera.h" 24 23 25 #include "util/loading/load_param.h" 24 26 … … 251 253 */ 252 254 void Playable::setCameraMode(unsigned int cameraMode) 253 {} 255 { 256 State::getCamera()->setViewMode((Camera::ViewMode)cameraMode); 257 } 254 258 255 259 … … 265 269 else 266 270 { 271 this->enterPlaymode(playmode); 267 272 this->playmode = playmode; 268 273 return true; … … 289 294 * In this function all the actions that are required to enter the Playmode are described. 290 295 * e.g: camera, rotation, wait cycle and so on... 296 * 297 * on enter of this function the playmode is still the old playmode. 291 298 */ 292 299 void Playable::enterPlaymode(Playable::Playmode playmode) 293 300 { 294 295 } 296 301 switch(playmode) 302 { 303 default: 304 this->attachCamera(); 305 break; 306 case Playable::Horizontal: 307 this->setCameraMode(Camera::ViewTop); 308 break; 309 case Playable::Vertical: 310 this->setCameraMode(Camera::ViewLeft); 311 break; 312 case Playable::FromBehind: 313 this->setCameraMode(Camera::ViewBehind); 314 break; 315 } 316 } 297 317 /** 298 318 * @brief helps us colliding Playables
Note: See TracChangeset
for help on using the changeset viewer.