![]() |
MAK RTIspy API Documentation for HLA 1516
|
The Class TriangleShip. More...
Inheritance diagram for ui.draw.TriangleShip:
Collaboration diagram for ui.draw.TriangleShip:Public Member Functions | |
| TriangleShip (int x, int y, Color color, E_Alignment alignment) | |
| Instantiates a new triangle ship. | |
| void | draw (Graphics g) |
| This draws the shape. | |
| Shape | getShape () |
| This returns an AWT shape which represents the Drawable. | |
| Ship | createShip () |
Public Member Functions inherited from common.Ship | |
| Ship (int x, int y, Color color2, E_Alignment alignment2) | |
| Instantiates a new ship. | |
| E_Alignment | getAlignment () |
| Gets the alignment. | |
| void | setAlignment (E_Alignment alignment) |
| Sets the alignment. | |
| Color | getColor () |
| Gets the color. | |
| void | setColor (Color color) |
| Sets the color. | |
| AtomicBoolean | getIsDetonationActive () |
| 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. | |
Private Member Functions | |
| void | drawExplosion (Graphics g) |
Additional Inherited Members | |
Protected Attributes inherited from common.Ship | |
| Color | color |
| The color. | |
| E_Alignment | alignment |
| The alignment. | |
| AtomicBoolean | isDetonationActive |
The Class TriangleShip.
|
inline |
Instantiates a new triangle ship.
| x | the x |
| y | the y |
| color | the color |
| alignment | the alignment |
Referenced by ui.draw.TriangleShip.createShip().
|
inlinevirtual |
Implements common.Ship.
References ui.draw.TriangleShip.TriangleShip().
|
inlinevirtual |
This draws the shape.
| g | the g |
Implements common.Drawable.
References common.Ship.alignment, ui.MakShooterUIConstants.DEFAULT_SHIP_SIZE, ui.draw.TriangleShip.drawExplosion(), common.Ship.getColor(), common.Ship.getIsDetonationActive(), ui.draw.TriangleShip.getShape(), common.E_Alignment.LEFT, common.Drawable.name, common.Drawable.x, and common.Drawable.y.
|
inlineprivate |
References common.Ship.color.
Referenced by ui.draw.TriangleShip.draw().
|
inlinevirtual |
This returns an AWT shape which represents the Drawable.
Implements common.Drawable.
References common.Ship.alignment, ui.MakShooterUIConstants.DEFAULT_SHIP_SIZE, common.E_Alignment.LEFT, common.Drawable.x, and common.Drawable.y.
Referenced by ui.draw.TriangleShip.draw().