Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 3, 2012, 12:04:35 AM (12 years ago)
Author:
landauf
Message:

store the next checkpoints in a set instead of Vector3
+ some refactoring in SpaceRaceManager

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/gametypes/SpaceRaceManager.h

    r9262 r9263  
    6565            RaceCheckPoint* findCheckpoint(int index) const;
    6666
    67             void checkpointReached(RaceCheckPoint* check, PlayerInfo* player);
     67            void checkpointReached(RaceCheckPoint* newCheckpoint, PlayerInfo* player);
    6868
    6969            void tick(float dt);
    7070
    7171        protected:
    72             void setRadarVisibility(PlayerInfo* player, bool bVisible); ///< sets RadarVisibility of the checkpoints the player can reach.
     72            bool reachedValidCheckpoint(RaceCheckPoint* oldCheckpoint, RaceCheckPoint* newCheckpoint, PlayerInfo* player) const;
     73            void updateRadarVisibility(RaceCheckPoint* oldCheckpoint, RaceCheckPoint* newCheckpoint) const;
    7374
    7475        private:
Note: See TracChangeset for help on using the changeset viewer.