19 #ifndef HEADER_RESCUE_ANIMATION_HPP 20 #define HEADER_RESCUE_ANIMATION_HPP 22 #include "karts/abstract_kart_animation.hpp" 23 #include "utils/vec3.hpp" 46 btTransform m_rescue_transform;
49 int m_rescue_transform_compressed[4];
58 void init(
const btTransform& rescue_transform,
float velocity);
62 bool is_auto_rescue =
false);
66 virtual void update(
int ticks);
70 virtual KartAnimationType getAnimationType()
const {
return KAT_RESCUE; }
virtual void restoreState(BareNetworkString *p, int count) OVERRIDE
Actually rewind to the specified state.
Definition: kart_rewinder.cpp:275
virtual void updateGraphics(float dt) OVERRIDE
Updates the graphics model.
Definition: kart_rewinder.hpp:60
virtual void init(RaceManager::KartType type) OVERRIDE
This is a second initialisation phase, necessary since in the constructor virtual functions are not c...
Definition: kart.cpp:194
virtual ~RescueAnimation()
This object is automatically destroyed when the timer expires.
Definition: rescue_animation.cpp:147
Referee * m_referee
The referee during a rescue operation.
Definition: rescue_animation.hpp:43
This implements the referee, a character that is displayed at the start of the race holding a 'ready-...
Definition: referee.hpp:44
virtual void update(int ticks)
Updates the kart animation.
Definition: rescue_animation.cpp:162
This triggers a rescue of the specified kart.
Definition: rescue_animation.hpp:31
Definition: kart_rewinder.hpp:29
Describes a chain of 8-bit unsigned integers.
Definition: network_string.hpp:52
int m_rescue_moment
When world ticks > this, it will move the kart above the m_rescue_transform.
Definition: rescue_animation.hpp:40
virtual BareNetworkString * saveState(std::vector< std::string > *ru) OVERRIDE
Saves all state information for a kart in a memory buffer.
Definition: kart_rewinder.cpp:165
The base class for all kart animation, like rescue, explosion, or cannon.
Definition: abstract_kart_animation.hpp:59
An abstract interface for the actual karts.
Definition: abstract_kart.hpp:61
float m_velocity
The velocity with which the kart is moved.
Definition: rescue_animation.hpp:36