1 | #ifndef _BaseObject_H__ |
---|
2 | #define _BaseObject_H__ |
---|
3 | |
---|
4 | #include "../core/IdentifierIncludes.h" |
---|
5 | |
---|
6 | namespace orxonox |
---|
7 | { |
---|
8 | class BaseObject : virtual public OrxonoxClass |
---|
9 | { |
---|
10 | public: |
---|
11 | BaseObject(); |
---|
12 | virtual ~BaseObject(); |
---|
13 | |
---|
14 | inline bool isA(const Identifier* identifier) |
---|
15 | { this->getIdentifier()->isA(identifier); } |
---|
16 | inline bool isDirectlyA(const Identifier* identifier) |
---|
17 | { this->getIdentifier()->isDirectlyA(identifier); } |
---|
18 | inline bool isChildOf(const Identifier* identifier) |
---|
19 | { this->getIdentifier()->isChildOf(identifier); } |
---|
20 | inline bool isParentOf(const Identifier* identifier) |
---|
21 | { this->getIdentifier()->isParentOf(identifier); } |
---|
22 | |
---|
23 | inline bool isA(const SubclassIdentifier<class B>* identifier) |
---|
24 | { this->getIdentifier()->isA(identifier->getIdentifier()); } |
---|
25 | inline bool isDirectlyA(const SubclassIdentifier<class B>* identifier) |
---|
26 | { this->getIdentifier()->isDirectlyA(identifier->getIdentifier()); } |
---|
27 | inline bool isChildOf(const SubclassIdentifier<class B>* identifier) |
---|
28 | { this->getIdentifier()->isChildOf(identifier->getIdentifier()); } |
---|
29 | inline bool isParentOf(const SubclassIdentifier<class B>* identifier) |
---|
30 | { this->getIdentifier()->isParentOf(identifier->getIdentifier()); } |
---|
31 | |
---|
32 | inline bool isA(const SubclassIdentifier<class B> identifier) |
---|
33 | { this->getIdentifier()->isA(identifier.getIdentifier()); } |
---|
34 | inline bool isDirectlyA(const SubclassIdentifier<class B> identifier) |
---|
35 | { this->getIdentifier()->isDirectlyA(identifier.getIdentifier()); } |
---|
36 | inline bool isChildOf(const SubclassIdentifier<class B> identifier) |
---|
37 | { this->getIdentifier()->isChildOf(identifier.getIdentifier()); } |
---|
38 | inline bool isParentOf(const SubclassIdentifier<class B> identifier) |
---|
39 | { this->getIdentifier()->isParentOf(identifier.getIdentifier()); } |
---|
40 | |
---|
41 | inline bool isA(const OrxonoxClass* object) |
---|
42 | { this->getIdentifier()->isA(object->getIdentifier()); } |
---|
43 | inline bool isDirectlyA(const OrxonoxClass* object) |
---|
44 | { this->getIdentifier()->isDirectlyA(object->getIdentifier()); } |
---|
45 | inline bool isChildOf(const OrxonoxClass* object) |
---|
46 | { this->getIdentifier()->isChildOf(object->getIdentifier()); } |
---|
47 | inline bool isParentOf(const OrxonoxClass* object) |
---|
48 | { this->getIdentifier()->isParentOf(object->getIdentifier()); } |
---|
49 | |
---|
50 | std::string name_; // test |
---|
51 | |
---|
52 | }; |
---|
53 | } |
---|
54 | |
---|
55 | #endif |
---|