de.torfu.kabayellow.common
Class ActionCardAnyGate

java.lang.Object
  |
  +--de.torfu.kabayellow.common.Action
        |
        +--de.torfu.kabayellow.common.ActionCard
              |
              +--de.torfu.kabayellow.common.ActionCardKnight
                    |
                    +--de.torfu.kabayellow.common.ActionCardAnyGate
All Implemented Interfaces:
java.lang.Cloneable

public class ActionCardAnyGate
extends ActionCardKnight

Gehen Sie mit Ihrem Ritter in ein benachbartes Tor und kommen Sie aus einem beliebigen Tor dieser Burg auf ein freies Feld wieder heraus.

Sie können dabei beliebig viele Ebenen überwinden, solange Sie wieder aus einem Tor heraustreten und das neue Feld frei ist. Sie dürfen Ihren Ritter nicht auf ein beliebiges Feld der Burg stellen, sondern müssen aus einem Tor heraustreten, das sich neben dem Baustein befindet, auf den Sie ziehen möchten.

Start- und Zielpunkt müssen mit Action.setPoints(Point, Point) oder mit Action.setStartPoint(Point) und Action.setEndPoint(Point) festgelegt werden.


Field Summary
 
Fields inherited from class de.torfu.kabayellow.common.ActionCard
ANY_GATE, EXTRA_STONE, JUMP, MOVE_DIAGONAL, MOVE_STONE, REACTIVATE_KNIGHT, SEVEN_POINTS, SIX_POINTS, STONE_UNDER_KNIGHT, TWO_LEVELS, UNKNOWN
 
Fields inherited from class de.torfu.kabayellow.common.Action
ERROR_ACTIONCARD_IS_NEW, ERROR_CARD_NOT_NEEDED, ERROR_CASTLE_PROPERTY_VIOLATED, ERROR_CASTLE_SPLIT, ERROR_CODE_NONE, ERROR_DOESNT_HAVE_ACTIONCARD, ERROR_ILLEGAL_MOVE, ERROR_ILLEGAL_MOVE_THROUGH_CASTLE, ERROR_IMPOSSIBLE_MOVE, ERROR_KNIGHT_ON_TARGET_CELL, ERROR_MOVE_TOO_LONG, ERROR_NEW_CASTLE, ERROR_NO_ACTIONPOINTS_LEFT, ERROR_NO_ADJACENT_KNIGHT, ERROR_NO_CASTLE, ERROR_NO_KNIGHT_FOUND, ERROR_NO_MORE_CARDS_LEFT, ERROR_NO_MORE_KNIGHTS_LEFT, ERROR_NO_STONES_LEFT, ERROR_NO_STRAIGHT_MOVE, ERROR_NOT_ENOUGH_CASTLES, ERROR_ONLY_TWO_CARDS_ALLOWED, ERROR_PLAY_ONLY_ONE_CARD, ERROR_TOO_FEW_CASTLE, ERROR_TOO_HIGH, ERROR_WRONG_ROUND
 
Constructor Summary
ActionCardAnyGate(int number)
           
 
Method Summary
 int getErrorCode(Game game)
          Überprüft, ob der Zug den Regeln entspricht.
 java.lang.String getText()
          Gibt den Text, der auf der Karte steht aus
 
Methods inherited from class de.torfu.kabayellow.common.ActionCardKnight
getPossibleStartPoints
 
Methods inherited from class de.torfu.kabayellow.common.ActionCard
canPlayCard, create, createUnknown, getColor, getNumber, getType, isActionCard, toServer, toString
 
Methods inherited from class de.torfu.kabayellow.common.Action
clone, execute, getActionMoveKnightsForLongMove, getCost, getCostsOfPossibleMoves, getEndPoint4Move, getError, getID, getPointFromIndex, getPossibleEndPoints, getPossibleLocations, getPossibleLongMoves, getPossibleMoves, getPossibleSetKnight, getStartPoint, getStartPoint4Move, hasStartPoint, isBuyCardAction, isKingAction, isKnightAction, isLegal, isnewKnightAction, isStoneAction, needsOnePoint, needsParameters, needsTwoPoints, setEndPoint, setID, setPoint, setPoint, setPoints, setStartPoint
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ActionCardAnyGate

public ActionCardAnyGate(int number)
Method Detail

getText

public java.lang.String getText()
Gibt den Text, der auf der Karte steht aus

Specified by:
getText in class ActionCard

getErrorCode

public int getErrorCode(Game game)
Überprüft, ob der Zug den Regeln entspricht.

Specified by:
getErrorCode in class Action