7 #ifndef CAFU_GAMESYS_COMPONENT_MOVER_HPP_INCLUDED
8 #define CAFU_GAMESYS_COMPONENT_MOVER_HPP_INCLUDED
10 #include "CompBase.hpp"
36 enum { DESTACT_MOVE_HOME = 0, DESTACT_RESET_TIMEOUT, DESTACT_IGNORE };
49 enum { OTHERENTS_IGNORE = 0, OTHERENTS_CANNOT_PUSH, OTHERENTS_CAN_PUSH, OTHERENTS_CAN_FORCE_PUSH };
62 enum { TRAJFUNC_LINEAR = 0, TRAJFUNC_SINE };
64 VarTrajFuncT(
const char* Name,
const int& Value,
const char* Flags[]=NULL);
81 const char*
GetName()
const override {
return "Mover"; }
95 static int HandleMove(lua_State* LuaState);
96 static int toString(lua_State* LuaState);
99 static const char* DocClass;
106 bool HandleMove(
float t)
const;
ComponentMoverT * Clone() const override
The virtual copy constructor.
Definition: CompMover.cpp:149
void GetChoices(ArrayT< std::string > &Strings, ArrayT< int > &Values) const override
This method returns a list of acceptable input values for this variable, along with a string represen...
Definition: CompMover.cpp:58
unsigned int GetEditorColor() const override
Returns a color that the Map Editor can use to render the representation of this component's entity...
Definition: CompMover.hpp:82
A variable of type int that describes the base function that is used to compute the mover's trajector...
Definition: CompMover.hpp:58
This is a "wrapper" around a normal C++ variable.
Definition: SetCompVar.hpp:15
A variable of type int that describes the mover's behavior when it is activated at the "dest" positio...
Definition: CompMover.hpp:32
BoundingBox3fT GetEditorBB() const override
Returns a bounding-box that the Map Editor can use to render the representation of this component's e...
Definition: CompMover.hpp:83
This component controls the movement of one or more entities and implements the related effects...
Definition: CompMover.hpp:27
void GetChoices(ArrayT< std::string > &Strings, ArrayT< int > &Values) const override
This method returns a list of acceptable input values for this variable, along with a string represen...
Definition: CompMover.cpp:40
static const luaL_Reg MethodsList[]
The list of Lua methods for this class.
Definition: CompMover.hpp:98
void GetChoices(ArrayT< std::string > &Strings, ArrayT< int > &Values) const override
This method returns a list of acceptable input values for this variable, along with a string represen...
Definition: CompMover.cpp:77
const char * GetName() const override
Returns the name of this component.
Definition: CompMover.hpp:81
ComponentMoverT()
The constructor.
Definition: CompMover.cpp:113
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
A variable of type int that describes the mover's behavior regarding other entities.
Definition: CompMover.hpp:45
Definition: TypeSys.hpp:68
This is the base class for the components that an entity is composed/aggregated of.
Definition: CompBase.hpp:54