Last change
on this file since 158 was
150,
checked in by landauf, 17 years ago
|
no idea if this has any chance to work… template-syntax is crap
|
File size:
1.1 KB
|
Line | |
---|
1 | #ifndef _BaseObject_H__ |
---|
2 | #define _BaseObject_H__ |
---|
3 | |
---|
4 | #include "ClassHierarchy.h" |
---|
5 | |
---|
6 | namespace orxonox |
---|
7 | { |
---|
8 | class BaseObject |
---|
9 | { |
---|
10 | public: |
---|
11 | BaseObject(); |
---|
12 | ~BaseObject(); |
---|
13 | |
---|
14 | inline bool isA(Identifier* identifier) |
---|
15 | { this->identifier_->isA(identifier); } |
---|
16 | inline bool isDirectA(Identifier* identifier) |
---|
17 | { this->identifier_->isDirectA(identifier); } |
---|
18 | inline bool isChildOf(Identifier* identifier) |
---|
19 | { this->identifier_->isChildOf(identifier); } |
---|
20 | inline bool isDirectChildOf(Identifier* identifier) |
---|
21 | { this->identifier_->isDirectChildOf(identifier); } |
---|
22 | inline bool isParentOf(Identifier* identifier) |
---|
23 | { this->identifier_->isParentOf(identifier); } |
---|
24 | inline bool isDirectParentOf(Identifier* identifier) |
---|
25 | { this->identifier_->isDirectParentOf(identifier); } |
---|
26 | |
---|
27 | ClassIdentifier<class BaseObject>* identifier_; |
---|
28 | |
---|
29 | protected: |
---|
30 | IdentifierList* parents_; // INTERN! Don't touch this! |
---|
31 | |
---|
32 | private: |
---|
33 | |
---|
34 | }; |
---|
35 | } |
---|
36 | |
---|
37 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.