29 #ifndef _RaceCheckPoint_H__ 30 #define _RaceCheckPoint_H__ 54 this->checkpointIndex_ = checkpointIndex;
58 return this->checkpointIndex_;
61 void setNextCheckpointsAsVector3(
const Vector3& checkpoints);
62 Vector3 getNextCheckpointsAsVector3();
66 return nextCheckpoints_;
70 this->bIsLast_ = isLast;
74 return this->bIsLast_;
77 virtual void setTimelimit(
float timeLimit);
80 return this->timeLimit_;
83 PlayerInfo* getPlayer(
unsigned int clientID)
const;
89 this->players_.clear();
94 virtual void fire(
bool bIsTriggered,
BaseObject* originator)
override;
The BaseObject is the parent of all classes representing an instance in the game. ...
Definition: BaseObject.h:63
Definition of the DistanceMultiTrigger class.
int getCheckpointIndex() const
Definition: RaceCheckPoint.h:56
float timeLimit_
The time limit (from the start of the level) to reach this check point. If the check point is reached...
Definition: RaceCheckPoint.h:106
#define _GametypesExport
Definition: GametypesPrereqs.h:58
bool bIsLast_
True if this check point is the last of the level. There can be only one last check point for each le...
Definition: RaceCheckPoint.h:105
The DistanceMultiTrigger is a MultiTrigger that triggers whenever an object (that is of the specified...
Definition: DistanceMultiTrigger.h:90
Interface for receiving window events.
Definition: RadarViewable.h:48
The WorldEntity represents everything that can be put in a Scene at a certain location.
Definition: WorldEntity.h:72
const std::set< int > & getNextCheckpoints()
Definition: RaceCheckPoint.h:64
The RaceCheckPoint class enables the creation of a check point to use in a SpaceRace level...
Definition: RaceCheckPoint.h:43
xmlelement
Definition: Super.h:519
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
std::set< int > nextCheckpoints_
the indexes of the next check points
Definition: RaceCheckPoint.h:104
bool isLast() const
Definition: RaceCheckPoint.h:72
Mode
Definition: CorePrereqs.h:102
std::vector< PlayerInfo * > players_
The player that reached the checkpoint.
Definition: RaceCheckPoint.h:107
float getTimeLimit() const
Definition: RaceCheckPoint.h:78
virtual const WorldEntity * getWorldEntity() const override
Definition: RaceCheckPoint.h:96
void resetPlayer()
Definition: RaceCheckPoint.h:87
int checkpointIndex_
The index of this check point. The race starts with the check point with the index 0...
Definition: RaceCheckPoint.h:103
Shared library macros, enums, constants and forward declarations for the questsystem module ...
Definition: PlayerInfo.h:39
void setCheckpointIndex(int checkpointIndex)
Definition: RaceCheckPoint.h:52
void setLast(bool isLast)
Definition: RaceCheckPoint.h:68