Orxonox: src/core/BaseObject.h File Reference

# BaseObject.h File Reference

Definition of the BaseObject class. More...

`#include "CorePrereqs.h"`
`#include <map>`
`#include <list>`
`#include "util/mbool.h"`
`#include "OrxonoxClass.h"`
`#include "Super.h"`

## Namespaces

namespace | orxonox

## Classes

class | orxonox::BaseObject
| The BaseObject is the parent of all classes representing an instance in the game. More...

## Defines

#define | SetMainState(classname, statename, setfunction, getfunction)

## Functions

| orxonox::SUPER_FUNCTION (10, BaseObject, changedGametype, false)
| orxonox::SUPER_FUNCTION (9, BaseObject, changedName, false)
| orxonox::SUPER_FUNCTION (6, BaseObject, changedMainState, false)
| orxonox::SUPER_FUNCTION (4, BaseObject, processEvent, false)
| orxonox::SUPER_FUNCTION (3, BaseObject, changedVisibility, false)
| orxonox::SUPER_FUNCTION (2, BaseObject, changedActivity, false)
| orxonox::SUPER_FUNCTION (0, BaseObject, XMLPort, false)

## Detailed Description

Definition of the BaseObject class.

The BaseObject is the parent of all classes representing an instance in the game.

## Define Documentation

#define SetMainState | ( | classname,
|  | statename,
|  | setfunction,
|  | getfunction |  | ) |

Value:

    if (this->getMainStateName() == statename) \
        { \
            this->functorSetMainState_ = createFunctor(&classname::setfunction)->setObject(this); \
            this->functorGetMainState_ = createFunctor(&classname::getfunction)->setObject(this); \
        }

Referenced by orxonox::BaseObject::changedMainState().