MAK RTIspy API Documentation for HLA 1.3
List of all members | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
controllers.KeyboardShipController Class Reference

The Class KeyboardShipController. More...

+ Inheritance diagram for controllers.KeyboardShipController:
+ Collaboration diagram for controllers.KeyboardShipController:

Public Member Functions

 KeyboardShipController (IMakShooterRTI myRti, Board board, final Ship ship)
 Instantiates a new keyboard ship controller.
void shipActionPressed (KeyEvent evt)
 Ship action pressed.
void shipActionReleased (KeyEvent evt)
 Ship action released.
void moveShip (int x, int y)
 Move ship.
void shoot ()
 Shoot.
void TestShoot (Ship ship)
 Purely for Testing.
void run ()
 This will start the keyboard Controller, allowing you to move one ship up and down using the UP Arrow and DOWN Arrow keys.
IShipController start ()
- Public Member Functions inherited from controllers.IShipController
 IShipController (IMakShooterRTI myRTI)
 Instantiates a new i ship controller.
boolean isFinished ()
void setFinished (boolean finished)

Protected Member Functions

void formKeyPressed (KeyEvent evt)
 Form key pressed.
void formKeyReleased (KeyEvent evt)
 Form key released.

Private Member Functions

void repaint ()
 Repaint.

Private Attributes

boolean moveUp = false
 The move up.
boolean moveDown = false
 The move down.
final Ship ship
 The ship.
final Board board
 The board.
boolean shotCooldownActive = false
Timer timer

Static Private Attributes

static final int SHOT_COOLDOWN = 500
static final int DELAY = 70
 The Constant DELAY.

Additional Inherited Members

- Protected Attributes inherited from controllers.IShipController
boolean finished
 The finished.
IMakShooterRTI myRTI
 The my rti.

Detailed Description

The Class KeyboardShipController.

Author
snandi

Constructor & Destructor Documentation

controllers.KeyboardShipController.KeyboardShipController ( IMakShooterRTI  myRti,
Board  board,
final Ship  ship 
)
inline

Member Function Documentation

void controllers.KeyboardShipController.formKeyPressed ( KeyEvent  evt)
inlineprotected
void controllers.KeyboardShipController.formKeyReleased ( KeyEvent  evt)
inlineprotected
void controllers.KeyboardShipController.moveShip ( int  x,
int  y 
)
inlinevirtual
void controllers.KeyboardShipController.repaint ( )
inlineprivate
void controllers.KeyboardShipController.run ( )
inline
void controllers.KeyboardShipController.shipActionPressed ( KeyEvent  evt)
inline
void controllers.KeyboardShipController.shipActionReleased ( KeyEvent  evt)
inline
void controllers.KeyboardShipController.shoot ( )
inlinevirtual
IShipController controllers.KeyboardShipController.start ( )
inlinevirtual
void controllers.KeyboardShipController.TestShoot ( Ship  ship)
inline

Member Data Documentation

final Board controllers.KeyboardShipController.board
private
final int controllers.KeyboardShipController.DELAY = 70
staticprivate

The Constant DELAY.

Referenced by controllers.KeyboardShipController.run().

boolean controllers.KeyboardShipController.moveDown = false
private
boolean controllers.KeyboardShipController.moveUp = false
private
final Ship controllers.KeyboardShipController.ship
private
final int controllers.KeyboardShipController.SHOT_COOLDOWN = 500
staticprivate
boolean controllers.KeyboardShipController.shotCooldownActive = false
private
Timer controllers.KeyboardShipController.timer
private

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)