Changeset 5819 in orxonox.OLD for trunk/src/story_entities
- Timestamp:
- Nov 29, 2005, 11:07:43 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/world.cc
r5769 r5819 1042 1042 } 1043 1043 1044 1045 1046 /**1047 \brief commands that the world must catch1048 @returns false if not used by the world1049 */1050 bool World::command(Command* cmd)1051 {1052 if( !strcmp( cmd->cmd, CONFIG_NAME_VIEW0)) this->localCamera->setViewMode(VIEW_NORMAL);1053 else if( !strcmp( cmd->cmd, CONFIG_NAME_VIEW1)) this->localCamera->setViewMode(VIEW_BEHIND);1054 else if( !strcmp( cmd->cmd, CONFIG_NAME_VIEW2)) this->localCamera->setViewMode(VIEW_FRONT);1055 else if( !strcmp( cmd->cmd, CONFIG_NAME_VIEW3)) this->localCamera->setViewMode(VIEW_LEFT);1056 else if( !strcmp( cmd->cmd, CONFIG_NAME_VIEW4)) this->localCamera->setViewMode(VIEW_RIGHT);1057 else if( !strcmp( cmd->cmd, CONFIG_NAME_VIEW5)) this->localCamera->setViewMode(VIEW_TOP);1058 return false;1059 }1060 1061 1044 void World::setPath( const char* name) 1062 1045 {
Note: See TracChangeset
for help on using the changeset viewer.