package;

/**
 * ...
 * @author Laboon
 */

class AI
{
	public var activeState:Void->Void;
	
	public function new(?InitState:Void->Void):Void
	{
		activeState = InitState;
	}
	
	public function update():Void
	{
		if (activeState != null)
			activeState();
	}
}