SuperTuxKart
hit_effect.hpp
1 //
2 // SuperTuxKart - a fun racing game with go-kart
3 // Copyright (C) 2011-2015 Joerg Henrichs
4 //
5 // This program is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License
7 // as published by the Free Software Foundation; either version 3
8 // of the License, or (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 
19 #ifndef HEADER_HIT_EFFECT_HPP
20 #define HEADER_HIT_EFFECT_HPP
21 
22 #include "utils/no_copy.hpp"
23 
24 class Vec3;
25 
32 class HitEffect: public NoCopy
33 {
34 private:
38 
39 public:
42  virtual ~HitEffect() {}
46  virtual bool updateAndDelete(int ticks) = 0;
47 
48  // ------------------------------------------------------------------------
53  // ------------------------------------------------------------------------
56 }; // HitEffect
57 
58 #endif
59 
60 /* EOF */
bool m_local_player_kart_hit
True if this effect affected a player kart.
Definition: hit_effect.hpp:37
A wrapper around bullets btVector3 to include conventient conversion functions (e....
Definition: vec3.hpp:34
A small interface for effects to be used when a kart is hit.
Definition: hit_effect.hpp:32
HitEffect()
Constructor for a hit effect.
Definition: hit_effect.hpp:41
bool getLocalPlayerKartHit() const
Returns if this effect affects a player kart.
Definition: hit_effect.hpp:55
virtual void setLocalPlayerKartHit()
Sets that this SFX affects a player kart, which can be used to make certain sfx louder/less loud.
Definition: hit_effect.hpp:52
Utility class, you can inherit from this class to disallow the assignment operator and copy construct...
Definition: no_copy.hpp:25
virtual bool updateAndDelete(int ticks)=0
Updates a hit effect.