MAK RTIspy API Documentation for HLA Evolved
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:

List of all members.

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

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().

Gets the left ship.

Returns:
the leftShip

References ui.GraphicsPanel.leftShip.

Referenced by ui.Board.getLeftShip().

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) [inline, protected]

Member Data Documentation

final long ui.GraphicsPanel.serialVersionUID = -8898731217892011141L [static, private]

The Constant serialVersionUID.


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

Document ID: Generated on Thu Jun 14 14:15:04 EDT 2012 from SVN revision 116116
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)