MAK RTIspy API Documentation for HLA 1516
List of all members | Public Member Functions
ui.draw.SquareShot Class Reference

The Class SquareShot. More...

+ Inheritance diagram for ui.draw.SquareShot:
+ Collaboration diagram for ui.draw.SquareShot:

Public Member Functions

 SquareShot (int x, int y, E_Alignment alignment)
 Instantiates a new square shot.
void draw (Graphics g)
 This draws the shape.
Shape getShape ()
 This returns an AWT shape which represents the Drawable.
Shot createShot (Ship ship)
 Creates the shot.
- Public Member Functions inherited from common.Shot
 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.
int hashCode ()
boolean equals (Object obj)
String toString ()
- Public Member Functions inherited from common.Drawable
 Drawable (int x, int y)
 Instantiates a new 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.

Additional Inherited Members

- Protected Attributes inherited from common.Shot
UUID uuid
 The uuid.
E_Alignment alignment
 The alignment.

Detailed Description

The Class SquareShot.

Author
snandi

Constructor & Destructor Documentation

ui.draw.SquareShot.SquareShot ( int  x,
int  y,
E_Alignment  alignment 
)
inline

Instantiates a new square shot.

Parameters
xthe x
ythe y
alignmentthe alignment

Referenced by ui.draw.SquareShot.createShot().

Member Function Documentation

Shot ui.draw.SquareShot.createShot ( Ship  ship)
inlinevirtual

Creates the shot.

Parameters
shipthe ship
Returns
the shot

Implements common.Shot.

References common.Ship.getAlignment(), common.Drawable.getX(), common.Drawable.getY(), and ui.draw.SquareShot.SquareShot().

void ui.draw.SquareShot.draw ( Graphics  g)
inlinevirtual
Shape ui.draw.SquareShot.getShape ( )
inlinevirtual

This returns an AWT shape which represents the Drawable.

Returns
the shape

Implements common.Drawable.

References ui.MakShooterUIConstants.DEFAULT_SHOT_HEIGHT, ui.MakShooterUIConstants.DEFAULT_SHOT_WIDTH, common.Drawable.getX(), and common.Drawable.getY().


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

Document ID: Generated on Fri Mar 14 19:08:55 EDT 2014 from SVN revision 137085
Copyright © 2005-2014 VT MÄK Inc. All Rights Reserved (www.mak.com)