MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Member Functions
ui.draw.TriangleShip Class Reference

The Class TriangleShip. More...

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

Public Member Functions

 TriangleShip (int x, int y, Color color, E_Alignment alignment)
 Instantiates a new triangle ship.
void draw (Graphics g)
 This draws the shape.
Shape getShape ()
 This returns an AWT shape which represents the Drawable.
Ship createShip ()
- Public Member Functions inherited from common.Ship
 Ship (int x, int y, Color color2, E_Alignment alignment2)
 Instantiates a new ship.
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.
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.

Private Member Functions

void drawExplosion (Graphics g)

Additional Inherited Members

- Protected Attributes inherited from common.Ship
Color color
 The color.
E_Alignment alignment
 The alignment.
AtomicBoolean isDetonationActive

Detailed Description

The Class TriangleShip.

Author
snandi This is a Ship which is shaped as a triangle.

Constructor & Destructor Documentation

ui.draw.TriangleShip.TriangleShip ( int  x,
int  y,
Color  color,
E_Alignment  alignment 
)
inline

Instantiates a new triangle ship.

Parameters
xthe x
ythe y
colorthe color
alignmentthe alignment

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

Member Function Documentation

Ship ui.draw.TriangleShip.createShip ( )
inlinevirtual
void ui.draw.TriangleShip.draw ( Graphics  g)
inlinevirtual
void ui.draw.TriangleShip.drawExplosion ( Graphics  g)
inlineprivate

References common.Ship.color.

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

Shape ui.draw.TriangleShip.getShape ( )
inlinevirtual

This returns an AWT shape which represents the Drawable.

Returns
the shape

Implements common.Drawable.

References common.Ship.alignment, ui.MakShooterUIConstants.DEFAULT_SHIP_SIZE, common.E_Alignment.LEFT, common.Drawable.x, and common.Drawable.y.

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


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)