Changeset 6634 in orxonox.OLD for trunk/src/story_entities
- Timestamp:
- Jan 21, 2006, 1:18:19 AM (19 years ago)
- Location:
- trunk/src/story_entities
- Files:
-
- 7 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/Makefile.am
r6600 r6634 12 12 story_entities/multi_player_world.cc \ 13 13 story_entities/multi_player_world_data.cc \ 14 story_entities/movie_loader.cc 14 story_entities/movie_loader.cc \ 15 story_entities/simple_game_menu.cc 15 16 16 17 StoryEntities_HEADERS_ = \ … … 25 26 story_entities/multi_player_world.h \ 26 27 story_entities/multi_player_world_data.h \ 27 story_entities/movie_loader.h 28 story_entities/movie_loader.h \ 29 story_entities/simple_game_menu.h -
trunk/src/story_entities/campaign_data.cc
r6424 r6634 76 76 LOAD_PARAM_START_CYCLE(root, element); 77 77 { 78 StoryEntity* created = (StoryEntity*) Factory::fabricate(element);78 StoryEntity* created = dynamic_cast<StoryEntity*>(Factory::fabricate(element)); 79 79 if( created != NULL) 80 80 this->addStoryEntity(created); -
trunk/src/story_entities/game_world.cc
r6619 r6634 114 114 .describe("The Filename of this GameWorld (relative from the data-dir)"); 115 115 116 // LoadParam(root, "soundtrack", this->dataTank, GameWorldData, setSoundTrack); 117 116 118 PRINTF(4)("Loaded GameWorld specific stuff\n"); 117 119 } … … 150 152 if( getPath() == NULL) 151 153 { 152 PRINTF(1)("GameWorld has no path specified for loading ");154 PRINTF(1)("GameWorld has no path specified for loading\n"); 153 155 return (ErrorMessage){213,"Path not specified","GameWorld::load()"}; 154 156 } … … 241 243 void GameWorld::run() 242 244 { 245 /* start the music */ 246 if(this->dataTank->music != NULL) 247 this->dataTank->music->playback(); 248 243 249 this->lastFrame = SDL_GetTicks (); 244 250 PRINTF(3)("GameWorld::mainLoop() - Entering main loop\n"); -
trunk/src/story_entities/game_world_data.cc
r6626 r6634 72 72 this->setClassID(CL_GAME_WORLD_DATA, "GameWorldData"); 73 73 74 this->localPlayer = NULL;75 this->localCamera = NULL;76 77 74 this->glmis = NULL; 78 75 … … 283 280 if( this->sky != NULL) 284 281 this->localCamera->addChild(this->sky); 285 286 /* sound loading */287 this->music = NULL;288 //(OggPlayer*)ResourceManager::getInstance()->load("sound/00-luke_grey_-_hypermode.ogg", OGG, RP_LEVEL);289 //music->playback();290 282 SoundEngine::getInstance()->setListener(this->localCamera); 291 283 } … … 310 302 } 311 303 304 305 void GameWorldData::setSoundTrack(const char* name) 306 { 307 PRINTF(3)("Setting Sound Track to %s\n", name); 308 this->music = (OggPlayer*)ResourceManager::getInstance()->load(name, OGG, RP_LEVEL); 309 } 310 311 -
trunk/src/story_entities/game_world_data.h
r6424 r6634 40 40 virtual ErrorMessage unloadData(); 41 41 42 /* interface functions */ 43 void setSoundTrack(const char* name); 42 44 43 45 protected: -
trunk/src/story_entities/multi_player_world_data.cc
r6498 r6634 263 263 264 264 265 Playable* pl = this->localPlayer->getControllable(); 266 PRINTF(0)("The current regisered playable is hid: %i\n", pl->getUniqueID()); 267 265 268 266 269 PNode* cam = State::getCameraTarget(); -
trunk/src/story_entities/story_entity.h
r6512 r6634 24 24 25 25 //! A class that represents something to play in orxonox. it is a container for worlds, movies, mission briefings, etc... 26 class StoryEntity : public BaseObject {26 class StoryEntity : virtual public BaseObject { 27 27 28 28 public:
Note: See TracChangeset
for help on using the changeset viewer.