![]() |
MAK RTIspy API Documentation for HLA Evolved
|
This is the basic ship. More...
Inheritance diagram for common.Ship:
Collaboration diagram for common.Ship:Public Member Functions | |
| Ship (int x, int y, Color color2, E_Alignment alignment2) | |
| Instantiates a new ship. | |
| abstract Ship | createShip () |
| 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. | |
| abstract void | draw (Graphics g) |
| This draws the shape. | |
| abstract Shape | getShape () |
| This returns an AWT shape which represents the 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. | |
Protected Attributes | |
| Color | color |
| The color. | |
| E_Alignment | alignment |
| The alignment. | |
| AtomicBoolean | isDetonationActive |
Protected Attributes inherited from common.Drawable | |
| String | name |
| The name. | |
| int | x |
| The x. | |
| int | y |
| The y. | |
| boolean | isVisible |
| The is visible. | |
Private Member Functions | |
| void | setIsDetonationActive (AtomicBoolean isDetonationActive) |
This is the basic ship.
|
inline |
Instantiates a new ship.
| x | the x |
| y | the y |
| color2 | the color2 |
| alignment2 | the alignment2 |
References common.Ship.alignment, common.Ship.color, and common.Ship.setIsDetonationActive().
Referenced by common.Ship.equals().
|
pure virtual |
Implemented in ui.draw.TriangleShip.
|
inline |
Reimplemented from common.Drawable.
References common.Ship.alignment, common.Ship.color, and common.Ship.Ship().
|
inline |
Gets the alignment.
References common.Ship.alignment.
Referenced by ui.GraphicsPanel.addShip(), ui.draw.SquareShot.createShot(), ui.TestMain.main(), federate.RTI1516e.Test.main(), federate.RTI1516e.MakShooterRTI1516eFederateAmbassador.receiveInteractionDetonation(), controllers.KeyboardShipController.shoot(), ui.RTIActionHelper.startNewGame(), and controllers.KeyboardShipController.TestShoot().
|
inline |
Gets the color.
References common.Ship.color.
Referenced by ui.draw.TriangleShip.draw().
|
inline |
References common.Ship.isDetonationActive.
Referenced by ui.draw.TriangleShip.draw(), and controllers.ShotManager.performDetonationGraphic().
|
inline |
Reimplemented from common.Drawable.
References common.Ship.alignment, and common.Ship.color.
|
inline |
Sets the alignment.
| alignment | the new alignment |
References common.Ship.alignment.
Referenced by federate.RTI1516e.MakShooterRTI1516eFederateAmbassador.setShipByAttributes().
|
inline |
Sets the color.
| color | the new color |
References common.Ship.color.
Referenced by federate.RTI1516e.MakShooterRTI1516eFederateAmbassador.setShipByAttributes(), and ui.RTIActionHelper.startNewGame().
|
inlineprivate |
| isDetonationActive | the isDetonationActive to set |
References common.Ship.isDetonationActive.
Referenced by common.Ship.Ship().
|
inline |
|
protected |
The alignment.
Referenced by ui.draw.TriangleShip.draw(), common.Ship.equals(), common.Ship.getAlignment(), ui.draw.TriangleShip.getShape(), common.Ship.hashCode(), common.Ship.setAlignment(), common.Ship.Ship(), and common.Ship.toString().
|
protected |
The color.
Referenced by ui.draw.TriangleShip.drawExplosion(), common.Ship.equals(), common.Ship.getColor(), common.Ship.hashCode(), common.Ship.setColor(), common.Ship.Ship(), and common.Ship.toString().
|
protected |
Referenced by common.Ship.getIsDetonationActive(), and common.Ship.setIsDetonationActive().