MAK RTIspy API Documentation for HLA 1516
List of all members | Public Member Functions | Protected Attributes | Private Member Functions
common.Ship Class Reference

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)

Detailed Description

This is the basic ship.

Author
snandi

Constructor & Destructor Documentation

common.Ship.Ship ( int  x,
int  y,
Color  color2,
E_Alignment  alignment2 
)
inline

Instantiates a new ship.

Parameters
xthe x
ythe y
color2the color2
alignment2the alignment2

References common.Ship.alignment, common.Ship.color, and common.Ship.setIsDetonationActive().

Referenced by common.Ship.equals().

Member Function Documentation

abstract Ship common.Ship.createShip ( )
pure virtual

Implemented in ui.draw.TriangleShip.

boolean common.Ship.equals ( Object  obj)
inline
E_Alignment common.Ship.getAlignment ( )
inline
Color common.Ship.getColor ( )
inline

Gets the color.

Returns
the color

References common.Ship.color.

Referenced by ui.draw.TriangleShip.draw().

AtomicBoolean common.Ship.getIsDetonationActive ( )
inline
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.

Parameters
alignmentthe new alignment

References common.Ship.alignment.

Referenced by federate.RTI1516e.MakShooterRTI1516eFederateAmbassador.setShipByAttributes().

void common.Ship.setColor ( Color  color)
inline
void common.Ship.setIsDetonationActive ( AtomicBoolean  isDetonationActive)
inlineprivate
Parameters
isDetonationActivethe isDetonationActive to set

References common.Ship.isDetonationActive.

Referenced by common.Ship.Ship().

String common.Ship.toString ( )
inline

Member Data Documentation

E_Alignment common.Ship.alignment
protected
Color common.Ship.color
protected
AtomicBoolean common.Ship.isDetonationActive
protected

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

Document ID: Generated on Tue May 7 16:26:47 EDT 2013 from SVN revision 126903
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)