All Packages Class Hierarchy This Package Previous Next Index
Class moves.EuMove
java.lang.Object
|
+----moves.EuMove
- public abstract class EuMove
- extends Object
The abstract class behind all move classes. Each such class
represents a LEA move. Many of them can be constructed in two ways,
one in which all input and output is specified (for use when reading from a LEA program
on file) and one in which only tentative input is specified (for use when recording moves
interactively).
-
in
-
-
inMode
-
-
out
-
-
outMode
-
-
warner
-
-
EuMove()
-
-
executeMacro(int, EuLab, EuWrapper)
- Executes the move in macro mode, possibly affecting the passed
-
executeMain(int, EuLab)
- Executes the move, possibly affecting the passed
-
exMacro(int, EuLab, EuWrapper)
-
-
exMain(int, EuLab)
-
-
name()
-
-
number()
-
-
setWarner(EuWarner)
- Choose a
-
toString()
-
in
protected EuWrapper in
out
protected EuWrapper out
inMode
protected int inMode
outMode
protected int outMode
warner
protected static EuWarner warner
EuMove
public EuMove()
executeMain
public int executeMain(int segment,
EuLab lab) throws LeaException
- Executes the move, possibly affecting the passed @see EuLab
- Parameters:
- the - current segment
- lab - the @see EuLab
- Returns:
- The new segment
executeMacro
public int executeMacro(int segment,
EuLab lab,
EuWrapper caller) throws LeaException
- Executes the move in macro mode, possibly affecting the passed @see EuLab
- Parameters:
- the - current segment
- lab - the @see EuLab
- caller - a @see EuWrapper containing data being passed to and from
the calling @see EuCorder
- Returns:
- The new segment
exMain
protected abstract int exMain(int segment,
EuLab lab) throws LeaException
exMacro
protected abstract int exMacro(int segment,
EuLab lab,
EuWrapper caller) throws LeaException
name
public abstract String name()
- Returns:
- The LEA name of this command
number
public abstract int number()
- Returns:
- A number representing this move internally
toString
public abstract String toString()
- Returns:
- A string representation of this LEA command
- Overrides:
- toString in class Object
setWarner
public void setWarner(EuWarner warner)
- Choose a @see EuWarner for all moves
- Parameters:
- warnerThe - @see EuWarner
All Packages Class Hierarchy This Package Previous Next Index