This triggers a rescue of the specified kart.
More...
#include <rescue_animation.hpp>
|
virtual | ~RescueAnimation () |
| This object is automatically destroyed when the timer expires.
|
|
virtual void | update (int ticks) |
| Updates the kart animation.
|
|
virtual void | updateGraphics (float dt) |
|
virtual KartAnimationType | getAnimationType () const |
|
virtual void | saveState (BareNetworkString *buffer) |
|
virtual void | restoreState (BareNetworkString *buffer) |
|
| AbstractKartAnimation (AbstractKart *kart, const std::string &name) |
| Constructor.
|
|
virtual void | update (int ticks) |
| Updates the timer, and if it expires, the kart animation will be removed from the kart and this object will be deleted.
|
|
virtual void | updateGraphics (float dt) |
|
virtual float | getAnimationTimer () const |
| Returns the current animation timer.
|
|
virtual const std::string & | getName () const |
| To easily allow printing the name of the animation being used atm.
|
|
virtual KartAnimationType | getAnimationType () const =0 |
|
void | handleResetRace () |
|
virtual void | saveState (BareNetworkString *buffer) |
|
virtual void | restoreState (BareNetworkString *buffer) |
|
|
| RescueAnimation (AbstractKart *kart, BareNetworkString *b) |
|
| RescueAnimation (AbstractKart *kart, bool is_auto_rescue) |
| The constructor stores a pointer to the kart this object is animating, and initialised the timer.
|
|
void | restoreData (BareNetworkString *b) |
|
void | init (const btTransform &rescue_transform, float velocity) |
|
void | resetPowerUp () |
| In CTF mode call this to reset kart powerup when get hit.
|
|
void | restoreBasicState (BareNetworkString *buffer) |
| Used in constructor of sub-class as no virtual function can be used there.
|
|
float | getMaximumHeight (const Vec3 &up_vector, float height_remove) |
| Determine maximum rescue height with up-raycast.
|
|
|
float | m_velocity |
| The velocity with which the kart is moved.
|
|
int | m_rescue_moment |
| When world ticks > this, it will move the kart above the m_rescue_transform.
|
|
Referee * | m_referee |
| The referee during a rescue operation.
|
|
btTransform | m_rescue_transform |
|
int | m_rescue_transform_compressed [4] |
|
AbstractKart * | m_kart |
| A pointer to the kart which is animated by this class.
|
|
int | m_end_ticks |
| Time in ticks for the animation which ends in world count up ticks.
|
|
int | m_created_ticks |
| Time in ticks for the animation creation.
|
|
btTransform | m_created_transform |
| Transformation by the time the animation was created, used for rewind to recreate the animation with the same one.
|
|
int | m_created_transform_compressed [4] |
|
This triggers a rescue of the specified kart.
◆ RescueAnimation()
RescueAnimation::RescueAnimation |
( |
AbstractKart * |
kart, |
|
|
bool |
is_auto_rescue |
|
) |
| |
|
protected |
The constructor stores a pointer to the kart this object is animating, and initialised the timer.
- Parameters
-
kart | Pointer to the kart which is animated. |
◆ getAnimationType()
virtual KartAnimationType RescueAnimation::getAnimationType |
( |
| ) |
const |
|
inlinevirtual |
◆ restoreState()
◆ saveState()
◆ update()
void RescueAnimation::update |
( |
int |
ticks | ) |
|
|
virtual |
Updates the kart animation.
- Parameters
-
ticks | Number of time steps - should be 1. |
Reimplemented from AbstractKartAnimation.
◆ updateGraphics()
void RescueAnimation::updateGraphics |
( |
float |
dt | ) |
|
|
virtual |
The documentation for this class was generated from the following files: