Changeset 7488 in orxonox.OLD for trunk/src/util
- Timestamp:
- May 3, 2006, 12:03:47 AM (19 years ago)
- Location:
- trunk/src/util
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/game_rules.cc
r7462 r7488 60 60 while( element != NULL) 61 61 { 62 PRINTF( 2)("============ MissionGoal\n");63 PRINTF( 2)("Adding Mission Goal:%s\n", element->Value());62 PRINTF(4)("============ MissionGoal\n"); 63 PRINTF(4)("Adding Mission Goal:%s\n", element->Value()); 64 64 BaseObject* created = Factory::fabricate(element); 65 65 if (created != NULL /*&& created->isA(CL_GAME_RULES)*/) -
trunk/src/util/game_rules.h
r7486 r7488 34 34 inline void addMissionGoal(MissionGoal* missionGoal) { this->missionList.push_back(missionGoal); } 35 35 /** adding a kill event to the kill list @param kill the kill object containing all infos */ 36 inline void registerKill(const Kill& kill) { this->killList.push_back(kill); }36 inline void registerKill(const Kill& kill) { PRINTF(0)("Received Event: Kill\n"); this->killList.push_back(kill); } 37 37 38 38 virtual void onPlayerSpawn() {} -
trunk/src/util/singleplayer_shootemup.cc
r7464 r7488 107 107 void SingleplayerShootemup::checkGameRules(float dt) 108 108 { 109 PRINTF(0)("===========| Printing Mission State:\n");109 // PRINTF(0)("===========| Printing Mission State:\n"); 110 110 for (std::vector<MissionGoal*>::iterator it = this->missionList.begin(); it != this->missionList.end(); it++) 111 111 { 112 112 if( (*it)->checkMissionGoal(dt) != MS_ACCOMPLISHED) 113 113 { 114 PRINTF(0)(" Mission \"%s\" is not finished yet\n", (*it)->getMissionName().c_str());114 // PRINTF(0)(" Mission \"%s\" is not finished yet\n", (*it)->getMissionName().c_str()); 115 115 } 116 116 }
Note: See TracChangeset
for help on using the changeset viewer.