|
supertux
|
This class is the base class for all objects you can interact with in some way. More...
#include <trigger_base.hpp>


Public Types | |
| enum | EventType { EVENT_TOUCH, EVENT_LOSETOUCH, EVENT_ACTIVATE } |
Public Member Functions | |
| virtual void | event (Player &player, EventType type)=0 |
| Receive trigger events. | |
| virtual void | object_removed (GameObject *object) override |
| Called by GameObject destructor of an object in losetouch_listeners. | |
Protected Member Functions | |
| void | update () |
| HitResponse | collision (GameObject &other, const CollisionHit &hit) |
This class is the base class for all objects you can interact with in some way.
There are several interaction types defined like touch and activate
1.8.13