All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class pinball.player.morsecode.MorseCodeStrategy

java.lang.Object
   |
   +----java.lang.Thread
           |
           +----pinball.player.Strategy
                   |
                   +----pinball.player.morsecode.MorseCodeStrategy

public class MorseCodeStrategy
extends Strategy
Translate the flashes of morsecode to text..


Constructor Index

 o MorseCodeStrategy()
For extended classes.
 o MorseCodeStrategy(Buffer, TextArea, Camera)
The strategy thread for the player.

Method Index

 o decision()
Should you flip or not.
 o decodeChar(String)
 o option()
For extended classes.
 o timeRange(long, long, long)

Constructors

 o MorseCodeStrategy
 public MorseCodeStrategy(Buffer buffer,
                          TextArea gameStats,
                          Camera camera)
The strategy thread for the player.

Parameters:
buffer - the first buffer in the series of buffers for the system.
gameStats - the area to write the game stats to.
camera - the camera for the system.
 o MorseCodeStrategy
 public MorseCodeStrategy()
For extended classes.

Methods

 o timeRange
 public boolean timeRange(long target,
                          long leeway,
                          long time)
 o option
 public void option()
For extended classes.

Overrides:
option in class Strategy
 o decision
 public void decision()
Should you flip or not. It never flips.

Overrides:
decision in class Strategy
 o decodeChar
 public char decodeChar(String code)

All Packages  Class Hierarchy  This Package  Previous  Next  Index