Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7463 in orxonox.OLD for trunk/src/util/kill_target.cc


Ignore:
Timestamp:
May 1, 2006, 4:03:01 PM (19 years ago)
Author:
patrick
Message:

mission goals now get loaded correctly with all attributes

File:
1 edited

Legend:

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

    r7462 r7463  
    1919
    2020#include "util/loading/factory.h"
     21#include "util/loading/load_param.h"
    2122
    2223using namespace std;
     
    5253  MissionGoal::loadParams(root);
    5354
    54   //   LoadParam(root, "death-penalty-timeout", this, SingleplayerShootemup, setDeathPenaltyTimeout)
    55 //       .describe("sets the time in seconds a player has to wait for respawn");
     55  LoadParam(root, "numberofkills", this, KillTarget, setNumberOfKills)
     56       .describe("sets the number of kills a target has to be killed");
     57  LoadParam(root, "targetclassid", this, KillTarget, setTargetClassID)
     58      .describe("sets the targets class id");
    5659}
    5760
Note: See TracChangeset for help on using the changeset viewer.