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

List of all members.

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

Private Member Functions

void drawExplosion (Graphics g)

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 ( ) [inline, virtual]
void ui.draw.TriangleShip.draw ( Graphics  g) [inline, virtual]
void ui.draw.TriangleShip.drawExplosion ( Graphics  g) [inline, private]

References common.Ship.color.

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

Shape ui.draw.TriangleShip.getShape ( ) [inline, virtual]

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