22 #ifndef HEADER_MISSILE_HPP
23 #define HEADER_MISSILE_HPP
25 #include <irrString.h>
28 #include "items/flyable.hpp"
47 btVector3 m_initial_velocity;
49 bool m_reverse_mode, m_has_locally_played_sound, m_moved_to_infinity;
54 static void init(
const XMLNode &node, scene::IMesh* missile);
55 virtual bool updateAndDelete(
int ticks) OVERRIDE;
56 virtual void hitTrack () OVERRIDE;
60 void updateGraphics(
float dt) OVERRIDE;
65 void setKeepAlive(int16_t ticks) { m_keep_alive = ticks; }
75 virtual void onFireFlyable() OVERRIDE;
77 virtual
void onDeleteFlyable() OVERRIDE;
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: flyable.hpp:50
A small interface for effects to be used when a kart is hit.
Definition: hit_effect.hpp:33
Definition: physical_object.hpp:40
Definition: plunger.hpp:39
int16_t m_keep_alive
Ticks to keep the plunger alive while the rubber band is working.
Definition: plunger.hpp:45
virtual HitEffect * getHitEffect() const OVERRIDE
No hit effect when it ends.
Definition: plunger.hpp:68
RubberBand * m_rubber_band
The rubber band attached to a plunger.
Definition: plunger.hpp:42
This class is used together with the pluger to display a rubber band from the shooting kart to the pl...
Definition: rubber_band.hpp:49
utility class used to parse XML files
Definition: xml_node.hpp:48