Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4382 in orxonox.OLD for orxonox/trunk/src/lib/lang/base_object.h


Ignore:
Timestamp:
May 29, 2005, 9:04:17 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: BaseObject virtual public in PNode and Player(for test).
This is, so only one Object of type BaseObject is being created when deriving with multiple inheritance

@patrick: read it in a book at the lake today :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/lang/base_object.h

    r4381 r4382  
    11/*!
    2     \file proto_class.h
    3     \brief Definition of the proto class template, used quickly start work
     2    \file base_object.h
     3    \brief Definition of the base object class. that is a global handler for all classes.
    44*/
    55
     
    1010#include "class_list.h"
    1111
     12//! A class all other classes are derived from
    1213class BaseObject {
    1314
     
    2021  void setClassID(int id, const char* className);
    2122
     23  /** \returns the className of the corresponding Object */
    2224  inline const char* getClassName(void) const { return this->className;};
     25  /** \returns the classID of the corresponding Object */
    2326  inline int getClassID(void) const { return this->id; }
    2427  bool isA (char* className);
    2528
     29  /** \returns if the object is finalized */
    2630  inline bool isFinalized() { return this->finalized; }
    2731  void finalize();
Note: See TracChangeset for help on using the changeset viewer.