Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
MtEvent Class Referenceabstract

#include <mtevent.h>

+ Inheritance diagram for MtEvent:

Public Types

enum  Type : u8 {
  VIEW_BOBBING_STEP = 0 , CAMERA_PUNCH_LEFT , CAMERA_PUNCH_RIGHT , PLAYER_FALLING_DAMAGE ,
  PLAYER_DAMAGE , NODE_DUG , PLAYER_JUMP , PLAYER_REGAIN_GROUND ,
  TYPE_MAX
}
 

Public Member Functions

virtual ~MtEvent ()=default
 
virtual Type getType () const =0
 

Member Enumeration Documentation

◆ Type

enum MtEvent::Type : u8
Enumerator
VIEW_BOBBING_STEP 
CAMERA_PUNCH_LEFT 
CAMERA_PUNCH_RIGHT 
PLAYER_FALLING_DAMAGE 
PLAYER_DAMAGE 
NODE_DUG 
PLAYER_JUMP 
PLAYER_REGAIN_GROUND 
TYPE_MAX 

Constructor & Destructor Documentation

◆ ~MtEvent()

virtual MtEvent::~MtEvent ( )
virtualdefault

Member Function Documentation

◆ getType()

virtual Type MtEvent::getType ( ) const
pure virtual

Implemented in NodeDugEvent, and SimpleTriggerEvent.

Referenced by EventManagerTest::eventTest(), and EventManager::put().

+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: