orx 1.16
Portable Game Engine
Loading...
Searching...
No Matches
OrxSpawner

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
}

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_GetActiveObjectCount (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_GetParent (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_GetTotalObjectCount (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, orxBOOL _bResetCount, orxBOOL _bResetTimer)
orxDLLAPI orxSTATUS orxFASTCALL orxSpawner_SetActiveObjectLimit (orxSPAWNER *_pstSpawner, orxU32 _u32ActiveObjectLimit)
orxDLLAPI orxSTATUS orxFASTCALL orxSpawner_SetNextWaveDelay (orxSPAWNER *_pstSpawner, orxFLOAT _fWaveDelay)
orxDLLAPI orxSTATUS orxFASTCALL orxSpawner_SetObjectSpeed (orxSPAWNER *_pstSpawner, const orxVECTOR *_pvObjectSpeed)
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)

Detailed Description

Spawner module Allows to spawn orxSPAWNERS Spawners derived from structures

Macro Definition Documentation

◆ orxSPAWNER_KU32_FLAG_AUTO_DELETE

#define orxSPAWNER_KU32_FLAG_AUTO_DELETE   0x00000001

Auto delete flag

Definition at line 58 of file orxSpawner.h.

◆ orxSPAWNER_KU32_FLAG_AUTO_RESET_COUNT

#define orxSPAWNER_KU32_FLAG_AUTO_RESET_COUNT   0x00000002

Auto reset count flag

Definition at line 59 of file orxSpawner.h.

◆ orxSPAWNER_KU32_FLAG_AUTO_RESET_DELAY

#define orxSPAWNER_KU32_FLAG_AUTO_RESET_DELAY   0x00000004

Auto reset delay flag

Definition at line 60 of file orxSpawner.h.

◆ orxSPAWNER_KU32_FLAG_CLEAN_ON_DELETE

#define orxSPAWNER_KU32_FLAG_CLEAN_ON_DELETE   0x00000008

Clean on delete flag

Definition at line 63 of file orxSpawner.h.

◆ orxSPAWNER_KU32_FLAG_INTERPOLATE

#define orxSPAWNER_KU32_FLAG_INTERPOLATE   0x00000800

Interpolate flag

Definition at line 75 of file orxSpawner.h.

◆ orxSPAWNER_KU32_FLAG_NONE

#define orxSPAWNER_KU32_FLAG_NONE   0x00000000

Spawner flags No flags

Definition at line 56 of file orxSpawner.h.

◆ orxSPAWNER_KU32_FLAG_USE_ALPHA

#define orxSPAWNER_KU32_FLAG_USE_ALPHA   0x00000010

Use alpha flag

Definition at line 65 of file orxSpawner.h.

◆ orxSPAWNER_KU32_FLAG_USE_COLOR

#define orxSPAWNER_KU32_FLAG_USE_COLOR   0x00000020

Use color flag

Definition at line 66 of file orxSpawner.h.

◆ orxSPAWNER_KU32_FLAG_USE_RELATIVE_SPEED_OBJECT

#define orxSPAWNER_KU32_FLAG_USE_RELATIVE_SPEED_OBJECT   0x00000100

Use relative speed (object) flag

Definition at line 70 of file orxSpawner.h.

◆ orxSPAWNER_KU32_FLAG_USE_RELATIVE_SPEED_SPAWNER

#define orxSPAWNER_KU32_FLAG_USE_RELATIVE_SPEED_SPAWNER   0x00000200

Use relative speed (spawner) flag

Definition at line 71 of file orxSpawner.h.

◆ orxSPAWNER_KU32_FLAG_USE_ROTATION

#define orxSPAWNER_KU32_FLAG_USE_ROTATION   0x00000040

Use rotation flag

Definition at line 67 of file orxSpawner.h.

◆ orxSPAWNER_KU32_FLAG_USE_SCALE

#define orxSPAWNER_KU32_FLAG_USE_SCALE   0x00000080

Use scale flag

Definition at line 68 of file orxSpawner.h.

◆ orxSPAWNER_KU32_FLAG_USE_SELF_AS_PARENT

#define orxSPAWNER_KU32_FLAG_USE_SELF_AS_PARENT   0x00000400

Use self as parent flag

Definition at line 74 of file orxSpawner.h.

◆ orxSPAWNER_KU32_MASK_AUTO_RESET

#define orxSPAWNER_KU32_MASK_AUTO_RESET   0x00000006

Auto reset mask

Definition at line 61 of file orxSpawner.h.

◆ orxSPAWNER_KU32_MASK_USE_RELATIVE_SPEED

#define orxSPAWNER_KU32_MASK_USE_RELATIVE_SPEED   0x00000300

Use relative speed mask

Definition at line 72 of file orxSpawner.h.

◆ orxSPAWNER_KU32_MASK_USER_ALL

#define orxSPAWNER_KU32_MASK_USER_ALL   0x00000FFF

All mask

Definition at line 77 of file orxSpawner.h.

Typedef Documentation

◆ orxSPAWNER

typedef struct __orxSPAWNER_t orxSPAWNER

Internal spawner structure

Definition at line 100 of file orxSpawner.h.

Enumeration Type Documentation

◆ orxSPAWNER_EVENT

Event enum

Enumerator
orxSPAWNER_EVENT_SPAWN 
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 

Definition at line 82 of file orxSpawner.h.

Function Documentation

◆ orxSpawner_Create()

orxDLLAPI orxSPAWNER *orxFASTCALL orxSpawner_Create ( )
extern

Creates an empty spawner

Returns
orxSPAWNER / orxNULL

◆ orxSpawner_CreateFromConfig()

orxDLLAPI orxSPAWNER *orxFASTCALL orxSpawner_CreateFromConfig ( const orxSTRING _zConfigID)
extern

Creates a spawner from config

Parameters
[in]_zConfigIDConfig ID @ return orxSPAWNER / orxNULL

◆ orxSpawner_Delete()

orxDLLAPI orxSTATUS orxFASTCALL orxSpawner_Delete ( orxSPAWNER * _pstSpawner)
extern

Deletes a spawner

Parameters
[in]_pstSpawnerConcerned spawner
Returns
orxSTATUS_SUCCESS / orxSTATUS_FAILURE

◆ orxSpawner_Enable()

orxDLLAPI void orxFASTCALL orxSpawner_Enable ( orxSPAWNER * _pstSpawner,
orxBOOL _bEnable )
extern

Enables/disables a spawner

Parameters
[in]_pstSpawnerConcerned spawner
[in]_bEnableEnable / disable

◆ orxSpawner_Exit()

orxDLLAPI void orxFASTCALL orxSpawner_Exit ( )
extern

Exits from the spawner module

◆ orxSpawner_GetActiveObjectCount()

orxDLLAPI orxU32 orxFASTCALL orxSpawner_GetActiveObjectCount ( const orxSPAWNER * _pstSpawner)
extern

Gets spawner active object count

Parameters
[in]_pstSpawnerConcerned spawner
Returns
Active object count

◆ orxSpawner_GetActiveObjectLimit()

orxDLLAPI orxU32 orxFASTCALL orxSpawner_GetActiveObjectLimit ( const orxSPAWNER * _pstSpawner)
extern

Gets spawner active object limit

Parameters
[in]_pstSpawnerConcerned spawner
Returns
Active object limit, 0 for unlimited

◆ orxSpawner_GetFrame()

orxDLLAPI orxFRAME *orxFASTCALL orxSpawner_GetFrame ( const orxSPAWNER * _pstSpawner)
extern

Gets spawner frame

Parameters
[in]_pstSpawnerConcerned spawner
Returns
orxFRAME

◆ orxSpawner_GetName()

orxDLLAPI const orxSTRING orxFASTCALL orxSpawner_GetName ( const orxSPAWNER * _pstSpawner)
extern

Gets spawner name

Parameters
[in]_pstSpawnerConcerned spawner
Returns
orxSTRING / orxSTRING_EMPTY

◆ orxSpawner_GetNextWaveDelay()

orxDLLAPI orxFLOAT orxFASTCALL orxSpawner_GetNextWaveDelay ( const orxSPAWNER * _pstSpawner)
extern

Gets spawner next wave delay

Parameters
[in]_pstSpawnerConcerned spawner
Returns
Delay before next wave is spawned / -1 if not in wave mode

◆ orxSpawner_GetObjectSpeed()

orxDLLAPI orxVECTOR *orxFASTCALL orxSpawner_GetObjectSpeed ( const orxSPAWNER * _pstSpawner,
orxVECTOR * _pvObjectSpeed )
extern

Gets spawner object speed

Parameters
[in]_pstSpawnerConcerned spawner
[in]_pvObjectSpeedSpeed applied to every spawned object
Returns
Speed applied to every spawned object / orxNULL if none is applied

◆ orxSpawner_GetParent()

orxDLLAPI orxSTRUCTURE *orxFASTCALL orxSpawner_GetParent ( const orxSPAWNER * _pstSpawner)
extern

Gets spawner parent

Parameters
[in]_pstSpawnerConcerned spawner
Returns
Parent (object, spawner, camera or frame) / orxNULL

◆ orxSpawner_GetPosition()

orxDLLAPI orxVECTOR *orxFASTCALL orxSpawner_GetPosition ( const orxSPAWNER * _pstSpawner,
orxVECTOR * _pvPosition )
extern

Get spawner position

Parameters
[in]_pstSpawnerConcerned spawner
[out]_pvPositionSpawner position
Returns
orxVECTOR / orxNULL

◆ orxSpawner_GetRotation()

orxDLLAPI orxFLOAT orxFASTCALL orxSpawner_GetRotation ( const orxSPAWNER * _pstSpawner)
extern

Get spawner rotation

Parameters
[in]_pstSpawnerConcerned spawner
Returns
orxFLOAT (radians)

◆ orxSpawner_GetScale()

orxDLLAPI orxVECTOR *orxFASTCALL orxSpawner_GetScale ( const orxSPAWNER * _pstSpawner,
orxVECTOR * _pvScale )
extern

Get spawner scale

Parameters
[in]_pstSpawnerConcerned spawner
[out]_pvScaleSpawner scale vector
Returns
Scale vector

◆ orxSpawner_GetTotalObjectCount()

orxDLLAPI orxU32 orxFASTCALL orxSpawner_GetTotalObjectCount ( const orxSPAWNER * _pstSpawner)
extern

Gets spawner total object count

Parameters
[in]_pstSpawnerConcerned spawner
Returns
Total object count

◆ orxSpawner_GetTotalObjectLimit()

orxDLLAPI orxU32 orxFASTCALL orxSpawner_GetTotalObjectLimit ( const orxSPAWNER * _pstSpawner)
extern

Gets spawner total object limit

Parameters
[in]_pstSpawnerConcerned spawner
Returns
Total object limit, 0 for unlimited

◆ orxSpawner_GetWaveDelay()

orxDLLAPI orxFLOAT orxFASTCALL orxSpawner_GetWaveDelay ( const orxSPAWNER * _pstSpawner)
extern

Gets spawner wave delay

Parameters
[in]_pstSpawnerConcerned spawner
Returns
Delay between two waves / -1 if not in wave mode

◆ orxSpawner_GetWaveSize()

orxDLLAPI orxU32 orxFASTCALL orxSpawner_GetWaveSize ( const orxSPAWNER * _pstSpawner)
extern

Gets spawner wave size

Parameters
[in]_pstSpawnerConcerned spawner
Returns
Number of objects spawned in a wave

◆ orxSpawner_GetWorldPosition()

orxDLLAPI orxVECTOR *orxFASTCALL orxSpawner_GetWorldPosition ( const orxSPAWNER * _pstSpawner,
orxVECTOR * _pvPosition )
extern

Get spawner world position

Parameters
[in]_pstSpawnerConcerned spawner
[out]_pvPositionSpawner world position
Returns
orxVECTOR / orxNULL

◆ orxSpawner_GetWorldRotation()

orxDLLAPI orxFLOAT orxFASTCALL orxSpawner_GetWorldRotation ( const orxSPAWNER * _pstSpawner)
extern

Get spawner world rotation

Parameters
[in]_pstSpawnerConcerned spawner
Returns
orxFLOAT (radians)

◆ orxSpawner_GetWorldScale()

orxDLLAPI orxVECTOR *orxFASTCALL orxSpawner_GetWorldScale ( const orxSPAWNER * _pstSpawner,
orxVECTOR * _pvScale )
extern

Gets spawner world scale

Parameters
[in]_pstSpawnerConcerned spawner
[out]_pvScaleSpawner world scale
Returns
orxSTATUS_SUCCESS / orxSTATUS_FAILURE

◆ orxSpawner_Init()

orxDLLAPI orxSTATUS orxFASTCALL orxSpawner_Init ( )
extern

Inits the spawner module

Returns
orxSTATUS_SUCCESS / orxSTATUS_FAILURE

◆ orxSpawner_IsEnabled()

orxDLLAPI orxBOOL orxFASTCALL orxSpawner_IsEnabled ( const orxSPAWNER * _pstSpawner)
extern

Is spawner enabled?

Parameters
[in]_pstSpawnerConcerned spawner
Returns
orxTRUE if enabled, orxFALSE otherwise

◆ orxSpawner_Reset()

orxDLLAPI void orxFASTCALL orxSpawner_Reset ( orxSPAWNER * _pstSpawner,
orxBOOL _bResetCount,
orxBOOL _bResetTimer )
extern

Resets (and disables) a spawner

Parameters
[in]_pstSpawnerConcerned spawner
[in]_bResetCountReset counts (total & object), along spawned objects ownership
[in]_bResetTimerReset spawn timer

◆ orxSpawner_SetActiveObjectLimit()

orxDLLAPI orxSTATUS orxFASTCALL orxSpawner_SetActiveObjectLimit ( orxSPAWNER * _pstSpawner,
orxU32 _u32ActiveObjectLimit )
extern

Sets spawner active object limit

Parameters
[in]_pstSpawnerConcerned spawner
[in]_u32ActiveObjectLimitActive object limit, 0 for unlimited
Returns
orxSTATUS_SUCCESS / orxSTATUS_FAILURE

◆ orxSpawner_SetNextWaveDelay()

orxDLLAPI orxSTATUS orxFASTCALL orxSpawner_SetNextWaveDelay ( orxSPAWNER * _pstSpawner,
orxFLOAT _fWaveDelay )
extern

Sets spawner next wave delay (without affecting the normal wave delay)

Parameters
[in]_pstSpawnerConcerned spawner
[in]_fWaveDelayDelay before next wave / -1 for the current full wave delay
Returns
orxSTATUS_SUCCESS / orxSTATUS_FAILURE

◆ orxSpawner_SetObjectSpeed()

orxDLLAPI orxSTATUS orxFASTCALL orxSpawner_SetObjectSpeed ( orxSPAWNER * _pstSpawner,
const orxVECTOR * _pvObjectSpeed )
extern

Sets spawner object speed

Parameters
[in]_pstSpawnerConcerned spawner
[in]_pvObjectSpeedSpeed to apply to every spawned object / orxNULL to not apply any speed
Returns
orxSTATUS_SUCCESS / orxSTATUS_FAILURE

◆ orxSpawner_SetParent()

orxDLLAPI orxSTATUS orxFASTCALL orxSpawner_SetParent ( orxSPAWNER * _pstSpawner,
void * _pParent )
extern

Sets spawner parent

Parameters
[in]_pstSpawnerConcerned spawner
[in]_pParentParent structure to set (object, spawner, camera or frame) / orxNULL
Returns
orsSTATUS_SUCCESS / orxSTATUS_FAILURE

◆ orxSpawner_SetPosition()

orxDLLAPI orxSTATUS orxFASTCALL orxSpawner_SetPosition ( orxSPAWNER * _pstSpawner,
const orxVECTOR * _pvPosition )
extern

Sets spawner position

Parameters
[in]_pstSpawnerConcerned spawner
[in]_pvPositionSpawner position
Returns
orxSTATUS_SUCCESS / orxSTATUS_FAILURE

◆ orxSpawner_SetRotation()

orxDLLAPI orxSTATUS orxFASTCALL orxSpawner_SetRotation ( orxSPAWNER * _pstSpawner,
orxFLOAT _fRotation )
extern

Sets spawner rotation

Parameters
[in]_pstSpawnerConcerned spawner
[in]_fRotationSpawner rotation (radians)
Returns
orxSTATUS_SUCCESS / orxSTATUS_FAILURE

◆ orxSpawner_SetScale()

orxDLLAPI orxSTATUS orxFASTCALL orxSpawner_SetScale ( orxSPAWNER * _pstSpawner,
const orxVECTOR * _pvScale )
extern

Sets spawner scale

Parameters
[in]_pstSpawnerConcerned spawner
[in]_pvScaleSpawner scale vector
Returns
orxSTATUS_SUCCESS / orxSTATUS_FAILURE

◆ orxSpawner_SetTotalObjectLimit()

orxDLLAPI orxSTATUS orxFASTCALL orxSpawner_SetTotalObjectLimit ( orxSPAWNER * _pstSpawner,
orxU32 _u32TotalObjectLimit )
extern

Sets spawner total object limit

Parameters
[in]_pstSpawnerConcerned spawner
[in]_u32TotalObjectLimitTotal object limit, 0 for unlimited
Returns
orxSTATUS_SUCCESS / orxSTATUS_FAILURE

◆ orxSpawner_Setup()

orxDLLAPI void orxFASTCALL orxSpawner_Setup ( )
extern

Spawner module setup

◆ orxSpawner_SetWaveDelay()

orxDLLAPI orxSTATUS orxFASTCALL orxSpawner_SetWaveDelay ( orxSPAWNER * _pstSpawner,
orxFLOAT _fWaveDelay )
extern

Sets spawner wave delay

Parameters
[in]_pstSpawnerConcerned spawner
[in]_fWaveDelayDelay between two waves / -1 for deactivating wave mode
Returns
orxSTATUS_SUCCESS / orxSTATUS_FAILURE

◆ orxSpawner_SetWaveSize()

orxDLLAPI orxSTATUS orxFASTCALL orxSpawner_SetWaveSize ( orxSPAWNER * _pstSpawner,
orxU32 _u32WaveSize )
extern

Sets spawner wave size

Parameters
[in]_pstSpawnerConcerned spawner
[in]_u32WaveSizeNumber of objects to spawn in a wave / 0 for deactivating wave mode
Returns
orxSTATUS_SUCCESS / orxSTATUS_FAILURE

◆ orxSpawner_Spawn()

orxDLLAPI orxU32 orxFASTCALL orxSpawner_Spawn ( orxSPAWNER * _pstSpawner,
orxU32 _u32Number )
extern

Spawns items

Parameters
[in]_pstSpawnerConcerned spawner
[in]_u32NumberNumber of items to spawn, if orxU32_UNDEFINED, the spawner's wave size will be used instead
Returns
Number of spawned items

Generated for orx by doxygen 1.8.11