Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

some features work perfectly,
some features are fucked up,
some features arent yet implemented.

x3n→hair→brightness++;

theres still a lot to do, but i can see the light on the end of the tunnel.
templates, makros, operator overloading, function pointers… the beauty of the beast. i'm in love and still dying piece by piece with every line of code i'm writing.
</film noir>

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 isDirectlyA(Identifier* identifier)
18                { this->getIdentifier()->isDirectlyA(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.