MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Private Attributes | Static Private Attributes
ui.GraphicsPanel Class Reference

The Class GraphicsPanel. More...

+ Inheritance diagram for ui.GraphicsPanel:
+ Collaboration diagram for ui.GraphicsPanel:

Public Member Functions

 GraphicsPanel ()
 Instantiates a new graphics panel.
void addShip (Ship ship)
 Adds the ship.
Ship getLeftShip ()
 Gets the left ship.
Ship getRightShip ()
 Gets the right ship.
boolean isReadyToStart ()
 Checks if is ready to start.

Protected Member Functions

void paintComponent (Graphics g)

Private Attributes

Ship leftShip
 The left ship.
Ship rightShip
 The right ship.

Static Private Attributes

static final long serialVersionUID = -8898731217892011141L
 The Constant serialVersionUID.

Detailed Description

The Class GraphicsPanel.

Author
snandi

Constructor & Destructor Documentation

ui.GraphicsPanel.GraphicsPanel ( )
inline

Instantiates a new graphics panel.

References ui.GraphicsPanel.leftShip, and ui.GraphicsPanel.rightShip.

Member Function Documentation

void ui.GraphicsPanel.addShip ( Ship  ship)
inline

Adds the ship.

Parameters
shipthe ship

References common.Ship.getAlignment(), ui.GraphicsPanel.leftShip, and ui.GraphicsPanel.rightShip.

Referenced by ui.Board.addShip().

Ship ui.GraphicsPanel.getLeftShip ( )
inline

Gets the left ship.

Returns
the leftShip

References ui.GraphicsPanel.leftShip.

Referenced by ui.Board.getLeftShip().

Ship ui.GraphicsPanel.getRightShip ( )
inline

Gets the right ship.

Returns
the rightShip

References ui.GraphicsPanel.rightShip.

Referenced by ui.Board.getRightShip().

boolean ui.GraphicsPanel.isReadyToStart ( )
inline

Checks if is ready to start.

Returns
true, if is ready to start

References ui.GraphicsPanel.leftShip, and ui.GraphicsPanel.rightShip.

Referenced by ui.Board.isReadyToStartGame().

void ui.GraphicsPanel.paintComponent ( Graphics  g)
inlineprotected

Member Data Documentation

Ship ui.GraphicsPanel.leftShip
private
Ship ui.GraphicsPanel.rightShip
private
final long ui.GraphicsPanel.serialVersionUID = -8898731217892011141L
staticprivate

The Constant serialVersionUID.


The documentation for this class was generated from the following file:

Document ID: Generated on Wed Mar 11 20:26:49 EDT 2015 from SVN revision 150939
Copyright © 2005-2015 VT MÄK Inc. All Rights Reserved (www.mak.com)