class Sp_Journey: public Sp_CheckPoint

Journey: it is an ensemble of CheckPoints ordered.

Inheritance:


Public Methods

[more] Sp_Journey()
constructor
[more]virtual ~Sp_Journey()
destructor
[more]int AddPlayer()
add a player to the journey
[more]void AddPlayer(int)
add a player to finish
[more]long BestLap(int player)
give the bestlap of a player
[more]virtual void On(int player, long temps)
this function is called when a player is on arrival

Protected Methods

[more]void AddCheckPoint(Sp_CheckPoint *)
add checkpoint (only use in constructor of derivated class)

Private Fields

[more]vector<long> bestlap
list of best lap for each player
[more]list<Sp_CheckPoint *> checkpoints
list ordered of checkpoints
[more]int nbplayers
number of players


Inherited from Sp_CheckPoint:

Public Methods

o Sp_CameraCar(char *name, Sp_Adm *adm3d, Sp_Obj *father)

Protected Fields

ovector<long> time

Private Fields

oSp_Trans* position


Documentation

Journey: it is an ensemble of CheckPoints ordered. And it is a particular checkpoint: the finish. Rem: we could not add dynamically checkpoints.
o Sp_Journey()
constructor

ovirtual ~Sp_Journey()
destructor

oint AddPlayer()
add a player to the journey

ovoid AddPlayer(int)
add a player to finish

olong BestLap(int player)
give the bestlap of a player

ovirtual void On(int player, long temps)
this function is called when a player is on arrival

ovoid AddCheckPoint(Sp_CheckPoint *)
add checkpoint (only use in constructor of derivated class)

ovector<long> bestlap
list of best lap for each player

olist<Sp_CheckPoint *> checkpoints
list ordered of checkpoints

oint nbplayers
number of players


Direct child classes:
Sp_CircuitC

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.