Guiliani  Version 2.5 revision 7293 (documentation build 13)
GUICommandResource.h File Reference

Helper Macros in Guiliani More...

#include "eC_Types.h"
#include <limits.h>

Go to the source code of this file.

Macros

#define COMMAND_TABLE
 CommandClassIDs. More...
 
#define ENTRY(cmd, cmdclass)   -1
 Helper Macros in Guiliani
 
#define ENTRY(cmd_id, cmd_classname)   cmd_id,
 Helper Macros in Guiliani
 
#define ENTRY_ENUM(a)   -1
 Helper Macros in Guiliani
 
#define ENTRY_ENUM(a)   a,
 Helper Macros in Guiliani
 

Typedefs

typedef int static_assert_something[(DUMMY_COMMAND==0) ? 1 :-1]
 Will throw compile error negative subscript if DUMMY_COMMAND is NOT 0!
 

Enumerations

enum  CommandClassID_t {
  COMMAND_START_TAG = ciCalculatedCmdStartTag - 1 , CMD_SETDATAPOOL , CMD_STOP_ANIMATIONCHAIN , CMD_CALLAPI ,
  CMD_DELAY , CMD_SETOBJECTVISUALS , CMD_SWITCH_RESOURCESETS , CMD_START_ANIMATIONCHAIN ,
  CMD_LOAD_ANIMATIONS , CMD_SETOBJECTSTATE , CMD_DIALOG_TRANSITION , CMD_PLAYBACK_SOUND ,
  CMD_LOAD_DIALOG , CMD_QUIT , DUMMY_COMMAND , NOF_COMMANDCLASSES ,
  GUILIANI_INTERNAL_CMD = INT_MAX
}
 List of command class ids.
 

Variables

const int ciCalculatedCmdStartTag = -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
 preprocessor generates for all entries of SOUND_TABLE: -1 -1 -1..., resulting in a mathematical expression, that will be evaluated to -1*(Number of entries of IMAGE_TABLE
 
const eC_UInt cuiNOFCommandClasses
 Used to contain the highest index cuiNOFXXXClasses = MAP_PROPID_TO_ARRAY(NOF_XXXCLASSES);.
 

Detailed Description

Macro Definition Documentation

◆ COMMAND_TABLE

#define COMMAND_TABLE
Value:
ENTRY(CMD_SETDATAPOOL, CGUISetDataPoolCmd) \
ENTRY(CMD_STOP_ANIMATIONCHAIN, CGUIStopAnimationChainCmd) \
ENTRY(CMD_CALLAPI, CGUICallAPICmd) \
ENTRY(CMD_DELAY, CGUIDelayCmd) \
ENTRY(CMD_SETOBJECTVISUALS, CGUISetObjectVisualsCmd) \
ENTRY(CMD_SWITCH_RESOURCESETS, CGUISwitchResourceSetsCmd) \
ENTRY(CMD_START_ANIMATIONCHAIN, CGUIStartAnimationChainCmd) \
ENTRY(CMD_LOAD_ANIMATIONS, CGUILoadAnimationsCmd) \
ENTRY(CMD_SETOBJECTSTATE, CGUISetObjectStateCmd) \
ENTRY(CMD_DIALOG_TRANSITION, CGUITransitionCmd) \
ENTRY(CMD_PLAYBACK_SOUND, CGUIPlaybackSoundCmd) \
ENTRY(CMD_LOAD_DIALOG, CGUILoadDialogCmd) \
ENTRY(CMD_QUIT, CGUIQuitCmd)
#define ENTRY(cmd, cmdclass)
Helper Macros in Guiliani
Definition: GUICommandResource.h:54
This command can be used to execute specific code inside the application.
Definition: GUICallAPICmd.h:20
This command can be used to execute other commands after a specific period of time.
Definition: GUIDelayCmd.h:19
Loads animations and animation chains from a file and deletes all existing ones.
Definition: GUILoadAnimationsCmd.h:30
Loads a GUI definition from a file.
Definition: GUILoadDialogCmd.h:31
Plays a sound when executed.
Definition: GUIPlaybackSoundCmd.h:19
Quits the Guiliani application by ending the main loop.
Definition: GUIQuitCmd.h:21
This command can be used to execute specific code inside the application.
Definition: GUISetDataPoolCmd.h:21
An example for a custom command that changes the object states of an GUIObject.
Definition: GUISetObjectStateCmd.h:24
An example for a custom command that changes the object visuals of an GUIObject.
Definition: GUISetObjectVisualsCmd.h:25
Definition: GUIStartAnimationChainCmd.h:22
Definition: GUIStopAnimationChainCmd.h:22
This command can be used to switch to other resource-sets during runtime.
Definition: GUISwitchResourceSetsCmd.h:21
Transits from a source dialog to a destination dialog.
Definition: GUITransitionCmd.h:31

CommandClassIDs.