visible = $visibility; } function __destruct() { } public function SetVisibility($param) { $this->visible = $param; } public function IsVisible() { return $this->visible; } } class Sprite2D extends Sprite { protected $width, $height; protected $locx, $locy; function __construct($width, $height, $x, $y, $visible) { parent::__construct($visible); $this->width = $width; $this->height = $height; $this->locx = $x; $this->locy = $y; } function __destruct() { } public function SetWidth($width) { $this->width = $width; } public function GetWidth() { return $this->width; } public function SetHeight($height) { $this->height = $height; } public function GetHeight() { return $this->height; } public function SetXCoord($x) { $this->locx = $x; } public function GetXCoord() { return $this->locx; } public function SetYCoord($y) { $this->locy = $y; } public function GetYCoord() { return $this->locy; } } class Sprite2DHTML extends Sprite2D { protected $htmlid; function __construct($width, $height, $x, $y, $visible, $htmlid) { parent::__construct($width, $height, $x, $y, $visible); $this->htmlid = $htmlid; } function __destruct() { } public function DrawSprite() { echo "