22 #ifndef FIFE_PROTOTYPE_H
23 #define FIFE_PROTOTYPE_H
36 #include "util/resource/resource.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 void setFilename(
const std::string& file) { m_filename = file; }
136 const std::string& getFilename()
const {
return m_filename; }
138 bool operator==(
const Object& obj)
const;
139 bool operator!=(
const Object& obj)
const;
143 std::string m_namespace;
144 std::string m_filename;
146 std::map<std::string, Action*>* m_actions;
151 Action* m_defaultaction;
IPather * getPather() const
void adoptVisual(IVisual *visual)
Action * getDefaultAction() const
Object(const std::string &identifier, const std::string &name_space, Object *inherited=NULL)
Object * getInherited() const
void setId(const std::string &id)
Action * createAction(const std::string &identifier, bool is_default=false)
void setStatic(bool stat)
Action * getAction(const std::string &identifier) const
void setPather(IPather *pather)
void setBlocking(bool blocking)
std::list< std::string > getActionIds() const
credit to phoku for his NodeDisplay example which the visitor code is adapted from ( he coded the qua...