22#ifndef HEADER_MISSILE_HPP
23#define HEADER_MISSILE_HPP
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);
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
virtual HitEffect * getHitEffect() const OVERRIDE
No hit effect when it ends.
Definition: plunger.hpp:68
int16_t m_keep_alive
Ticks to keep the plunger alive while the rubber band is working.
Definition: plunger.hpp:45
virtual bool hit(AbstractKart *kart, PhysicalObject *obj=NULL) OVERRIDE
Virtual function called when the plunger hits something.
Definition: plunger.cpp:194
virtual BareNetworkString * saveState(std::vector< std::string > *ru) OVERRIDE
Provides a copy of the state of the object in one memory buffer.
Definition: plunger.cpp:257
virtual bool updateAndDelete(int ticks) OVERRIDE
Updates the plunger in each frame.
Definition: plunger.cpp:162
RubberBand * m_rubber_band
The rubber band attached to a plunger.
Definition: plunger.hpp:42
void updateGraphics(float dt) OVERRIDE
Called once per rendered frame.
Definition: plunger.cpp:142
virtual void hitTrack() OVERRIDE
Called when the plunger hits the track.
Definition: plunger.cpp:249
virtual void onFireFlyable() OVERRIDE
Call when the item is (re-)fired (during rewind if needed) by projectile_manager.
Definition: plunger.cpp:59
void setKeepAlive(int16_t ticks)
Sets the keep-alive value.
Definition: plunger.hpp:65
virtual void restoreState(BareNetworkString *buffer, int count) OVERRIDE
Called when a state needs to be replayed.
Definition: plunger.cpp:272
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