|
enum | { SS_NONE,
SS_COLLECT
} |
| Slipstream mode: either nothing happening, or the kart is collecting 'slipstream credits'. More...
|
|
|
SP::SPMesh * | createMesh (Material *material, bool bonus_mesh) |
| Creates the mesh for the slipstream effect. More...
|
|
void | setDebugColor (const video::SColor &color, bool inner) |
| Sets the color of the debug mesh (which shows the area in which slipstream can be accumulated). More...
|
|
void | updateQuad () |
| UpdateQuad.
|
|
void | updateSlipstreamingTextures (float f, const AbstractKart *kart) |
|
void | updateBonusTexture () |
|
◆ anonymous enum
Slipstream mode: either nothing happening, or the kart is collecting 'slipstream credits'.
Credits can be accumulated while the bonus is used
◆ SlipStream()
Creates the slip stream object.
- Parameters
-
kart | Pointer to the kart to which the slip stream belongs to. |
◆ createMesh()
Creates the mesh for the slipstream effect.
This function creates a first a series of circles (with a certain number of vertices each and distance from each other. Then it will create the triangles and add texture coordniates.
- Parameters
-
material | The material to use. |
◆ getSlipstreamQuad()
const Quad& SlipStream::getSlipstreamQuad |
( |
| ) |
const |
|
inline |
Returns the quad in which slipstreaming is effective for this kart.
◆ getSlipstreamTarget()
const AbstractKart* SlipStream::getSlipstreamTarget |
( |
| ) |
const |
|
inline |
Returns the kart from which slipstream is 'collected'.
◆ inUse()
bool SlipStream::inUse |
( |
| ) |
const |
|
inline |
Returns if slipstream is being used.
◆ reset()
void SlipStream::reset |
( |
| ) |
|
Called at re-start of a race.
◆ setDebugColor()
void SlipStream::setDebugColor |
( |
const video::SColor & |
color, |
|
|
bool |
inner |
|
) |
| |
|
private |
Sets the color of the debug mesh (which shows the area in which slipstream can be accumulated).
Color codes: black: kart too slow red: not inside of slipstream area green: slipstream is being accumulated.
- Parameters
-
inner | : bool to know if we apply the color to the inner quad or to the main one |
◆ update()
void SlipStream::update |
( |
int |
ticks | ) |
|
Update, called once per timestep.
- Parameters
-
◆ m_bonus_node
scene::ISceneNode* SlipStream::m_bonus_node |
|
private |
The node used when the bonus is active.
◆ m_debug_dc
For debugging: a simple quad to display where slipstream works.
◆ m_debug_dc2
For debugging: a simple quad to display where inner slipstream works.
◆ m_kart
The kart to which this smoke belongs.
◆ m_length
float SlipStream::m_length |
|
private |
The length of the slipstream cylinder.
This is used to scale the actual scene node correctly. Shared between node and node_fast
◆ m_node
scene::ISceneNode* SlipStream::m_node |
|
private |
◆ m_node_fast
scene::ISceneNode* SlipStream::m_node_fast |
|
private |
◆ m_slipstream_inner_quad
Quad* SlipStream::m_slipstream_inner_quad |
|
private |
This is the inner slipstream area if the kart is at 0,0,0 without rotation.
◆ m_slipstream_mode
enum { ... } SlipStream::m_slipstream_mode |
Slipstream mode: either nothing happening, or the kart is collecting 'slipstream credits'.
Credits can be accumulated while the bonus is used
◆ m_slipstream_outer_quad
Quad* SlipStream::m_slipstream_outer_quad |
|
private |
This is the outer slipstream area if the kart is at 0,0,0 without rotation.
No slipstream time is accumulated there, but it's lost slower
◆ m_slipstream_quad
Quad* SlipStream::m_slipstream_quad |
|
private |
This is slipstream area if the kart is at 0,0,0 without rotation.
◆ m_slipstream_time
float SlipStream::m_slipstream_time |
|
private |
The time a kart was in slipstream.
◆ m_target_kart
The kart from which this kart gets slipstream.
Used by the AI to overtake the right kart.
The documentation for this class was generated from the following files: