class Sp_Car: public Sp_View, public Sp_RepereOnCircuit, public Sp_Client_Time

The class to conduct a car

Inheritance:


Public Methods

[more] Sp_Car(char *name, Sp_Adm *adm3d, Sp_Obj *father, Stk_Control *control)
the constructor
[more]virtual ~Sp_Car()
its destructor
[more]void Init(Sp_CircuitC *, Sp_Point &, Sp_Vecteur &direction)
The Init function
[more]void TurnRL(float angle)
Turn front wheels to the Right or Left
[more]void Accelerate(float val)
Accelerate or slacken

Private Fields

[more]Stk_Control* controler
a controler (keyboard, joystick)
[more]float distance_FR
Distance Beetween Front and Rear wheels
[more]float angle_FR
Angle Beetween O (Center of front wheels) and Rear wheels
[more]float speed
Speed of car
[more]float angle
Angle of front wheels
[more]Sp_Trans* position
The matrix which correspond to (O,I,K)

Private Methods

[more]void ComputeNextPosition(float time_elapsed)
Compute the next position of car
[more]Sp_Vecteur CIR(float time_elapsed)
Rotation's immediate Center
[more]void Event()
the event function is attached to the management of controler (called in Work)


Inherited from Sp_View:


Inherited from Sp_Obj:

Public Fields

ostring Name
oSp_Obj* father
oSp_Adm* adm
oint priority
olist<Sp_Obj *> sons
olist<Sp_EntityBase *> entities
oSp_LTrans trans
oSp_Mat4 coord_camera

Public Methods

o Sp_Client_Time(Sp_Adm_Time *)
olong GetElapsedTime()
olong GetFrameElapsedTime()
olong GetFrameCounter()
ovirtual void Add_Obj(Sp_Obj *)
ovirtual void Rem_Obj(Sp_Obj *)
ovoid Add_Entity(Sp_EntityBase *)
ovoid Rem_Entity(Sp_EntityBase *)
ovirtual void Print() const
ovirtual Sp_Mat4 GetProjection() const
ovirtual void DrawObj()


Inherited from Sp_RepereOnCircuit:

Public Fields

oSp_Point O
oSp_Vecteur I
oSp_Vecteur K
oSp_CircuitC* circuit
oSp_FaceC* face

Public Methods

ovoid Compute_Next_Position(const Sp_Vecteur &displacement)


Documentation

The class to conduct a car
o Sp_Car(char *name, Sp_Adm *adm3d, Sp_Obj *father, Stk_Control *control)
the constructor

ovirtual ~Sp_Car()
its destructor

ovoid Init(Sp_CircuitC *, Sp_Point &, Sp_Vecteur &direction)
The Init function

ovoid TurnRL(float angle)
Turn front wheels to the Right or Left

ovoid Accelerate(float val)
Accelerate or slacken

ovoid ComputeNextPosition(float time_elapsed)
Compute the next position of car

oSp_Vecteur CIR(float time_elapsed)
Rotation's immediate Center

oStk_Control* controler
a controler (keyboard, joystick)

ovoid Event()
the event function is attached to the management of controler (called in Work)

ofloat distance_FR
Distance Beetween Front and Rear wheels

ofloat angle_FR
Angle Beetween O (Center of front wheels) and Rear wheels

ofloat speed
Speed of car

ofloat angle
Angle of front wheels

oSp_Trans* position
The matrix which correspond to (O,I,K)


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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