orx 1.16
Portable Game Engine
Loading...
Searching...
No Matches
orxTrigger.h
Go to the documentation of this file.
1/* Orx - Portable Game Engine
2 *
3 * Copyright (c) 2008- Orx-Project
4 *
5 * This software is provided 'as-is', without any express or implied
6 * warranty. In no event will the authors be held liable for any damages
7 * arising from the use of this software.
8 *
9 * Permission is granted to anyone to use this software for any purpose,
10 * including commercial applications, and to alter it and redistribute it
11 * freely, subject to the following restrictions:
12 *
13 * 1. The origin of this software must not be misrepresented; you must not
14 * claim that you wrote the original software. If you use this software
15 * in a product, an acknowledgment in the product documentation would be
16 * appreciated but is not required.
17 *
18 * 2. Altered source versions must be plainly marked as such, and must not be
19 * misrepresented as being the original software.
20 *
21 * 3. This notice may not be removed or altered from any source
22 * distribution.
23 */
24
32
41
42
43#ifndef _orxTRIGGER_H_
44#define _orxTRIGGER_H_
45
46
47#include "orxInclude.h"
48#include "object/orxStructure.h"
49
50
53#define orxTRIGGER_KC_SEPARATOR ':'
54#define orxTRIGGER_KC_STOP_MARKER '!'
55
56
59typedef struct __orxTRIGGER_t orxTRIGGER;
60
61
75
78typedef struct __orxTRIGGER_EVENT_PAYLOAD_t
79{
81 const orxSTRING zSetName;
82 const orxSTRING zEventName;
83 const orxSTRING zEventValue;
84 const orxSTRING *azRefinementList;
88
89
92extern orxDLLAPI void orxFASTCALL orxTrigger_Setup();
93
97extern orxDLLAPI orxSTATUS orxFASTCALL orxTrigger_Init();
98
101extern orxDLLAPI void orxFASTCALL orxTrigger_Exit();
102
107
112extern orxDLLAPI orxSTATUS orxFASTCALL orxTrigger_Delete(orxTRIGGER *_pstTrigger);
113
118
123extern orxDLLAPI void orxFASTCALL orxTrigger_Enable(orxTRIGGER *_pstTrigger, orxBOOL _bEnable);
124
129extern orxDLLAPI orxBOOL orxFASTCALL orxTrigger_IsEnabled(const orxTRIGGER *_pstTrigger);
130
136extern orxDLLAPI orxSTATUS orxFASTCALL orxTrigger_AddSetFromConfig(orxTRIGGER *_pstTrigger, const orxSTRING _zConfigID);
137
143extern orxDLLAPI orxSTATUS orxFASTCALL orxTrigger_RemoveSetFromConfig(orxTRIGGER *_pstTrigger, const orxSTRING _zConfigID);
144
149extern orxDLLAPI orxU32 orxFASTCALL orxTrigger_GetCount(const orxTRIGGER *_pstTrigger);
150
158extern orxDLLAPI orxSTATUS orxFASTCALL orxTrigger_Fire(orxTRIGGER *_pstTrigger, const orxSTRING _zEvent, const orxSTRING *_azRefinementList, orxU32 _u32Count);
159
160#endif /* _orxTRIGGER_H_ */
161
#define orxDLLAPI
Definition orxDecl.h:381
#define orxTRIGGER(STRUCTURE)
orxDLLAPI orxSTATUS orxFASTCALL orxTrigger_Fire(orxTRIGGER *_pstTrigger, const orxSTRING _zEvent, const orxSTRING *_azRefinementList, orxU32 _u32Count)
orxDLLAPI orxSTATUS orxFASTCALL orxTrigger_ClearCache()
orxTRIGGER_EVENT
Definition orxTrigger.h:65
orxDLLAPI orxTRIGGER *orxFASTCALL orxTrigger_Create()
orxDLLAPI orxSTATUS orxFASTCALL orxTrigger_Delete(orxTRIGGER *_pstTrigger)
orxDLLAPI void orxFASTCALL orxTrigger_Enable(orxTRIGGER *_pstTrigger, orxBOOL _bEnable)
struct __orxTRIGGER_t orxTRIGGER
Definition orxTrigger.h:59
orxDLLAPI orxSTATUS orxFASTCALL orxTrigger_Init()
orxDLLAPI void orxFASTCALL orxTrigger_Exit()
orxDLLAPI orxSTATUS orxFASTCALL orxTrigger_RemoveSetFromConfig(orxTRIGGER *_pstTrigger, const orxSTRING _zConfigID)
orxDLLAPI void orxFASTCALL orxTrigger_Setup()
orxDLLAPI orxU32 orxFASTCALL orxTrigger_GetCount(const orxTRIGGER *_pstTrigger)
orxDLLAPI orxSTATUS orxFASTCALL orxTrigger_AddSetFromConfig(orxTRIGGER *_pstTrigger, const orxSTRING _zConfigID)
orxDLLAPI orxBOOL orxFASTCALL orxTrigger_IsEnabled(const orxTRIGGER *_pstTrigger)
@ orxTRIGGER_EVENT_NONE
Definition orxTrigger.h:72
@ orxTRIGGER_EVENT_NUMBER
Definition orxTrigger.h:70
@ orxTRIGGER_EVENT_SET_ADD
Definition orxTrigger.h:66
@ orxTRIGGER_EVENT_SET_REMOVE
Definition orxTrigger.h:67
@ orxTRIGGER_EVENT_FIRE
Definition orxTrigger.h:68
orxSTATUS
Definition orxType.h:270
const orxSTRING zSetName
Definition orxTrigger.h:81
const orxSTRING * azRefinementList
Definition orxTrigger.h:84
const orxSTRING zEventName
Definition orxTrigger.h:82
const orxSTRING zEventValue
Definition orxTrigger.h:83
orxTRIGGER * pstTrigger
Definition orxTrigger.h:80

Generated for orx by doxygen 1.8.11