19 #ifndef HEADER_SWATTER_HPP 20 #define HEADER_SWATTER_HPP 22 #include "config/stk_config.hpp" 23 #include "items/attachment_plugin.hpp" 24 #include "utils/cpp2011.hpp" 25 #include "utils/no_copy.hpp" 30 #include <IAnimatedMeshSceneNode.h> 55 SWATTER_TO_TARGET = 1,
56 SWATTER_FROM_TARGET = 2
76 int m_swatter_duration;
82 int16_t m_swatter_animation_ticks;
93 void updateGraphics(
float dt) OVERRIDE;
94 bool updateAndTestFinished(
int ticks) OVERRIDE;
101 return m_animation_phase == SWATTER_AIMING;
113 void pointToTarget();
116 void squashThingsAround();
Definition: swatter.hpp:43
int16_t m_bomb_remaining
Set the bomb remaing ticks so we can set the timer on the removing bomb animation.
Definition: swatter.hpp:80
bool m_discard_now
True if the swatter will be discarded now.
Definition: swatter.hpp:85
bool m_played_swatter_animation
True if the swatter animation has been played.
Definition: swatter.hpp:88
scene::IAnimatedMeshSceneNode * m_scene_node
Set the end ticks to complete the removing an attached bomb animation.
Definition: swatter.hpp:68
This objects is permanently available in a kart and stores information about addons.
Definition: attachment.hpp:51
Definition: three_d_animation.hpp:32
AbstractKart * m_closest_kart
The kart the swatter is aiming at.
Definition: swatter.hpp:61
bool isSwatterReady() const
Returns if the swatter is currently aiming, i.e.
Definition: swatter.hpp:99
Utility class, you can inherit from this class to disallow the assignment operator and copy construct...
Definition: no_copy.hpp:25
scene::IAnimatedMeshSceneNode * m_bomb_scene_node
The scene node where a bomb is saved (in case that the swatter replaces a bomb.
Definition: swatter.hpp:72
Describes a chain of 8-bit unsigned integers.
Definition: network_string.hpp:52
AnimationPhase
State of the animation, the swatter is successively:
Definition: swatter.hpp:52
This is the base class for a plugin into an attachment.
Definition: attachment_plugin.hpp:38
Definition: moveable.hpp:44
The base class for sound effects.
Definition: sfx_base.hpp:42
An abstract interface for the actual karts.
Definition: abstract_kart.hpp:61