![]() |
MAK RTIspy API Documentation for HLA 1.3
|
Inheritance diagram for ui.Board:
Collaboration diagram for ui.Board:Public Member Functions | |
| Board (IMakShooterRTI myRti) throws HeadlessException | |
| Instantiates a new board. | |
| void | addKeyboardListenerToBoard (KeyListener ka) |
| This is adds a keyListener to the board, and ensures that it will be focusable and requests focus for the board. | |
| void | addShip (Ship ship) |
| Adds the ship. | |
| void | dispose () |
| IShipController | getControllerThread () |
| Ship | getLeftShip () |
| Gets the left ship. | |
| int | getLoses () |
| IMakShooterRTI | getMyRti () |
| Ship | getRightShip () |
| Gets the right ship. | |
| ShotIncrementingThread | getShotIncrementingThread () |
| Runnable | getWaitingForPlayersThread () |
| int | getWins () |
| boolean | isReadyToStartGame () |
| Checks if is ready to start game. | |
| void | myKeyboardHackForLinux () |
| This hack is necessary because there is an issue with linux, window focus, and keyboard listeners. | |
| void | endGameEarlyDueToPlayerLeaving () throws Exception |
| void | reInitializeGame () |
| void | setControllerThread (IShipController controllerThread) |
| void | setMyRti (IMakShooterRTI myRti) |
| void | setShotIncrementingThread (ShotIncrementingThread shotIncrementingThread) |
| void | setWaitingForPlayersThread (Runnable waitingForPlayersThread) |
| void | setLeftWins (int wins) |
| void | setLeftLoses (int loses) |
| void | setRightLoses (int loses) |
| void | setRightWins (int wins) |
| void | updateBoardFromDetonation (E_Alignment alignment) |
| void | modifyTitle (String titleAddition) |
Private Member Functions | |
| void | addDisconnectFromGameButton (JMenuBar jMenuBar) |
| void | addStartNewGameButton (JMenuBar jMenuBar) |
| void | createScorePanel () |
| Creates the score panel. | |
| void | initialize () |
| Initialize. | |
| JMenuBar | makeMenu () |
| Make menu. | |
| void | performShutdownStuff () throws Exception |
| void | performStartupStuff (String federationName, String federateName, Color color, boolean observer) throws Exception |
| void | abandonGame () throws Exception |
Private Attributes | |
| JPanel | contentPane |
| The content pane. | |
| IShipController | controllerThread |
| JButton | disconnectFromGameButton |
| GraphicsPanel | graphicsPanel |
| The graphics panel. | |
| JLabel | lblLeftWins |
| JLabel | lblRightWins |
| int | leftLoses = 0 |
| The loses. | |
| int | leftWins = 0 |
| The wins. | |
| JMenuBar | menu |
| IMakShooterRTI | myRti |
| int | rightLoses |
| int | rightWins |
| JPanel | scorePanel |
| ShotIncrementingThread | shotIncrementingThread |
| JButton | startNewGameMenuButton |
| Runnable | waitingForPlayersThread |
Static Private Attributes | |
| static final String | LABEL_WINS = "Score: " |
| static final long | serialVersionUID = -8387568866044849612L |
| The Constant serialVersionUID. | |
The Class Board.
|
inline |
Instantiates a new board.
| HeadlessException | the headless exception |
References ui.Board.initialize(), ui.Board.myRti, and ui.Board.setMyRti().
|
inlineprivate |
References ui.Board.contentPane, ui.Board.myRti, and ui.RTIActionHelper.stopGame().
Referenced by ui.Board.addStartNewGameButton().
|
inlineprivate |
References ui.Board.contentPane, ui.Board.disconnectFromGameButton, federate.IMakShooterRTI.isConnected(), ui.Board.myRti, and ui.Board.performShutdownStuff().
Referenced by ui.Board.makeMenu().
|
inline |
This is adds a keyListener to the board, and ensures that it will be focusable and requests focus for the board.
| ka |
References ui.Board.myKeyboardHackForLinux().
Referenced by controllers.KeyboardShipController.KeyboardShipController().
|
inline |
Adds the ship.
| ship | the ship |
References ui.GraphicsPanel.addShip(), and ui.Board.graphicsPanel.
Referenced by ui.TestMain.main(), and federate.RTI1516e.Test.main().
|
inlineprivate |
References ui.Board.abandonGame(), federate.IMakShooterRTI.connect(), ui.Board.contentPane, federate.IMakShooterRTI.disconnect(), ui.StartJoinGameDialog.getColor(), ui.StartJoinGameDialog.getFederateName(), ui.StartJoinGameDialog.getFederationName(), ui.StartJoinGameDialog.isCanceled, federate.IMakShooterRTI.isConnected(), ui.StartJoinGameDialog.isObserver, ui.Board.myRti, ui.Board.performStartupStuff(), federate.IMakShooterRTI.registerDialogForListFederation(), and ui.Board.startNewGameMenuButton.
Referenced by ui.Board.makeMenu().
|
inlineprivate |
Creates the score panel.
References ui.Board.contentPane, ui.Board.LABEL_WINS, ui.Board.lblLeftWins, ui.Board.lblRightWins, ui.Board.leftWins, ui.Board.rightWins, and ui.Board.scorePanel.
Referenced by ui.Board.initialize().
|
inline |
References ui.Board.myRti, and ui.RTIActionHelper.stopGame().
|
inline |
References ui.Board.contentPane, and ui.Board.performShutdownStuff().
Referenced by federate.RTI1516e.MakShooterRTI1516eFederateAmbassador.removeInstanceObjectShip().
|
inline |
References ui.Board.controllerThread.
Referenced by ui.RTIActionHelper.stopKeyboardThread().
|
inline |
Gets the left ship.
References ui.GraphicsPanel.getLeftShip(), and ui.Board.graphicsPanel.
Referenced by controllers.ShotManager.performIntenseDetonationCheck().
|
inline |
References ui.Board.leftLoses.
|
inline |
References ui.Board.myRti.
|
inline |
Gets the right ship.
References ui.GraphicsPanel.getRightShip(), and ui.Board.graphicsPanel.
Referenced by controllers.ShotManager.performIntenseDetonationCheck().
|
inline |
References ui.Board.shotIncrementingThread.
Referenced by ui.RTIActionHelper.stopShotIncrementingThread().
|
inline |
References ui.Board.waitingForPlayersThread.
|
inline |
References ui.Board.leftWins.
|
inlineprivate |
Initialize.
References ui.Board.contentPane, ui.Board.createScorePanel(), ui.MakShooterUIConstants.DEFAULT_BOARD_HEIGHT, ui.MakShooterUIConstants.DEFAULT_BOARD_WIDTH, ui.MakShooterUIConstants.DEFAULT_BOARD_X, ui.MakShooterUIConstants.DEFAULT_BOARD_Y, ui.Board.graphicsPanel, ui.MakShooterUIConstants.MAK_SHOOTER_TITLE, ui.Board.makeMenu(), and ui.Board.menu.
Referenced by ui.Board.Board().
|
inline |
Checks if is ready to start game.
References ui.Board.graphicsPanel, and ui.GraphicsPanel.isReadyToStart().
Referenced by ui.TestMain.main().
|
inlineprivate |
Make menu.
References ui.Board.addDisconnectFromGameButton(), and ui.Board.addStartNewGameButton().
Referenced by ui.Board.initialize().
|
inline |
References ui.MakShooterUIConstants.MAK_SHOOTER_TITLE.
|
inline |
This hack is necessary because there is an issue with linux, window focus, and keyboard listeners.
Referenced by ui.Board.addKeyboardListenerToBoard(), and controllers.KeyboardShipController.run().
|
inlineprivate |
References ui.Board.myRti, and ui.RTIActionHelper.stopGame().
Referenced by ui.Board.addDisconnectFromGameButton(), and ui.Board.endGameEarlyDueToPlayerLeaving().
|
inlineprivate |
|
inline |
References ui.Board.setLeftLoses(), ui.Board.setLeftWins(), ui.Board.setRightLoses(), and ui.Board.setRightWins().
Referenced by ui.RTIActionHelper.resetBoard().
|
inline |
References ui.Board.controllerThread.
|
inline |
| loses | the loses to set |
Referenced by ui.Board.reInitializeGame(), and ui.Board.updateBoardFromDetonation().
|
inline |
| wins | the wins to set |
References ui.Board.LABEL_WINS, ui.Board.lblLeftWins, and ui.Board.leftWins.
Referenced by ui.Board.reInitializeGame(), and ui.Board.updateBoardFromDetonation().
|
inline |
References ui.Board.myRti.
Referenced by ui.Board.Board().
|
inline |
| loses | the loses to set |
Referenced by ui.Board.reInitializeGame(), and ui.Board.updateBoardFromDetonation().
|
inline |
| wins | the wins to set |
References ui.Board.LABEL_WINS, ui.Board.lblRightWins, and ui.Board.rightWins.
Referenced by ui.Board.reInitializeGame(), and ui.Board.updateBoardFromDetonation().
|
inline |
References ui.Board.shotIncrementingThread.
|
inline |
References ui.Board.waitingForPlayersThread.
|
inline |
References ui.Board.leftLoses, ui.Board.leftWins, ui.Board.rightLoses, ui.Board.rightWins, ui.Board.setLeftLoses(), ui.Board.setLeftWins(), ui.Board.setRightLoses(), and ui.Board.setRightWins().
Referenced by federate.RTI1516e.MakShooterRTI1516eFederateAmbassador.receiveInteractionDetonation(), and federate.RTI1516e.MakShooterRTI1516e.sendDetonationInteraction().
|
private |
The content pane.
Referenced by ui.Board.abandonGame(), ui.Board.addDisconnectFromGameButton(), ui.Board.addStartNewGameButton(), ui.Board.createScorePanel(), ui.Board.endGameEarlyDueToPlayerLeaving(), and ui.Board.initialize().
|
private |
Referenced by ui.Board.getControllerThread(), and ui.Board.setControllerThread().
|
private |
Referenced by ui.Board.addDisconnectFromGameButton().
|
private |
The graphics panel.
Referenced by ui.Board.addShip(), ui.Board.getLeftShip(), ui.Board.getRightShip(), ui.Board.initialize(), and ui.Board.isReadyToStartGame().
|
staticprivate |
Referenced by ui.Board.createScorePanel(), ui.Board.setLeftWins(), and ui.Board.setRightWins().
|
private |
Referenced by ui.Board.createScorePanel(), and ui.Board.setLeftWins().
|
private |
Referenced by ui.Board.createScorePanel(), and ui.Board.setRightWins().
|
private |
The loses.
Referenced by ui.Board.getLoses(), and ui.Board.updateBoardFromDetonation().
|
private |
The wins.
Referenced by ui.Board.createScorePanel(), ui.Board.getWins(), ui.Board.setLeftWins(), and ui.Board.updateBoardFromDetonation().
|
private |
Referenced by ui.Board.initialize().
|
private |
|
private |
Referenced by ui.Board.updateBoardFromDetonation().
|
private |
Referenced by ui.Board.createScorePanel(), ui.Board.setRightWins(), and ui.Board.updateBoardFromDetonation().
|
private |
Referenced by ui.Board.createScorePanel().
|
staticprivate |
The Constant serialVersionUID.
|
private |
Referenced by ui.Board.getShotIncrementingThread(), and ui.Board.setShotIncrementingThread().
|
private |
Referenced by ui.Board.addStartNewGameButton().
|
private |
Referenced by ui.Board.getWaitingForPlayersThread(), and ui.Board.setWaitingForPlayersThread().