95 lines
2.0 KiB
ActionScript
95 lines
2.0 KiB
ActionScript
package org.flixel
|
|
{
|
|
public class FlxBasic
|
|
{
|
|
|
|
internal static var _ACTIVECOUNT:uint;
|
|
|
|
internal static var _VISIBLECOUNT:uint;
|
|
|
|
public var ID:int;
|
|
|
|
public var exists:Boolean;
|
|
|
|
public var active:Boolean;
|
|
|
|
public var visible:Boolean;
|
|
|
|
public var alive:Boolean;
|
|
|
|
public var cameras:Array;
|
|
|
|
public var ignoreDrawDebug:Boolean;
|
|
|
|
public function FlxBasic()
|
|
{
|
|
super();
|
|
this.ID = -1;
|
|
this.exists = true;
|
|
this.active = true;
|
|
this.visible = true;
|
|
this.alive = true;
|
|
this.ignoreDrawDebug = false;
|
|
}
|
|
|
|
public function destroy() : void
|
|
{
|
|
}
|
|
|
|
public function preUpdate() : void
|
|
{
|
|
++_ACTIVECOUNT;
|
|
}
|
|
|
|
public function update() : void
|
|
{
|
|
}
|
|
|
|
public function postUpdate() : void
|
|
{
|
|
}
|
|
|
|
public function draw() : void
|
|
{
|
|
var _loc1_:FlxCamera = null;
|
|
if(this.cameras == null)
|
|
{
|
|
this.cameras = FlxG.cameras;
|
|
}
|
|
var _loc2_:uint = 0;
|
|
var _loc3_:uint = this.cameras.length;
|
|
while(_loc2_ < _loc3_)
|
|
{
|
|
_loc1_ = this.cameras[_loc2_++];
|
|
++_VISIBLECOUNT;
|
|
if(FlxG.visualDebug && !this.ignoreDrawDebug)
|
|
{
|
|
this.drawDebug(_loc1_);
|
|
}
|
|
}
|
|
}
|
|
|
|
public function drawDebug(param1:FlxCamera = null) : void
|
|
{
|
|
}
|
|
|
|
public function kill() : void
|
|
{
|
|
this.alive = false;
|
|
this.exists = false;
|
|
}
|
|
|
|
public function revive() : void
|
|
{
|
|
this.alive = true;
|
|
this.exists = true;
|
|
}
|
|
|
|
public function toString() : String
|
|
{
|
|
return FlxU.getClassName(this,true);
|
|
}
|
|
}
|
|
}
|
|
|