Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 29, 2013, 8:56:38 PM (11 years ago)
Author:
jo
Message:

Making a Mission endable by a ConsoleCommand such that it can be ended from within a level.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/gametypes/Mission.h

    r9667 r9728  
    5252            inline unsigned int getLives()
    5353                {return this->lives_;}
     54            inline void setMissionAccomplished(bool acc)
     55                {this->missionAccomplished_ = acc;}
     56            static void endMission(bool accomplished);
    5457
    5558        protected:
     
    5760            bool missionAccomplished_; //<! indicates if player successfully finsihed the mission;
    5861            int lives_; //<! amount of player's lives <-> nr. of retries
     62            //Make end() a callback function to the event "END"
     63            //or create a console command.
    5964
    6065    };
Note: See TracChangeset for help on using the changeset viewer.