Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 2, 2007, 1:25:00 AM (18 years ago)
Author:
landauf
Message:

update; dont look at it, its not finished

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchie/src/BaseObject.h

    r132 r149  
    44#include "ClassHierarchy.h"
    55
    6 //namespace orxonox
    7 //{
     6namespace orxonox
     7{
    88    class BaseObject
    99    {
     
    1212            ~BaseObject();
    1313
    14             bool isA(ClassName* className);
    15             bool isChildOf(ClassName* className);
    16             bool isParentOf(ClassName* className);
    17             static bool getParentOf(ClassName* className);
     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); }
    1826
    19 //            static void operator new (size_t size);
     27            Identifier* identifier_;
    2028
    21             ClassName *className;
     29        protected:
     30            IdentifierList* parents_; // INTERN! Don't touch this!
    2231
    2332        private:
    2433
    2534    };
    26 //}
     35}
    2736
    2837#endif
Note: See TracChangeset for help on using the changeset viewer.