Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7464 in orxonox.OLD for trunk/src/util/mission_goal.cc


Ignore:
Timestamp:
May 1, 2006, 4:52:33 PM (18 years ago)
Author:
patrick
Message:

orxonox: mission goals get checked now, verbose output.

File:
1 edited

Legend:

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

    r7463 r7464  
    1717
    1818#include "mission_goal.h"
     19#include "game_rules.h"
    1920
     21#include "state.h"
    2022#include "util/loading/load_param.h"
    2123
     
    3032{
    3133   this->setClassID(CL_MISSION_GOAL, "MissionGoal");
     34
     35   this->missionState = MS_PASSIVE;
     36   // add the mission to the current game rule
     37   GameRules* gr = State::getGameRules();
     38   if( gr)
     39     gr->addMissionGoal(this);
    3240
    3341   if( root != NULL)
Note: See TracChangeset for help on using the changeset viewer.