Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 11967 for code/branches


Ignore:
Timestamp:
May 17, 2018, 2:31:38 PM (7 years ago)
Author:
andera
Message:

SpaceRace.h updated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/RacingBots_FS18/src/modules/gametypes/SpaceRace.h

    r11857 r11967  
    5454
    5555        public:
    56             SpaceRace(Context* context);
     56            SpaceRace(Context* context);//, SpaceRace* parentRace);
    5757            virtual ~SpaceRace() {}
    5858
     
    8282            inline Clock& getClock()
    8383                { return this->clock_; }
     84            //inline void setParentRace(SpaceRace* parentRace) { this->parentRace = parentRace; }
    8485
    8586            virtual bool allowPawnHit(Pawn* victim, Pawn* originator) override;
     
    8889            bool countdown_mode = false;
    8990            float time_passed = 4.0f;
     91           
     92            bool bLost=false;
    9093
    9194        private:
    9295            bool cantMove_;                                            ///< Helper variable, used to stall the engines before the race starts.
    9396            std::map<PlayerInfo*, RaceCheckPoint*> checkpointReached_; ///< The number of the last check point reached by each player.
    94             bool bTimeIsUp_;                                           ///< True if one of the check points is reached too late.
     97            bool bTimeIsUp_;    ///< True if one of the check points is reached too late.
    9598
    9699            Clock clock_; ///< The clock starts running at the beginning of the game. It is used to give the time at each check point, the give the time at the end of the game, and to stop the game if a check point is reached too late.
Note: See TracChangeset for help on using the changeset viewer.