Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7488 in orxonox.OLD for trunk/src/util


Ignore:
Timestamp:
May 3, 2006, 12:03:47 AM (19 years ago)
Author:
patrick
Message:

orxonox: mission manager less verbose and more secure now

Location:
trunk/src/util
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/game_rules.cc

    r7462 r7488  
    6060  while( element != NULL)
    6161  {
    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());
    6464    BaseObject* created = Factory::fabricate(element);
    6565    if (created != NULL /*&& created->isA(CL_GAME_RULES)*/)
  • trunk/src/util/game_rules.h

    r7486 r7488  
    3434    inline void addMissionGoal(MissionGoal* missionGoal) { this->missionList.push_back(missionGoal); }
    3535    /** 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); }
    3737
    3838    virtual void onPlayerSpawn() {}
  • trunk/src/util/singleplayer_shootemup.cc

    r7464 r7488  
    107107void SingleplayerShootemup::checkGameRules(float dt)
    108108{
    109   PRINTF(0)("===========| Printing Mission State:\n");
     109//   PRINTF(0)("===========| Printing Mission State:\n");
    110110  for (std::vector<MissionGoal*>::iterator it = this->missionList.begin(); it != this->missionList.end(); it++)
    111111  {
    112112    if( (*it)->checkMissionGoal(dt) != MS_ACCOMPLISHED)
    113113    {
    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());
    115115    }
    116116  }
Note: See TracChangeset for help on using the changeset viewer.