![]() |
MAK RTIspy API Documentation for HLA 1.3
|
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 () |
Protected Attributes | |
| Color | color |
| The color. | |
| E_Alignment | alignment |
| The alignment. | |
| AtomicBoolean | isDetonationActive |
Private Member Functions | |
| void | setIsDetonationActive (AtomicBoolean isDetonationActive) |
This is the basic ship.
| common.Ship.Ship | ( | int | x, |
| int | y, | ||
| Color | color2, | ||
| E_Alignment | alignment2 | ||
| ) | [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().
| abstract Ship common.Ship.createShip | ( | ) | [pure virtual] |
Implemented in ui.draw.TriangleShip.
| boolean common.Ship.equals | ( | Object | obj | ) | [inline] |
Reimplemented from common.Drawable.
References common.Ship.alignment, common.Ship.color, and common.Ship.Ship().
| E_Alignment common.Ship.getAlignment | ( | ) | [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().
| Color common.Ship.getColor | ( | ) | [inline] |
Gets the color.
References common.Ship.color.
Referenced by ui.draw.TriangleShip.draw().
| AtomicBoolean common.Ship.getIsDetonationActive | ( | ) | [inline] |
References common.Ship.isDetonationActive.
Referenced by ui.draw.TriangleShip.draw(), and controllers.ShotManager.performDetonationGraphic().
| int common.Ship.hashCode | ( | ) | [inline] |
Reimplemented from common.Drawable.
References common.Ship.alignment, and common.Ship.color.
| void common.Ship.setAlignment | ( | E_Alignment | alignment | ) | [inline] |
Sets the alignment.
| alignment | the new alignment |
References common.Ship.alignment.
Referenced by federate.RTI1516e.MakShooterRTI1516eFederateAmbassador.setShipByAttributes().
| void common.Ship.setColor | ( | Color | color | ) | [inline] |
Sets the color.
| color | the new color |
References common.Ship.color.
Referenced by federate.RTI1516e.MakShooterRTI1516eFederateAmbassador.setShipByAttributes(), and ui.RTIActionHelper.startNewGame().
| void common.Ship.setIsDetonationActive | ( | AtomicBoolean | isDetonationActive | ) | [inline, private] |
| isDetonationActive | the isDetonationActive to set |
References common.Ship.isDetonationActive.
Referenced by common.Ship.Ship().
| String common.Ship.toString | ( | ) | [inline] |
E_Alignment common.Ship.alignment [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().
Color common.Ship.color [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().
AtomicBoolean common.Ship.isDetonationActive [protected] |
Referenced by common.Ship.getIsDetonationActive(), and common.Ship.setIsDetonationActive().