22 #ifndef FIFE_PROTOTYPE_H
23 #define FIFE_PROTOTYPE_H
36 #include "util/base/resourceclass.h"
37 #include "util/math/angles.h"
62 Object(
const std::string& identifier,
const std::string& name_space,
Object* inherited=NULL);
68 const std::string& getId()
const {
return m_id; }
69 const std::string& getNamespace()
const {
return m_namespace; }
73 void setId(
const std::string&
id) { m_id = id; }
84 Action*
createAction(
const std::string& identifier,
bool is_default=
false);
88 Action*
getAction(
const std::string& identifier)
const;
117 template<
typename T> T*
getVisual()
const {
return reinterpret_cast<T*
>(m_visual); }
135 bool operator==(
const Object& obj)
const;
136 bool operator!=(
const Object& obj)
const;
140 std::string m_namespace;
142 std::map<std::string, Action*>* m_actions;
145 AbstractPather* m_pather;
146 AbstractVisual* m_visual;
147 Action* m_defaultaction;