orx
1.14
Portable Game Engine
|
Macros | |
#define | orxSPAWNER_KU32_FLAG_AUTO_DELETE 0x00000001 |
#define | orxSPAWNER_KU32_FLAG_AUTO_RESET 0x00000002 |
#define | orxSPAWNER_KU32_FLAG_CLEAN_ON_DELETE 0x00000200 |
#define | orxSPAWNER_KU32_FLAG_INTERPOLATE 0x00000400 |
#define | orxSPAWNER_KU32_FLAG_NONE 0x00000000 |
#define | orxSPAWNER_KU32_FLAG_USE_ALPHA 0x00000004 |
#define | orxSPAWNER_KU32_FLAG_USE_COLOR 0x00000008 |
#define | orxSPAWNER_KU32_FLAG_USE_RELATIVE_SPEED_OBJECT 0x00000040 |
#define | orxSPAWNER_KU32_FLAG_USE_RELATIVE_SPEED_SPAWNER 0x00000080 |
#define | orxSPAWNER_KU32_FLAG_USE_ROTATION 0x00000010 |
#define | orxSPAWNER_KU32_FLAG_USE_SCALE 0x00000020 |
#define | orxSPAWNER_KU32_FLAG_USE_SELF_AS_PARENT 0x00000100 |
#define | orxSPAWNER_KU32_MASK_USE_RELATIVE_SPEED 0x000000C0 |
#define | orxSPAWNER_KU32_MASK_USER_ALL 0x000004FF |
Typedefs | |
typedef struct __orxSPAWNER_t | orxSPAWNER |
Enumerations | |
enum | orxSPAWNER_EVENT { orxSPAWNER_EVENT_SPAWN = 0, orxSPAWNER_EVENT_CREATE, orxSPAWNER_EVENT_DELETE, orxSPAWNER_EVENT_RESET, orxSPAWNER_EVENT_EMPTY, orxSPAWNER_EVENT_WAVE_START, orxSPAWNER_EVENT_WAVE_STOP, orxSPAWNER_EVENT_NUMBER, orxSPAWNER_EVENT_NONE = orxENUM_NONE } |
Spawner module Allows to spawn orxSPAWNERS Spawners derived from structures
#define orxSPAWNER_KU32_FLAG_AUTO_DELETE 0x00000001 |
Auto delete flag
Definition at line 58 of file orxSpawner.h.
#define orxSPAWNER_KU32_FLAG_AUTO_RESET 0x00000002 |
Auto delete flag
Definition at line 59 of file orxSpawner.h.
#define orxSPAWNER_KU32_FLAG_CLEAN_ON_DELETE 0x00000200 |
Clean on delete flag
Definition at line 70 of file orxSpawner.h.
#define orxSPAWNER_KU32_FLAG_INTERPOLATE 0x00000400 |
Interpolate flag
Definition at line 71 of file orxSpawner.h.
#define orxSPAWNER_KU32_FLAG_NONE 0x00000000 |
Spawner flagsNo flags
Definition at line 56 of file orxSpawner.h.
#define orxSPAWNER_KU32_FLAG_USE_ALPHA 0x00000004 |
Use alpha flag
Definition at line 60 of file orxSpawner.h.
#define orxSPAWNER_KU32_FLAG_USE_COLOR 0x00000008 |
Use color flag
Definition at line 61 of file orxSpawner.h.
#define orxSPAWNER_KU32_FLAG_USE_RELATIVE_SPEED_OBJECT 0x00000040 |
Use relative speed (object) flag
Definition at line 65 of file orxSpawner.h.
#define orxSPAWNER_KU32_FLAG_USE_RELATIVE_SPEED_SPAWNER 0x00000080 |
Use relative speed (spawner) flag
Definition at line 66 of file orxSpawner.h.
#define orxSPAWNER_KU32_FLAG_USE_ROTATION 0x00000010 |
Use rotation flag
Definition at line 62 of file orxSpawner.h.
#define orxSPAWNER_KU32_FLAG_USE_SCALE 0x00000020 |
Use scale flag
Definition at line 63 of file orxSpawner.h.
#define orxSPAWNER_KU32_FLAG_USE_SELF_AS_PARENT 0x00000100 |
Use self as parent flag
Definition at line 69 of file orxSpawner.h.
#define orxSPAWNER_KU32_MASK_USE_RELATIVE_SPEED 0x000000C0 |
Use relative speed mask
Definition at line 67 of file orxSpawner.h.
#define orxSPAWNER_KU32_MASK_USER_ALL 0x000004FF |
All mask
Definition at line 73 of file orxSpawner.h.
typedef struct __orxSPAWNER_t orxSPAWNER |
Internal spawner structure
Definition at line 96 of file orxSpawner.h.
enum orxSPAWNER_EVENT |
Event enum
Definition at line 78 of file orxSpawner.h.
orxDLLAPI orxSPAWNER* orxFASTCALL orxSpawner_Create | ( | ) |
Creates an empty spawner
orxDLLAPI orxSPAWNER* orxFASTCALL orxSpawner_CreateFromConfig | ( | const orxSTRING | _zConfigID | ) |
Creates a spawner from config
[in] | _zConfigID | Config ID @ return orxSPAWNER / orxNULL |
orxDLLAPI orxSTATUS orxFASTCALL orxSpawner_Delete | ( | orxSPAWNER * | _pstSpawner | ) |
Deletes a spawner
[in] | _pstSpawner | Concerned spawner |
orxDLLAPI void orxFASTCALL orxSpawner_Enable | ( | orxSPAWNER * | _pstSpawner, |
orxBOOL | _bEnable | ||
) |
Enables/disables a spawner
[in] | _pstSpawner | Concerned spawner |
[in] | _bEnable | Enable / disable |
orxDLLAPI orxU32 orxFASTCALL orxSpawner_GetActiveObjectCount | ( | const orxSPAWNER * | _pstSpawner | ) |
Gets spawner active object count
[in] | _pstSpawner | Concerned spawner |
orxDLLAPI orxU32 orxFASTCALL orxSpawner_GetActiveObjectLimit | ( | const orxSPAWNER * | _pstSpawner | ) |
Gets spawner active object limit
[in] | _pstSpawner | Concerned spawner |
orxDLLAPI orxFRAME* orxFASTCALL orxSpawner_GetFrame | ( | const orxSPAWNER * | _pstSpawner | ) |
Gets spawner frame
[in] | _pstSpawner | Concerned spawner |
orxDLLAPI const orxSTRING orxFASTCALL orxSpawner_GetName | ( | const orxSPAWNER * | _pstSpawner | ) |
Gets spawner name
[in] | _pstSpawner | Concerned spawner |
orxDLLAPI orxFLOAT orxFASTCALL orxSpawner_GetNextWaveDelay | ( | const orxSPAWNER * | _pstSpawner | ) |
Gets spawner next wave delay
[in] | _pstSpawner | Concerned spawner |
orxDLLAPI orxVECTOR* orxFASTCALL orxSpawner_GetObjectSpeed | ( | const orxSPAWNER * | _pstSpawner, |
orxVECTOR * | _pvObjectSpeed | ||
) |
Gets spawner object speed
[in] | _pstSpawner | Concerned spawner |
[in] | _pvObjectSpeed | Speed applied to every spawned object |
orxDLLAPI orxSTRUCTURE* orxFASTCALL orxSpawner_GetParent | ( | const orxSPAWNER * | _pstSpawner | ) |
Gets spawner parent
[in] | _pstSpawner | Concerned spawner |
orxDLLAPI orxVECTOR* orxFASTCALL orxSpawner_GetPosition | ( | const orxSPAWNER * | _pstSpawner, |
orxVECTOR * | _pvPosition | ||
) |
Get spawner position
[in] | _pstSpawner | Concerned spawner |
[out] | _pvPosition | Spawner position |
orxDLLAPI orxFLOAT orxFASTCALL orxSpawner_GetRotation | ( | const orxSPAWNER * | _pstSpawner | ) |
Get spawner rotation
[in] | _pstSpawner | Concerned spawner |
orxDLLAPI orxVECTOR* orxFASTCALL orxSpawner_GetScale | ( | const orxSPAWNER * | _pstSpawner, |
orxVECTOR * | _pvScale | ||
) |
Get spawner scale
[in] | _pstSpawner | Concerned spawner |
[out] | _pvScale | Spawner scale vector |
orxDLLAPI orxU32 orxFASTCALL orxSpawner_GetTotalObjectCount | ( | const orxSPAWNER * | _pstSpawner | ) |
Gets spawner total object count
[in] | _pstSpawner | Concerned spawner |
orxDLLAPI orxU32 orxFASTCALL orxSpawner_GetTotalObjectLimit | ( | const orxSPAWNER * | _pstSpawner | ) |
Gets spawner total object limit
[in] | _pstSpawner | Concerned spawner |
orxDLLAPI orxFLOAT orxFASTCALL orxSpawner_GetWaveDelay | ( | const orxSPAWNER * | _pstSpawner | ) |
Gets spawner wave delay
[in] | _pstSpawner | Concerned spawner |
orxDLLAPI orxU32 orxFASTCALL orxSpawner_GetWaveSize | ( | const orxSPAWNER * | _pstSpawner | ) |
Gets spawner wave size
[in] | _pstSpawner | Concerned spawner |
orxDLLAPI orxVECTOR* orxFASTCALL orxSpawner_GetWorldPosition | ( | const orxSPAWNER * | _pstSpawner, |
orxVECTOR * | _pvPosition | ||
) |
Get spawner world position
[in] | _pstSpawner | Concerned spawner |
[out] | _pvPosition | Spawner world position |
orxDLLAPI orxFLOAT orxFASTCALL orxSpawner_GetWorldRotation | ( | const orxSPAWNER * | _pstSpawner | ) |
Get spawner world rotation
[in] | _pstSpawner | Concerned spawner |
orxDLLAPI orxVECTOR* orxFASTCALL orxSpawner_GetWorldScale | ( | const orxSPAWNER * | _pstSpawner, |
orxVECTOR * | _pvScale | ||
) |
Gets spawner world scale
[in] | _pstSpawner | Concerned spawner |
[out] | _pvScale | Spawner world scale |
Inits the spawner module
orxDLLAPI orxBOOL orxFASTCALL orxSpawner_IsEnabled | ( | const orxSPAWNER * | _pstSpawner | ) |
Is spawner enabled?
[in] | _pstSpawner | Concerned spawner |
orxDLLAPI void orxFASTCALL orxSpawner_Reset | ( | orxSPAWNER * | _pstSpawner | ) |
Resets (and disables) a spawner
[in] | _pstSpawner | Concerned spawner |
orxDLLAPI orxSTATUS orxFASTCALL orxSpawner_SetActiveObjectLimit | ( | orxSPAWNER * | _pstSpawner, |
orxU32 | _u32ActiveObjectLimit | ||
) |
Sets spawner active object limit
[in] | _pstSpawner | Concerned spawner |
[in] | _u32ActiveObjectLimit | Active object limit, 0 for unlimited |
orxDLLAPI orxSTATUS orxFASTCALL orxSpawner_SetNextWaveDelay | ( | orxSPAWNER * | _pstSpawner, |
orxFLOAT | _fWaveDelay | ||
) |
Sets spawner next wave delay (without affecting the normal wave delay)
[in] | _pstSpawner | Concerned spawner |
[in] | _fWaveDelay | Delay before next wave / -1 for the current full wave delay |
orxDLLAPI orxSTATUS orxFASTCALL orxSpawner_SetObjectSpeed | ( | orxSPAWNER * | _pstSpawner, |
const orxVECTOR * | _pvObjectSpeed | ||
) |
Sets spawner object speed
[in] | _pstSpawner | Concerned spawner |
[in] | _pvObjectSpeed | Speed to apply to every spawned object / orxNULL to not apply any speed |
orxDLLAPI orxSTATUS orxFASTCALL orxSpawner_SetParent | ( | orxSPAWNER * | _pstSpawner, |
void * | _pParent | ||
) |
Sets spawner parent
[in] | _pstSpawner | Concerned spawner |
[in] | _pParent | Parent structure to set (object, spawner, camera or frame) / orxNULL |
orxDLLAPI orxSTATUS orxFASTCALL orxSpawner_SetPosition | ( | orxSPAWNER * | _pstSpawner, |
const orxVECTOR * | _pvPosition | ||
) |
Sets spawner position
[in] | _pstSpawner | Concerned spawner |
[in] | _pvPosition | Spawner position |
orxDLLAPI orxSTATUS orxFASTCALL orxSpawner_SetRotation | ( | orxSPAWNER * | _pstSpawner, |
orxFLOAT | _fRotation | ||
) |
Sets spawner rotation
[in] | _pstSpawner | Concerned spawner |
[in] | _fRotation | Spawner rotation (radians) |
orxDLLAPI orxSTATUS orxFASTCALL orxSpawner_SetScale | ( | orxSPAWNER * | _pstSpawner, |
const orxVECTOR * | _pvScale | ||
) |
Sets spawner scale
[in] | _pstSpawner | Concerned spawner |
[in] | _pvScale | Spawner scale vector |
orxDLLAPI orxSTATUS orxFASTCALL orxSpawner_SetTotalObjectLimit | ( | orxSPAWNER * | _pstSpawner, |
orxU32 | _u32TotalObjectLimit | ||
) |
Sets spawner total object limit
[in] | _pstSpawner | Concerned spawner |
[in] | _u32TotalObjectLimit | Total object limit, 0 for unlimited |
orxDLLAPI orxSTATUS orxFASTCALL orxSpawner_SetWaveDelay | ( | orxSPAWNER * | _pstSpawner, |
orxFLOAT | _fWaveDelay | ||
) |
Sets spawner wave delay
[in] | _pstSpawner | Concerned spawner |
[in] | _fWaveDelay | Delay between two waves / -1 for deactivating wave mode |
orxDLLAPI orxSTATUS orxFASTCALL orxSpawner_SetWaveSize | ( | orxSPAWNER * | _pstSpawner, |
orxU32 | _u32WaveSize | ||
) |
Sets spawner wave size
[in] | _pstSpawner | Concerned spawner |
[in] | _u32WaveSize | Number of objects to spawn in a wave / 0 for deactivating wave mode |
orxDLLAPI orxU32 orxFASTCALL orxSpawner_Spawn | ( | orxSPAWNER * | _pstSpawner, |
orxU32 | _u32Number | ||
) |
Spawns items
[in] | _pstSpawner | Concerned spawner |
[in] | _u32Number | Number of items to spawn, if orxU32_UNDEFINED, the spawner's wave size will be used instead |