Method | Defined By | ||
---|---|---|---|
BeatSpawner | |||
_Dispose():void [override]
Removes the elapsed trigger
| BeatSpawner | ||
_Update():void [override]
Spawns an entity each time there is a beat
| BeatSpawner | ||
Construct():void
Called before the entity is spawned to setup the constants of the entity. | Entity | ||
DeInit():void
Called when the entity is deleted. | Entity | ||
EnableUpdate(bUpdate:Boolean = true):void
Sets if the entity will update each engine tick. | Entity | ||
GetClass():Object
Returns the class of the entity. | Entity | ||
GetOwner():Object
Returns the current owner of the entity. | Entity | ||
GetType():String
Returns the current string type of the entity. | Entity | ||
Init():void
Called when the entity is first registered/spawned. | Entity | ||
Is(cClass:Class):Boolean
Returns if the entity matches a class. | Entity | ||
IsDead():Boolean
Returns if the entity is dead. | Entity | ||
IsHealthZero():Boolean
Returns if the health is zero. | Entity | ||
IsProtected():Boolean
Returns if the entity is protected. | Entity | ||
IsT(sCheckType:String):Boolean
Returns if the entity is matches a type (lowercase only). | Entity | ||
IsUpdating():Boolean
Returns if the entity is updating. | Entity | ||
Remove():void
Marks the entity for removal. | Entity | ||
RemoveAllHealth():void
Removes all health of the entity. | Entity | ||
Reset():void
Resets the entity to its original values. | Entity | ||
ResetHealth():void
Resets the entity's health to the default health. | Entity | ||
SetDefaultHealth(setHealth:int = 100):void
Sets the default health of this entity. | Entity | ||
SetHealth(newHealth:int):void
Sets the health value of this entity. | Entity | ||
SetOwner(newOwner:Object):void
Sets the owner of the entity. | Entity | ||
SetProtected(bProtected:Boolean = true):void
Protects an entity from being removed by clean up
calls, such as CleanSlate. | Entity | ||
SetSpawnParams(iSetDelay:int, cSetClass:Class, cSetDisplayClass:Class, bSetBitmap:Boolean, nSetMinX:Number, nSetMaxX:Number, nSetMinY:Number, nSetMaxY:Number):void
Set spawn parameters
| BeatSpawner | ||
SetType(sSetType:String):void
Sets the string type of the entity. | Entity | ||
Spawn(sSetLayer:String):void
Sets the layer to spawn entities into
| BeatSpawner | ||
TakeDamage(iDamageAmount:int):void
Subtracts the current health. | Entity | ||
Update():void
Called each engine tick. | Entity |
BeatSpawner | () | Constructor |
public function BeatSpawner()
_Dispose | () | method |
override public function _Dispose():void
Removes the elapsed trigger
_Update | () | method |
override public function _Update():void
Spawns an entity each time there is a beat
SetSpawnParams | () | method |
public function SetSpawnParams(iSetDelay:int, cSetClass:Class, cSetDisplayClass:Class, bSetBitmap:Boolean, nSetMinX:Number, nSetMaxX:Number, nSetMinY:Number, nSetMaxY:Number):void
Set spawn parameters
Parameters
iSetDelay:int — The delay between spawns
| |
cSetClass:Class — The class of entity to spawn
| |
cSetDisplayClass:Class — The display object class to use for art
| |
bSetBitmap:Boolean — Should we bitmap the display object?
| |
nSetMinX:Number — The minimum X spawn position
| |
nSetMaxX:Number — The maximum X spawn position
| |
nSetMinY:Number — The minimum Y spawn position
| |
nSetMaxY:Number — The maximum Y spawn position
|
Spawn | () | method |
public function Spawn(sSetLayer:String):void
Sets the layer to spawn entities into
Parameters
sSetLayer:String |