Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7462 in orxonox.OLD for trunk/src/util/game_rules.cc


Ignore:
Timestamp:
May 1, 2006, 3:21:40 PM (18 years ago)
Author:
patrick
Message:

mission goals loadable

File:
1 edited

Legend:

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

    r7461 r7462  
    4747  BaseObject::loadParams(root);
    4848
     49  PRINTF(0)("GameRules::loadParams(...) hit me\n");
    4950  LoadParamXML(root, "MissionGoal", this, GameRules, loadMissionGoal)
    5051      .describe("an XML-Element to load the missions from");
     
    5556void GameRules::loadMissionGoal(const TiXmlElement* root)
    5657{
     58  PRINTF(0)("Trying to load MissionGoals\n");
    5759  const TiXmlElement* element = root->FirstChildElement();
    5860  while( element != NULL)
     
    6163    PRINTF(2)("Adding Mission Goal:%s\n", element->Value());
    6264    BaseObject* created = Factory::fabricate(element);
    63     if (created != NULL && created->isA(CL_GAME_RULES))
     65    if (created != NULL /*&& created->isA(CL_GAME_RULES)*/)
    6466    {
    6567      MissionGoal* mg = dynamic_cast<MissionGoal*>(created);
Note: See TracChangeset for help on using the changeset viewer.