![]() |
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 () |
Private Member Functions | |
| void | drawExplosion (Graphics g) |
The Class TriangleShip.
| ui.draw.TriangleShip.TriangleShip | ( | int | x, |
| int | y, | ||
| Color | color, | ||
| E_Alignment | alignment | ||
| ) | [inline] |
Instantiates a new triangle ship.
| x | the x |
| y | the y |
| color | the color |
| alignment | the alignment |
Referenced by ui.draw.TriangleShip.createShip().
| Ship ui.draw.TriangleShip.createShip | ( | ) | [inline, virtual] |
Implements common.Ship.
References ui.draw.TriangleShip.TriangleShip().
| void ui.draw.TriangleShip.draw | ( | Graphics | g | ) | [inline, virtual] |
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.
| void ui.draw.TriangleShip.drawExplosion | ( | Graphics | g | ) | [inline, private] |
References common.Ship.color.
Referenced by ui.draw.TriangleShip.draw().
| Shape ui.draw.TriangleShip.getShape | ( | ) | [inline, virtual] |
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().