DayZ 1.24
Loading...
Searching...
No Matches
FSMBase.c File Reference

Go to the source code of this file.

Classes

class  FSMTransition< Class FSMStateBase, Class FSMEventBase, Class FSMActionBase, Class FSMGuardBase >
 
class  FSMBase< Class FSMStateBase, Class FSMEventBase, Class FSMActionBase, Class FSMGuardBase >
 

Enumerations

enum  ProcessEventResult { FSM_OK , FSM_TERMINATED , FSM_ABORTED , FSM_NO_TRANSITION }
 

Functions

void fsmbDebugPrint (string s)
 
void fsmbDebugSpam (string s)
 

Enumeration Type Documentation

◆ ProcessEventResult

Enumerator
FSM_OK 
FSM_TERMINATED 
FSM_ABORTED 
FSM_NO_TRANSITION 

Definition at line 40 of file FSMBase.c.

41{
42 FSM_OK,
46};
@ FSM_ABORTED
Definition FSMBase.c:44
@ FSM_OK
Definition FSMBase.c:42
@ FSM_TERMINATED
Definition FSMBase.c:43
@ FSM_NO_TRANSITION
Definition FSMBase.c:45

Function Documentation

◆ fsmbDebugPrint()

void fsmbDebugPrint ( string s)

Definition at line 1 of file FSMBase.c.

2{
3#ifdef FSM_DEBUG
4 PrintToRPT("" + s); // comment/uncomment to hide/see debug logs
5#else
6 //Print("" + s); // comment/uncomment to hide/see debug logs
7#endif
8}
proto void PrintToRPT(void var)
Prints content of variable to RPT file (performance warning - each write means fflush!...

References PrintToRPT().

Referenced by FSMBase< Class FSMStateBase, Class FSMEventBase, Class FSMActionBase, Class FSMGuardBase >::ProcessLocalTransition(), OFSMBase< Class FSMStateBase, Class FSMEventBase, Class FSMActionBase, Class FSMGuardBase >::ProcessLocalTransition(), OFSMBase< Class FSMStateBase, Class FSMEventBase, Class FSMActionBase, Class FSMGuardBase >::Start(), and FSMBase< Class FSMStateBase, Class FSMEventBase, Class FSMActionBase, Class FSMGuardBase >::Start().

◆ fsmbDebugSpam()

void fsmbDebugSpam ( string s)

Definition at line 9 of file FSMBase.c.

10{
11#ifdef FSM_DEBUG_SPAM
12 PrintToRPT("" + s); // comment/uncomment to hide/see debug logs
13#else
14 //Print("" + s); // comment/uncomment to hide/see debug logs
15#endif
16}

References PrintToRPT().