19#ifndef HEADER_BOWLING_HPP
20#define HEADER_BOWLING_HPP
24 namespace scene {
class IMesh; }
29#include "items/flyable.hpp"
40 static float m_st_max_distance;
41 static float m_st_max_distance_squared;
42 static float m_st_force_to_target;
56 static void init(
const XMLNode &node, scene::IMesh *bowling);
An abstract interface for the actual karts.
Definition: abstract_kart.hpp:62
Definition: bowling.hpp:38
virtual void onFireFlyable() OVERRIDE
Call when the item is (re-)fired (during rewind if needed) by projectile_manager.
Definition: bowling.cpp:201
virtual bool updateAndDelete(int ticks) OVERRIDE
Updates the bowling ball ineach frame.
Definition: bowling.cpp:79
virtual HitEffect * getHitEffect() const OVERRIDE
Returns the hit effect object to use when this objects hits something.
Definition: bowling.cpp:188
bool m_has_hit_kart
If a bowling ball has hit something, this flag is set to indicate if a kart was hit or not.
Definition: bowling.hpp:47
virtual bool hit(AbstractKart *kart, PhysicalObject *obj=NULL) OVERRIDE
Callback from the physics in case that a kart or physical object is hit.
Definition: bowling.cpp:155
SFXBase * m_roll_sfx
A sound effect for rolling ball.
Definition: bowling.hpp:50
static void init(const XMLNode &node, scene::IMesh *bowling)
Initialises this object with data from the power.xml file.
Definition: bowling.cpp:60
virtual ~Bowling()
Destructor, removes any playing sfx.
Definition: bowling.cpp:49
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
The base class for sound effects.
Definition: sfx_base.hpp:43
utility class used to parse XML files
Definition: xml_node.hpp:48