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;