orx 1.16
Portable Game Engine
|
Macros | |
#define | orxSPAWNER_KU32_FLAG_AUTO_DELETE 0x00000001 |
#define | orxSPAWNER_KU32_FLAG_AUTO_RESET_COUNT 0x00000002 |
#define | orxSPAWNER_KU32_FLAG_AUTO_RESET_DELAY 0x00000004 |
#define | orxSPAWNER_KU32_FLAG_CLEAN_ON_DELETE 0x00000008 |
#define | orxSPAWNER_KU32_FLAG_INTERPOLATE 0x00000800 |
#define | orxSPAWNER_KU32_FLAG_NONE 0x00000000 |
#define | orxSPAWNER_KU32_FLAG_USE_ALPHA 0x00000010 |
#define | orxSPAWNER_KU32_FLAG_USE_COLOR 0x00000020 |
#define | orxSPAWNER_KU32_FLAG_USE_RELATIVE_SPEED_OBJECT 0x00000100 |
#define | orxSPAWNER_KU32_FLAG_USE_RELATIVE_SPEED_SPAWNER 0x00000200 |
#define | orxSPAWNER_KU32_FLAG_USE_ROTATION 0x00000040 |
#define | orxSPAWNER_KU32_FLAG_USE_SCALE 0x00000080 |
#define | orxSPAWNER_KU32_FLAG_USE_SELF_AS_PARENT 0x00000400 |
#define | orxSPAWNER_KU32_MASK_AUTO_RESET 0x00000006 |
#define | orxSPAWNER_KU32_MASK_USE_RELATIVE_SPEED 0x00000300 |
#define | orxSPAWNER_KU32_MASK_USER_ALL 0x00000FFF |
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_COUNT 0x00000002 |
Auto reset count flag
Definition at line 59 of file orxSpawner.h.
#define orxSPAWNER_KU32_FLAG_AUTO_RESET_DELAY 0x00000004 |
Auto reset delay flag
Definition at line 60 of file orxSpawner.h.
#define orxSPAWNER_KU32_FLAG_CLEAN_ON_DELETE 0x00000008 |
Clean on delete flag
Definition at line 63 of file orxSpawner.h.
#define orxSPAWNER_KU32_FLAG_INTERPOLATE 0x00000800 |
Interpolate flag
Definition at line 75 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 0x00000010 |
Use alpha flag
Definition at line 65 of file orxSpawner.h.
#define orxSPAWNER_KU32_FLAG_USE_COLOR 0x00000020 |
Use color flag
Definition at line 66 of file orxSpawner.h.
#define orxSPAWNER_KU32_FLAG_USE_RELATIVE_SPEED_OBJECT 0x00000100 |
Use relative speed (object) flag
Definition at line 70 of file orxSpawner.h.
#define orxSPAWNER_KU32_FLAG_USE_RELATIVE_SPEED_SPAWNER 0x00000200 |
Use relative speed (spawner) flag
Definition at line 71 of file orxSpawner.h.
#define orxSPAWNER_KU32_FLAG_USE_ROTATION 0x00000040 |
Use rotation flag
Definition at line 67 of file orxSpawner.h.
#define orxSPAWNER_KU32_FLAG_USE_SCALE 0x00000080 |
Use scale flag
Definition at line 68 of file orxSpawner.h.
#define orxSPAWNER_KU32_FLAG_USE_SELF_AS_PARENT 0x00000400 |
Use self as parent flag
Definition at line 74 of file orxSpawner.h.
#define orxSPAWNER_KU32_MASK_AUTO_RESET 0x00000006 |
Auto reset mask
Definition at line 61 of file orxSpawner.h.
#define orxSPAWNER_KU32_MASK_USE_RELATIVE_SPEED 0x00000300 |
Use relative speed mask
Definition at line 72 of file orxSpawner.h.
#define orxSPAWNER_KU32_MASK_USER_ALL 0x00000FFF |
All mask
Definition at line 77 of file orxSpawner.h.
typedef struct __orxSPAWNER_t orxSPAWNER |
Internal spawner structure
Definition at line 100 of file orxSpawner.h.
enum orxSPAWNER_EVENT |
Event enum
Definition at line 82 of file orxSpawner.h.
|
extern |
Creates an empty spawner
|
extern |
Creates a spawner from config
[in] | _zConfigID | Config ID @ return orxSPAWNER / orxNULL |
|
extern |
Deletes a spawner
[in] | _pstSpawner | Concerned spawner |
|
extern |
Enables/disables a spawner
[in] | _pstSpawner | Concerned spawner |
[in] | _bEnable | Enable / disable |
|
extern |
Exits from the spawner module
|
extern |
Gets spawner active object count
[in] | _pstSpawner | Concerned spawner |
|
extern |
Gets spawner active object limit
[in] | _pstSpawner | Concerned spawner |
|
extern |
Gets spawner frame
[in] | _pstSpawner | Concerned spawner |
|
extern |
Gets spawner name
[in] | _pstSpawner | Concerned spawner |
|
extern |
Gets spawner next wave delay
[in] | _pstSpawner | Concerned spawner |
|
extern |
Gets spawner object speed
[in] | _pstSpawner | Concerned spawner |
[in] | _pvObjectSpeed | Speed applied to every spawned object |
|
extern |
Gets spawner parent
[in] | _pstSpawner | Concerned spawner |
|
extern |
Get spawner position
[in] | _pstSpawner | Concerned spawner |
[out] | _pvPosition | Spawner position |
|
extern |
Get spawner rotation
[in] | _pstSpawner | Concerned spawner |
|
extern |
Get spawner scale
[in] | _pstSpawner | Concerned spawner |
[out] | _pvScale | Spawner scale vector |
|
extern |
Gets spawner total object count
[in] | _pstSpawner | Concerned spawner |
|
extern |
Gets spawner total object limit
[in] | _pstSpawner | Concerned spawner |
|
extern |
Gets spawner wave delay
[in] | _pstSpawner | Concerned spawner |
|
extern |
Gets spawner wave size
[in] | _pstSpawner | Concerned spawner |
|
extern |
Get spawner world position
[in] | _pstSpawner | Concerned spawner |
[out] | _pvPosition | Spawner world position |
|
extern |
Get spawner world rotation
[in] | _pstSpawner | Concerned spawner |
|
extern |
Gets spawner world scale
[in] | _pstSpawner | Concerned spawner |
[out] | _pvScale | Spawner world scale |
Inits the spawner module
|
extern |
Is spawner enabled?
[in] | _pstSpawner | Concerned spawner |
|
extern |
Resets (and disables) a spawner
[in] | _pstSpawner | Concerned spawner |
[in] | _bResetCount | Reset counts (total & object), along spawned objects ownership |
[in] | _bResetTimer | Reset spawn timer |
|
extern |
Sets spawner active object limit
[in] | _pstSpawner | Concerned spawner |
[in] | _u32ActiveObjectLimit | Active object limit, 0 for unlimited |
|
extern |
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 |
|
extern |
Sets spawner object speed
[in] | _pstSpawner | Concerned spawner |
[in] | _pvObjectSpeed | Speed to apply to every spawned object / orxNULL to not apply any speed |
|
extern |
Sets spawner parent
[in] | _pstSpawner | Concerned spawner |
[in] | _pParent | Parent structure to set (object, spawner, camera or frame) / orxNULL |
|
extern |
Sets spawner position
[in] | _pstSpawner | Concerned spawner |
[in] | _pvPosition | Spawner position |
|
extern |
Sets spawner rotation
[in] | _pstSpawner | Concerned spawner |
[in] | _fRotation | Spawner rotation (radians) |
|
extern |
Sets spawner scale
[in] | _pstSpawner | Concerned spawner |
[in] | _pvScale | Spawner scale vector |
|
extern |
Sets spawner total object limit
[in] | _pstSpawner | Concerned spawner |
[in] | _u32TotalObjectLimit | Total object limit, 0 for unlimited |
|
extern |
Spawner module setup
|
extern |
Sets spawner wave delay
[in] | _pstSpawner | Concerned spawner |
[in] | _fWaveDelay | Delay between two waves / -1 for deactivating wave mode |
|
extern |
Sets spawner wave size
[in] | _pstSpawner | Concerned spawner |
[in] | _u32WaveSize | Number of objects to spawn in a wave / 0 for deactivating wave mode |
|
extern |
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 |