home *** CD-ROM | disk | FTP | other *** search
- class TargetPosition extends Position
- {
- var color;
- var whited_out = false;
- var white = {ra:100,rb:255,ga:100,gb:255,ba:100,bb:255,aa:100,ab:0};
- var normal = {ra:100,rb:0,ga:100,gb:0,ba:100,bb:0,aa:100,ab:0};
- function TargetPosition()
- {
- super();
- this.color = new Color(this);
- }
- function getShot()
- {
- if(!this.whited_out)
- {
- this.color.setTransform(this.white);
- this.whited_out = true;
- }
- else
- {
- this.color.setTransform(this.normal);
- this.whited_out = false;
- }
- }
- function unWhite()
- {
- this.color.setTransform(this.normal);
- this.whited_out = false;
- }
- }
-