iPcSpawn Struct Reference
Spawn property class. More...
#include <propclass/spawn.h>
Public Member Functions | |
virtual void | SetEnabled (bool e)=0 |
Enable/disable spawning. | |
virtual bool | IsEnabled () const =0 |
Is spawning enabled. | |
virtual void | AddEntityType (float chance, const char *name, iCelBlLayer *bl, const char *behaviour, const char *msg_id, iCelParameterBlock *params,...)=0 |
Add an entry to the list of entities that can be created by this property class. | |
virtual void | ClearEntityList ()=0 |
Clear the list of entities to create. | |
virtual void | SetTiming (bool repeat, bool random, csTicks mindelay, csTicks maxdelay)=0 |
Set timing information. | |
virtual void | Reset ()=0 |
Reset timing. |
Detailed Description
Spawn property class.This property class is responsible for creating other entities based on time related rules.
This property class can send out the following messages to the behaviour (add prefix 'cel.parameter.' to get the ID for parameters):
- pcspawn_newentity: new entity has been created (entity,behaviour)
Definition at line 38 of file spawn.h.
Member Function Documentation
|
Add an entry to the list of entities that can be created by this property class.
|
|
Clear the list of entities to create.
|
|
Is spawning enabled.
|
|
Reset timing. In case of a non repeating spawner this will enable the spawn again so that it will do a new spawn in the specified time. In case of a repeating spawner it will simply reset the time to zero. In case of non random selection this function will also set the sequence of entities back to the first one. |
|
Enable/disable spawning. Enabled by default although the spawner will only start working after the first SetTiming() call. |
|
Set timing information.
|
The documentation for this struct was generated from the following file:
- propclass/spawn.h
Generated for CEL: Crystal Entity Layer by doxygen 1.4.4