comparison engine/core/model/model.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 112fc4af772d
comparison
equal deleted inserted replaced
-1:000000000000 0:4a0efb7baf70
1 %module fife
2 %{
3 #include "model/model.h"
4 %}
5
6 %include "std_list.i"
7
8 namespace FIFE {
9 class Map;
10 class Object;
11 }
12
13 namespace std {
14 %template(StringList) list<std::string>;
15 %template(ObjectList) list<FIFE::Object*>;
16 %template(MapList) list<FIFE::Map*>;
17 }
18
19 namespace FIFE {
20 class AbstractPather;
21
22 class Model: public FifeClass {
23 public:
24 Model();
25 ~Model();
26
27 Map* createMap(const std::string& identifier);
28 void deleteMap(Map*);
29
30 const std::list<Map*>& getMaps() const;
31 Map* getMap(const std::string& id) const;
32
33 std::list<std::string> getNamespaces() const;
34
35 Object* createObject(const std::string& identifier, const std::string& name_space, Object* parent=0);
36 Object* getObject(const std::string& id, const std::string& name_space);
37 const std::list<Object*>& getObjects(const std::string& name_space) const;
38
39 size_t getNumMaps() const;
40 void deleteMaps();
41
42 AbstractPather* getPather(const std::string& pathername);
43
44 void setTimeMultiplier(float multip);
45 double getTimeMultiplier() const;
46
47 };
48 }