Package | org.flixel |
Class | public class FlxState |
Inheritance | FlxState FlxGroup FlxBasic Object |
Method | Defined By | ||
---|---|---|---|
Adds a new FlxBasic subclass (FlxBasic, FlxSprite, Enemy, etc) to the group. | FlxGroup | ||
callAll(FunctionName:String, Recurse:Boolean = true):void
Go through and call the specified function on all members of the group. | FlxGroup | ||
clear():void
Remove all instances of FlxBasic subclass (FlxSprite, FlxBlock, etc) from the list. | FlxGroup | ||
countDead():int
Call this function to find out how many members of the group are dead. | FlxGroup | ||
countLiving():int
Call this function to find out how many members of the group are not dead. | FlxGroup | ||
create():void
This function is called after the game engine successfully switches states. | FlxState | ||
destroy():void [override]
Override this function to handle any deleting or "shutdown" type operations you might need,
such as removing traditional Flash children like Sprite objects. | FlxGroup | ||
draw():void [override]
Automatically goes through and calls render on everything you added. | FlxGroup | ||
Override this function to draw custom "debug mode" graphics to the
specified camera while the debugger's visual mode is toggled on. | FlxBasic | ||
Call this function to retrieve the first object with dead == false in the group. | FlxGroup | ||
getFirstAvailable(ObjectClass:Class = null):FlxBasic
Call this function to retrieve the first object with exists == false in the group. | FlxGroup | ||
Call this function to retrieve the first object with dead == true in the group. | FlxGroup | ||
Call this function to retrieve the first object with exists == true in the group. | FlxGroup | ||
getFirstNull():int
Call this function to retrieve the first index set to 'null'. | FlxGroup | ||
Returns a member at random from the group. | FlxGroup | ||
kill():void [override]
Calls kill on the group's members and then on the group itself. | FlxGroup | ||
postUpdate():void
Post-update is called right after update() on each object in the game loop. | FlxBasic | ||
preUpdate():void [override]
Just making sure we don't increment the active objects count. | FlxGroup | ||
Recycling is designed to help you reuse game objects without always re-allocating or "newing" them. | FlxGroup | ||
Removes an object from the group. | FlxGroup | ||
Replaces an existing FlxBasic with a new one. | FlxGroup | ||
revive():void
Handy function for bringing game objects "back to life". | FlxBasic | ||
setAll(VariableName:String, Value:Object, Recurse:Boolean = true):void
Go through and set the specified variable to the specified value on all members of the group. | FlxGroup | ||
sort(Index:String = y, Order:int):void
Call this function to sort the group according to a particular value and order. | FlxGroup | ||
toString():String
Convert object to readable string name. | FlxBasic | ||
update():void [override]
Automatically goes through and calls update on everything you added. | FlxGroup |
create | () | method |
public function create():void
This function is called after the game engine successfully switches states. Override this function, NOT the constructor, to initialize or set up your game state. We do NOT recommend overriding the constructor, unless you want some crazy unpredictable things to happen!