MAK RTIspy API Documentation for HLA Evolved
Public Member Functions
ui.draw.SquareShot Class Reference

The Class SquareShot. More...

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

List of all members.

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.

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) [inline, virtual]

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) [inline, virtual]
Shape ui.draw.SquareShot.getShape ( ) [inline, virtual]

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