Changeset 7464 in orxonox.OLD for trunk/src/util/singleplayer_shootemup.cc
- Timestamp:
- May 1, 2006, 4:52:33 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/singleplayer_shootemup.cc
r7462 r7464 20 20 #include "util/loading/factory.h" 21 21 22 #include "render2D/billboard.h" 23 #include "state.h" 24 #include "class_list.h" 25 26 #include "player.h" 27 #include "playable.h" 28 #include "space_ships/space_ship.h" 29 30 31 #include "shared_network_data.h" 32 #include "terrain.h" 33 #include "class_list.h" 34 #include "space_ships/space_ship.h" 22 #include "mission_goal.h" 35 23 36 24 … … 67 55 GameRules::loadParams(root) ; 68 56 69 // LoadParam(root, "death-penalty-timeout", this, SingleplayerShootemup, setDeathPenaltyTimeout) 70 // .describe("sets the time in seconds a player has to wait for respawn"); 71 // 72 // LoadParam(root, "max-kills", this, SingleplayerShootemup, setMaxKills) 73 // .describe("sets the maximal kills for winning condition"); 74 // 75 // LoadParam(root, "death-screen-image", this, SingleplayerShootemup, setDeathScreen) 76 // .describe("sets the death screen image"); 57 LoadParam(root, "death-screen-image", this, SingleplayerShootemup, setDeathScreen) 58 .describe("sets the death screen image"); 77 59 78 60 } … … 109 91 void SingleplayerShootemup::tick(float dt) 110 92 { 111 this->checkGameRules( );93 this->checkGameRules(dt); 112 94 } 113 95 … … 123 105 * check the game rules for consistency 124 106 */ 125 void SingleplayerShootemup::checkGameRules() 126 {} 107 void SingleplayerShootemup::checkGameRules(float dt) 108 { 109 PRINTF(0)("===========| Printing Mission State:\n"); 110 for (std::vector<MissionGoal*>::iterator it = this->missionList.begin(); it != this->missionList.end(); it++) 111 { 112 if( (*it)->checkMissionGoal(dt) != MS_ACCOMPLISHED) 113 { 114 PRINTF(0)(" Mission \"%s\" is not finished yet\n", (*it)->getMissionName().c_str()); 115 } 116 } 117 } 127 118 128 119
Note: See TracChangeset
for help on using the changeset viewer.