Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/objecthierarchie/src/BaseObject.h @ 149

Last change on this file since 149 was 149, checked in by landauf, 16 years ago

update; dont look at it, its not finished

File size: 1.1 KB
Line 
1#ifndef _BaseObject_H__
2#define _BaseObject_H__
3
4#include "ClassHierarchy.h"
5
6namespace 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            Identifier* 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.