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);
68 virtual void updateGraphics(
float dt);
70 virtual KartAnimationType getAnimationType()
const {
return KAT_RESCUE; }
The base class for all kart animation, like rescue, explosion, or cannon.
Definition: abstract_kart_animation.hpp:60
An abstract interface for the actual karts.
Definition: abstract_kart.hpp:62
Describes a chain of 8-bit unsigned integers.
Definition: network_string.hpp:53
Definition: kart_rewinder.hpp:30
This implements the referee, a character that is displayed at the start of the race holding a 'ready-...
Definition: referee.hpp:53
This triggers a rescue of the specified kart.
Definition: rescue_animation.hpp:32
int m_rescue_moment
When world ticks > this, it will move the kart above the m_rescue_transform.
Definition: rescue_animation.hpp:40
virtual void update(int ticks)
Updates the kart animation.
Definition: rescue_animation.cpp:162
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
float m_velocity
The velocity with which the kart is moved.
Definition: rescue_animation.hpp:36