Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 26, 2011, 10:03:32 PM (13 years ago)
Author:
msalomon
Message:

RaceCheckPoints with a time limit and the version of the level for the presentation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/spacerace/src/modules/gametypes/RaceCheckPoint.h

    r8548 r8616  
    3838namespace orxonox
    3939{
     40  /**
     41  @brief
     42  The RaceCheckPoint class enables the creation of a check point to use in a SpaceRace level.
     43  !!! Don't forget to controll the indexes of your check points and to set one last check point!!!
     44  */
    4045    class _ObjectsExport RaceCheckPoint : public DistanceTrigger, public RadarViewable
    4146    {
     
    5762        inline int getCheckpointIndex()
    5863            { return this->bCheckpointIndex_; }
    59         inline void setTimelimit(int timeLimit)
    60             { this->bTimeLimit_ = timeLimit;}
    61         inline int getTimeLimit()
     64        virtual void setTimelimit(float timeLimit);
     65        inline float getTimeLimit()
    6266            { return this->bTimeLimit_;}
    6367        inline const WorldEntity* getWorldEntity() const
     
    6569       
    6670    private:
    67         int bCheckpointIndex_;
    68         bool bIsLast_;
    69         int bTimeLimit_;
     71        int bCheckpointIndex_; //The index of this check point. This value will be compared with the number of check points reached in the level. The check points must be indexed in ascending order beginning from zero and without any jumps between the indexes.
     72        bool bIsLast_; //True if this check point is the last of the level. There can be only one last check point for each level and there must be a last check point in the level.
     73        float bTimeLimit_; //The time limit (from the start of the level) to reach this check point. If the check point is reached after this time, the game ends and the player looses.
    7074     
    7175    };
Note: See TracChangeset for help on using the changeset viewer.