Game Development Reference
In-Depth Information
public function get requirements():Array {
if (!_requirements) _requirements = new
Array();
return _requirements;
}
public function set requirements(value:Array):
void {
requirements = value;
}
public function get destination():String {
return _destination;
}
public function set destination(value:String):
void {
_destination = value;
}
override public function get hitArea():Sprite {
return this;
}
}
}
package example {
import com.flashgamebook.engines.platformer.sprites.
IWall;
import flash.display.Sprite;
public class Wall extends Sprite implements IWall {
public function Wall() {
}
}
}
Even though it does nothing, the Wall class exists to fulfill the
requirement of an IWall implementation. Without it, we could not
substitute this class for instances in which an IWall is required.
The Assets
We
'
ve now discussed every class in play throughout this game.
Whew! Give yourself a pat on the back for having slogged
Search Nedrilad ::




Custom Search