7 #ifndef CAFU_GAMESYS_COMPONENT_SOUND_HPP_INCLUDED
8 #define CAFU_GAMESYS_COMPONENT_SOUND_HPP_INCLUDED
10 #include "CompBase.hpp"
37 const char*
GetName()
const {
return "Sound"; }
51 static int Play(lua_State* LuaState);
52 static int toString(lua_State* LuaState);
55 static const char* DocClass;
68 std::string m_PrevName;
const char * GetName() const
Returns the name of this component.
Definition: CompSound.hpp:37
This component adds 3D sound output to its entity.
Definition: CompSound.hpp:21
ComponentSoundT * Clone() const
The virtual copy constructor.
Definition: CompSound.cpp:89
ComponentSoundT()
The constructor.
Definition: CompSound.cpp:45
~ComponentSoundT()
The destructor.
Definition: CompSound.cpp:75
static const luaL_Reg MethodsList[]
The list of Lua methods for this class.
Definition: CompSound.hpp:54
This class represents a sound.
Definition: Sound.hpp:15
void DoClientFrame(float t)
Derived classes override this method in order to implement the real work proposed by OnClientFrame()...
Definition: CompSound.cpp:95
unsigned int GetEditorColor() const
Returns a color that the Map Editor can use to render the representation of this component's entity...
Definition: CompSound.hpp:38
Definition: TypeSys.hpp:52
Definition: TypeSys.hpp:57
This class keeps type information (about an entity class that occurs in the game).
Definition: TypeSys.hpp:79
Definition: TypeSys.hpp:68
This is the base class for the components that an entity is composed/aggregated of.
Definition: CompBase.hpp:54