de.limdul.cassiopeia.ai.modes
Class BotPlaceCardAnswer

java.lang.Object
  extended by de.limdul.cassiopeia.ai.modes.BotModeAnswer
      extended by de.limdul.cassiopeia.ai.modes.BotPlaceCardAnswer

public class BotPlaceCardAnswer
extends BotModeAnswer

Antwort des Bots auf den Modus PlaceCard.

Author:
Martin Köhler $Revision: 69 $

Constructor Summary
BotPlaceCardAnswer(Position pos, int rotationCount)
          Erzeugt die Antwort.
 
Method Summary
 Position getPosition()
          Liefert die gewünschte Position zurück.
 int getRotationCount()
          Liefert zurück, wie der Bot die Karte drehen will.
 int getType()
          Liefert den Typ der Antwort.
 
Methods inherited from class de.limdul.cassiopeia.ai.modes.BotModeAnswer
getReason, setReason
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BotPlaceCardAnswer

public BotPlaceCardAnswer(Position pos,
                          int rotationCount)
Erzeugt die Antwort.

Parameters:
pos - Wo der Bot die Karte hinsetzen will.
rotationCount - Wie die Karte gedreht ist.
Method Detail

getType

public int getType()
Description copied from class: BotModeAnswer
Liefert den Typ der Antwort.

Specified by:
getType in class BotModeAnswer
Returns:
Der Typ der Antwort.
See Also:
BotModeAnswer.getType()

getPosition

public Position getPosition()
Liefert die gewünschte Position zurück.

Returns:
Die gewünschte Position, wie der Bot die Karte legen will.

getRotationCount

public int getRotationCount()
Liefert zurück, wie der Bot die Karte drehen will.

Returns:
Wie der Bot die Karte drehen will.