Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7400 in orxonox.OLD for trunk/src/util/game_rules.h


Ignore:
Timestamp:
Apr 27, 2006, 4:34:21 PM (18 years ago)
Author:
patrick
Message:

worked on game rules and mission goals

File:
1 edited

Legend:

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

    r7044 r7400  
    99
    1010#include "base_object.h"
     11#include <vector>
    1112
    1213
     
    1415class ObjectManager;
    1516class Player;
     17class MissionGoal;
    1618
    1719
     
    2426
    2527    virtual void loadParams(const TiXmlElement* root = NULL);
     28
     29
     30    /** adding an mission goal to the game rules @param missionGoal the mission goal to add */
     31    inline void addMissionGoal(MissionGoal* missionGoal) { this->missionList.push_back(missionGoal); }
    2632
    2733
     
    4046
    4147  protected:
    42     ObjectManager*         pObjectManager;         //!< reference to the current Object Manager
    43     Player*                localPlayer;            //!< reference to the local player
     48    ObjectManager*              pObjectManager;         //!< reference to the current Object Manager
     49    Player*                     localPlayer;            //!< reference to the local player
     50    std::vector<MissionGoal*>   missionList;            //!< list of mission goals
    4451};
    4552
Note: See TracChangeset for help on using the changeset viewer.