ManaPlus
Macros
actiondef.h File Reference

(986a3bf)

#include "gamemodifiers.h"
#include "settings.h"
#include "input/inputmanager.h"

Go to the source code of this file.

Macros

#define impHandler(name)   bool name(InputEvent &event)
 
#define impHandler0(name)   bool name(InputEvent &event A_UNUSED)
 
#define impHandlerVoid(name)
 
#define callYellowBar(name)
 
#define callYellowBarCond(name)
 

Macro Definition Documentation

◆ callYellowBar

#define callYellowBar (   name)
Value:
GameModifiers::name(!inputManager.isActionActive( \
return true
bool isActionActive(const InputActionT index) const
InputManager inputManager

Definition at line 40 of file actiondef.h.

◆ callYellowBarCond

#define callYellowBarCond (   name)
Value:
{ \
GameModifiers::name(!inputManager.isActionActive( \
return true; \
} \
return false
bool disableGameModifiers
Definition: settings.h:157
Settings settings
Definition: settings.cpp:32

Definition at line 45 of file actiondef.h.

◆ impHandler

#define impHandler (   name)    bool name(InputEvent &event)

Definition at line 33 of file actiondef.h.

◆ impHandler0

#define impHandler0 (   name)    bool name(InputEvent &event A_UNUSED)

Definition at line 34 of file actiondef.h.

◆ impHandlerVoid

#define impHandlerVoid (   name)
Value:
bool name(InputEvent &event A_UNUSED) \
{ \
return false; \
}
#define A_UNUSED
Definition: localconsts.h:160

Definition at line 35 of file actiondef.h.