6
* Creates ripples in the water when a cannon ball hits water
8
class InvalidShotObject extends LiveObject
12
public function new( gd : GameDriver, atMP : Point2 )
17
actMode = LiveObject.actInvisible;
18
player = false; //doesn't belong to anyone
23
override function draw()
27
var st = Math.cos( Math.PI/4 );
28
graphics.lineStyle( GConst.gridSizeX/7.5, 0x800000, 0.9, true );
29
graphics.moveTo( st * -GConst.gridSizeX/3, st * -GConst.gridSizeY/3 );
30
graphics.lineTo( st* GConst.gridSizeX/3, st * GConst.gridSizeY/3 );
31
graphics.drawEllipse( -GConst.gridSizeX/3, -GConst.gridSizeY/3,
32
2*GConst.gridSizeX/3, 2*GConst.gridSizeY/3 );
35
override public function step( elapsed : Float ) : StepResult
39
return StepResult.Remove;
41
return StepResult.Nothing;