![]() |
MAK RTIspy API Documentation for HLA 1516
|
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. | |
Public Member Functions inherited from common.Shot | |
| Shot (int x, int y, E_Alignment alignment) | |
| Instantiates a new shot. | |
| UUID | getUuid () |
| Gets the uuid. | |
| void | setUuid (UUID uuid) |
| Sets the uuid. | |
| E_Alignment | getAlignment () |
| Gets the alignment. | |
| void | setAlignment (E_Alignment alignment) |
| Sets the alignment. | |
| int | hashCode () |
| boolean | equals (Object obj) |
| String | toString () |
Public Member Functions inherited from common.Drawable | |
| Drawable (int x, int y) | |
| Instantiates a new drawable. | |
| String | getName () |
| Gets the name. | |
| void | setName (String name) |
| Sets the name. | |
| int | getX () |
| Gets the x. | |
| void | setX (int x) |
| Sets the x. | |
| int | getY () |
| Gets the y. | |
| void | setY (int y) |
| Sets the y. | |
| boolean | isVisible () |
| Checks if is visible. | |
| void | setVisible (boolean isVisible) |
| Sets the visible. | |
Additional Inherited Members | |
Protected Attributes inherited from common.Shot | |
| UUID | uuid |
| The uuid. | |
| E_Alignment | alignment |
| The alignment. | |
The Class SquareShot.
|
inline |
Instantiates a new square shot.
| x | the x |
| y | the y |
| alignment | the alignment |
Referenced by ui.draw.SquareShot.createShot().
Creates the shot.
| ship | the ship |
Implements common.Shot.
References common.Ship.getAlignment(), common.Drawable.getX(), common.Drawable.getY(), and ui.draw.SquareShot.SquareShot().
|
inlinevirtual |
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().
|
inlinevirtual |
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().