Mercurial > fife-parpg
comparison engine/core/util/base/utilbase.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 "util/base/resourceclass.h" | |
4 #include "util/base/fifeclass.h" | |
5 %} | |
6 | |
7 %include "util/base/exception.h" | |
8 %include "util/resource/resource.i" | |
9 | |
10 namespace FIFE { | |
11 | |
12 typedef unsigned int fifeid_t; | |
13 | |
14 class FifeClass: public IReferenceCounted { | |
15 public: | |
16 virtual ~FifeClass(); | |
17 fifeid_t getFifeId(); | |
18 void addRef(); | |
19 void decRef(); | |
20 unsigned int getRefCount(); | |
21 }; | |
22 | |
23 class ResourceClass: public FifeClass, public IResource { | |
24 public: | |
25 virtual ~ResourceClass(); | |
26 const ResourceLocation& getResourceLocation(); | |
27 const std::string& getResourceFile(); | |
28 | |
29 virtual void setResourceLocation(const ResourceLocation& location); | |
30 virtual void setResourceFile(const std::string& filename); | |
31 | |
32 int getPoolId(); | |
33 void setPoolId(int poolid); | |
34 | |
35 private: | |
36 ResourceClass(); | |
37 }; | |
38 | |
39 } |