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


Variable Index

 o in
 o inMode
 o out
 o outMode
 o warner

Constructor Index

 o EuMove()

Method Index

 o executeMacro(int, EuLab, EuWrapper)
Executes the move in macro mode, possibly affecting the passed
 o executeMain(int, EuLab)
Executes the move, possibly affecting the passed
 o exMacro(int, EuLab, EuWrapper)
 o exMain(int, EuLab)
 o name()
 o number()
 o setWarner(EuWarner)
Choose a
 o toString()

Variables

 o in
 protected EuWrapper in
 o out
 protected EuWrapper out
 o inMode
 protected int inMode
 o outMode
 protected int outMode
 o warner
 protected static EuWarner warner

Constructors

 o EuMove
 public EuMove()

Methods

 o 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
 o 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
 o exMain
 protected abstract int exMain(int segment,
                               EuLab lab) throws LeaException
 o exMacro
 protected abstract int exMacro(int segment,
                                EuLab lab,
                                EuWrapper caller) throws LeaException
 o name
 public abstract String name()
Returns:
The LEA name of this command
 o number
 public abstract int number()
Returns:
A number representing this move internally
 o toString
 public abstract String toString()
Returns:
A string representation of this LEA command
Overrides:
toString in class Object
 o 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