Changeset 5816 in orxonox.OLD for branches/world_entities/src/story_entities
- Timestamp:
- Nov 29, 2005, 10:39:54 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/world_entities/src/story_entities/world.cc
r5769 r5816 1043 1043 1044 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 1045 void World::setPath( const char* name) 1062 1046 {
Note: See TracChangeset
for help on using the changeset viewer.