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

List of all members.

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)

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]
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) [inline, private]
Parameters:
isDetonationActivethe isDetonationActive to set

References common.Ship.isDetonationActive.

Referenced by common.Ship.Ship().

String common.Ship.toString ( ) [inline]

Member Data Documentation

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