Defines | |
| #define | orxSPAWNER_KU32_FLAG_AUTO_DELETE 0x00000001 |
| #define | orxSPAWNER_KU32_FLAG_AUTO_RESET 0x00000002 |
| #define | orxSPAWNER_KU32_FLAG_CLEAN_ON_DELETE 0x00000100 |
| #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 0x00000040 |
| #define | orxSPAWNER_KU32_FLAG_USE_ROTATION 0x00000010 |
| #define | orxSPAWNER_KU32_FLAG_USE_SCALE 0x00000020 |
| #define | orxSPAWNER_KU32_FLAG_USE_SELF_AS_PARENT 0x00000080 |
| #define | orxSPAWNER_KU32_MASK_USER_ALL 0x000000FF |
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 } |
Functions | |
| orxDLLAPI orxSPAWNER *orxFASTCALL | orxSpawner_Create () |
| orxDLLAPI orxSPAWNER *orxFASTCALL | orxSpawner_CreateFromConfig (const orxSTRING _zConfigID) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxSpawner_Delete (orxSPAWNER *_pstSpawner) |
| orxDLLAPI void orxFASTCALL | orxSpawner_Enable (orxSPAWNER *_pstSpawner, orxBOOL _bEnable) |
| orxDLLAPI void orxFASTCALL | orxSpawner_Exit () |
| orxDLLAPI orxU32 orxFASTCALL | orxSpawner_GetActiveObjectCounter (const orxSPAWNER *_pstSpawner) |
| orxDLLAPI orxU32 orxFASTCALL | orxSpawner_GetActiveObjectLimit (const orxSPAWNER *_pstSpawner) |
| orxDLLAPI orxFRAME *orxFASTCALL | orxSpawner_GetFrame (const orxSPAWNER *_pstSpawner) |
| orxDLLAPI const orxSTRING orxFASTCALL | orxSpawner_GetName (const orxSPAWNER *_pstSpawner) |
| orxDLLAPI orxFLOAT orxFASTCALL | orxSpawner_GetNextWaveDelay (const orxSPAWNER *_pstSpawner) |
| orxDLLAPI orxVECTOR *orxFASTCALL | orxSpawner_GetObjectSpeed (const orxSPAWNER *_pstSpawner, orxVECTOR *_pvObjectSpeed) |
| orxDLLAPI orxSTRUCTURE *orxFASTCALL | orxSpawner_GetOwner (const orxSPAWNER *_pstSpawner) |
| orxDLLAPI orxVECTOR *orxFASTCALL | orxSpawner_GetPosition (const orxSPAWNER *_pstSpawner, orxVECTOR *_pvPosition) |
| orxDLLAPI orxFLOAT orxFASTCALL | orxSpawner_GetRotation (const orxSPAWNER *_pstSpawner) |
| orxDLLAPI orxVECTOR *orxFASTCALL | orxSpawner_GetScale (const orxSPAWNER *_pstSpawner, orxVECTOR *_pvScale) |
| orxDLLAPI orxU32 orxFASTCALL | orxSpawner_GetTotalObjectCounter (const orxSPAWNER *_pstSpawner) |
| orxDLLAPI orxU32 orxFASTCALL | orxSpawner_GetTotalObjectLimit (const orxSPAWNER *_pstSpawner) |
| orxDLLAPI orxFLOAT orxFASTCALL | orxSpawner_GetWaveDelay (const orxSPAWNER *_pstSpawner) |
| orxDLLAPI orxU32 orxFASTCALL | orxSpawner_GetWaveSize (const orxSPAWNER *_pstSpawner) |
| orxDLLAPI orxVECTOR *orxFASTCALL | orxSpawner_GetWorldPosition (const orxSPAWNER *_pstSpawner, orxVECTOR *_pvPosition) |
| orxDLLAPI orxFLOAT orxFASTCALL | orxSpawner_GetWorldRotation (const orxSPAWNER *_pstSpawner) |
| orxDLLAPI orxVECTOR *orxFASTCALL | orxSpawner_GetWorldScale (const orxSPAWNER *_pstSpawner, orxVECTOR *_pvScale) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxSpawner_Init () |
| orxDLLAPI orxBOOL orxFASTCALL | orxSpawner_IsEnabled (const orxSPAWNER *_pstSpawner) |
| orxDLLAPI void orxFASTCALL | orxSpawner_Reset (orxSPAWNER *_pstSpawner) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxSpawner_SetActiveObjectLimit (orxSPAWNER *_pstSpawner, orxU32 _u32ActiveObjectLimit) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxSpawner_SetObjectSpeed (orxSPAWNER *_pstSpawner, const orxVECTOR *_pvObjectSpeed) |
| orxDLLAPI void orxFASTCALL | orxSpawner_SetOwner (orxSPAWNER *_pstSpawner, void *_pOwner) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxSpawner_SetParent (orxSPAWNER *_pstSpawner, void *_pParent) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxSpawner_SetPosition (orxSPAWNER *_pstSpawner, const orxVECTOR *_pvPosition) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxSpawner_SetRotation (orxSPAWNER *_pstSpawner, orxFLOAT _fRotation) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxSpawner_SetScale (orxSPAWNER *_pstSpawner, const orxVECTOR *_pvScale) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxSpawner_SetTotalObjectLimit (orxSPAWNER *_pstSpawner, orxU32 _u32TotalObjectLimit) |
| orxDLLAPI void orxFASTCALL | orxSpawner_Setup () |
| orxDLLAPI orxSTATUS orxFASTCALL | orxSpawner_SetWaveDelay (orxSPAWNER *_pstSpawner, orxFLOAT _fWaveDelay) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxSpawner_SetWaveSize (orxSPAWNER *_pstSpawner, orxU32 _u32WaveSize) |
| orxDLLAPI orxU32 orxFASTCALL | orxSpawner_Spawn (orxSPAWNER *_pstSpawner, orxU32 _u32Number) |
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 0x00000100 |
Clean on delete flag
Definition at line 66 of file orxSpawner.h.
| #define orxSPAWNER_KU32_FLAG_NONE 0x00000000 |
Spawner flags No 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 0x00000040 |
Use relative speed flag
Definition at line 64 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 0x00000080 |
Use self as parent flag
Definition at line 65 of file orxSpawner.h.
| #define orxSPAWNER_KU32_MASK_USER_ALL 0x000000FF |
All mask
Definition at line 68 of file orxSpawner.h.
| typedef struct __orxSPAWNER_t orxSPAWNER |
Internal spawner structure
Definition at line 91 of file orxSpawner.h.
| enum orxSPAWNER_EVENT |
Event enum
Definition at line 73 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 void orxFASTCALL orxSpawner_Exit | ( | ) |
Exits from the spawner module
| orxDLLAPI orxU32 orxFASTCALL orxSpawner_GetActiveObjectCounter | ( | const orxSPAWNER * | _pstSpawner ) |
Gets spawner active object counter
| [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_GetOwner | ( | const orxSPAWNER * | _pstSpawner ) |
Gets spawner's owner
| [in] | _pstSpawner | Concerned object |
| 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_GetTotalObjectCounter | ( | const orxSPAWNER * | _pstSpawner ) |
Gets spawner total object counter
| [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 |
| orxDLLAPI orxSTATUS orxFASTCALL orxSpawner_Init | ( | ) |
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_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 void orxFASTCALL orxSpawner_SetOwner | ( | orxSPAWNER * | _pstSpawner, |
| void * | _pOwner | ||
| ) |
Sets owner for a spawner
| [in] | _pstSpawner | Concerned spawner |
| [in] | _pOwner | Owner to set / orxNULL |
| orxDLLAPI orxSTATUS orxFASTCALL orxSpawner_SetParent | ( | orxSPAWNER * | _pstSpawner, |
| void * | _pParent | ||
| ) |
Sets an spawner parent
| [in] | _pstSpawner | Concerned spawner |
| [in] | _pParent | Parent structure to set (spawner, 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 void orxFASTCALL orxSpawner_Setup | ( | ) |
Spawner module setup
| 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 |
1.5.6