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

The Class Shot. More...

+ Inheritance diagram for common.Shot:
+ Collaboration diagram for common.Shot:

Public Member Functions

 Shot (int x, int y, E_Alignment alignment)
 Instantiates a new shot.
UUID getUuid ()
 Gets the uuid.
void setUuid (UUID uuid)
 Sets the uuid.
E_Alignment getAlignment ()
 Gets the alignment.
void setAlignment (E_Alignment alignment)
 Sets the alignment.
abstract Shot createShot (Ship ship)
 Creates the shot.
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

UUID uuid
 The uuid.
E_Alignment alignment
 The alignment.
- Protected Attributes inherited from common.Drawable
String name
 The name.
int x
 The x.
int y
 The y.
boolean isVisible
 The is visible.

Detailed Description

The Class Shot.

Constructor & Destructor Documentation

common.Shot.Shot ( int  x,
int  y,
E_Alignment  alignment 
)
inline

Instantiates a new shot.

Parameters
xthe x
ythe y
alignmentthe alignment

References common.Shot.alignment, and common.Shot.uuid.

Referenced by common.Shot.equals().

Member Function Documentation

abstract Shot common.Shot.createShot ( Ship  ship)
pure virtual

Creates the shot.

Parameters
shipthe ship
Returns
the shot

Implemented in ui.draw.SquareShot.

Referenced by controllers.ShotManager.generateInitialShotPool().

boolean common.Shot.equals ( Object  obj)
inline
E_Alignment common.Shot.getAlignment ( )
inline
UUID common.Shot.getUuid ( )
inline
int common.Shot.hashCode ( )
inline

Reimplemented from common.Drawable.

References common.Shot.alignment, and common.Shot.uuid.

void common.Shot.setAlignment ( E_Alignment  alignment)
inline
void common.Shot.setUuid ( UUID  uuid)
inline

Sets the uuid.

Parameters
uuidthe uuid to set

References common.Shot.uuid.

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

String common.Shot.toString ( )
inline

Member Data Documentation

E_Alignment common.Shot.alignment
protected
UUID common.Shot.uuid
protected

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)