![]() |
MAK RTIspy API Documentation for HLA 1.3
|
The Class SquareShot. More...
Inheritance diagram for ui.draw.SquareShot:
Collaboration diagram for ui.draw.SquareShot:Public Member Functions | |
| SquareShot (int x, int y, E_Alignment alignment) | |
| Instantiates a new square shot. | |
| void | draw (Graphics g) |
| This draws the shape. | |
| Shape | getShape () |
| This returns an AWT shape which represents the Drawable. | |
| Shot | createShot (Ship ship) |
| Creates the shot. | |
The Class SquareShot.
| ui.draw.SquareShot.SquareShot | ( | int | x, |
| int | y, | ||
| E_Alignment | alignment | ||
| ) | [inline] |
Instantiates a new square shot.
| x | the x |
| y | the y |
| alignment | the alignment |
Referenced by ui.draw.SquareShot.createShot().
| Shot ui.draw.SquareShot.createShot | ( | Ship | ship | ) | [inline, virtual] |
Creates the shot.
| ship | the ship |
Implements common.Shot.
References common.Ship.getAlignment(), common.Drawable.getX(), common.Drawable.getY(), and ui.draw.SquareShot.SquareShot().
| void ui.draw.SquareShot.draw | ( | Graphics | g | ) | [inline, virtual] |
This draws the shape.
| g | the g |
Implements common.Drawable.
References ui.MakShooterUIConstants.DEFAULT_SHOT_HEIGHT, ui.MakShooterUIConstants.DEFAULT_SHOT_WIDTH, common.Drawable.getX(), and common.Drawable.getY().
| Shape ui.draw.SquareShot.getShape | ( | ) | [inline, virtual] |
This returns an AWT shape which represents the Drawable.
Implements common.Drawable.
References ui.MakShooterUIConstants.DEFAULT_SHOT_HEIGHT, ui.MakShooterUIConstants.DEFAULT_SHOT_WIDTH, common.Drawable.getX(), and common.Drawable.getY().