Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

it starts to work, but there is still much to do.

@bensch: thanks for you mail, but i can't tell you much at the moment - i'm still changing lots of things and i have no idea if everything will work as intendet, so i'll write you as soon as i have reliable informations :)
</abuse log for pms>

File size: 1.2 KB
Line 
1#ifndef _BaseObject_H__
2#define _BaseObject_H__
3
4#include "ClassHierarchy.h"
5#include "OrxonoxClass.h"
6
7namespace orxonox
8{
9    class BaseObject : virtual public OrxonoxClass
10    {
11        public:
12            BaseObject();
13            ~BaseObject();
14
15            inline bool isA(Identifier* identifier)
16                { this->getIdentifier()->isA(identifier); }
17            inline bool isDirectA(Identifier* identifier)
18                { this->getIdentifier()->isDirectA(identifier); }
19            inline bool isChildOf(Identifier* identifier)
20                { this->getIdentifier()->isChildOf(identifier); }
21            inline bool isDirectChildOf(Identifier* identifier)
22                { this->getIdentifier()->isDirectChildOf(identifier); }
23            inline bool isParentOf(Identifier* identifier)
24                { this->getIdentifier()->isParentOf(identifier); }
25            inline bool isDirectParentOf(Identifier* identifier)
26                { this->getIdentifier()->isDirectParentOf(identifier); }
27
28//            Identifier* identifier_;
29
30//        protected:
31//            IdentifierList* parents_; // INTERN! Don't touch this!
32
33    };
34}
35
36#endif
Note: See TracBrowser for help on using the repository browser.