comparison engine/core/model/metamodel/object.i @ 0:4a0efb7baf70

* Datasets becomes the new trunk and retires after that :-)
author mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
date Sun, 29 Jun 2008 18:44:17 +0000
parents
children 90005975cdbb
comparison
equal deleted inserted replaced
-1:000000000000 0:4a0efb7baf70
1 %module fife
2 %{
3 #include "model/metamodel/object.h"
4 %}
5
6 %include "util/base/utilbase.i"
7 %include "model/metamodel/abstractvisual.i"
8
9 namespace FIFE {
10
11 class Action;
12 class AbstractPather;
13
14 class Object : public ResourceClass {
15 public:
16 Object(const std::string& identifier, const std::string& name_space, Object* inherited=NULL);
17 ~Object();
18
19 const std::string& getId();
20 const std::string& getNamespace();
21
22 Action* createAction(const std::string& identifier, bool is_default=false);
23 Action* getAction(const std::string& identifier);
24 Action* getDefaultAction();
25
26 void setPather(AbstractPather* pather);
27 AbstractPather* getPather();
28
29 Object* getInherited();
30 void adoptVisual(AbstractVisual* visual);
31 template<typename T> T* getVisual() const;
32
33 void setBlocking(bool blocking);
34 bool isBlocking();
35
36 void setStatic(bool stat);
37 bool isStatic();
38 };
39
40 class ObjectLoader : public ResourceLoader {
41 public:
42 Object* load(const ResourceLocation& location);
43 Object* load(const std::string& filename);
44 };
45 }