de.uni_paderborn.robots.robot.group10
Class Move12s

java.lang.Object
  |
  +--de.uni_paderborn.robots.robot.group10.Move12s
All Implemented Interfaces:
RobotFunctions

public class Move12s
extends java.lang.Object
implements RobotFunctions

This robot is used for testing only.
This robot waits 12 seconds before returning MoveAction!


Field Summary
 CardData c1
          for testing only => illegalArgument
 CardData c2
          for testing only
 CardData[] set
          for testing only
 int[] table
          for testing only => nullpointer
 
Constructor Summary
Move12s()
           
 
Method Summary
 boolean exchangeOk(CardData myCard, CardData otherCard)
          always returns true
 CardData exchangeProposal(CardData[] cards)
          robot never returnes a proposal
 AbstractRobotAction getCommand(RobotData robotData)
          returns MoveAction after 12 seconds
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

table

public int[] table
for testing only => nullpointer

c1

public CardData c1
for testing only => illegalArgument

c2

public CardData c2
for testing only

set

public CardData[] set
for testing only
Constructor Detail

Move12s

public Move12s()
Method Detail

getCommand

public AbstractRobotAction getCommand(RobotData robotData)
returns MoveAction after 12 seconds
Specified by:
getCommand in interface RobotFunctions
Following copied from interface: de.uni_paderborn.robots.robotArenaInterface.RobotFunctions
Parameters:
robotData - current status of the robot
Returns:
a subclass of AbstractRobotAction which contains the robot's next command

exchangeProposal

public CardData exchangeProposal(CardData[] cards)
robot never returnes a proposal
Specified by:
exchangeProposal in interface RobotFunctions
Following copied from interface: de.uni_paderborn.robots.robotArenaInterface.RobotFunctions
Parameters:
cards - set of cards the robot owns
Returns:
a card a robot is willing to change

exchangeOk

public boolean exchangeOk(CardData myCard,
                          CardData otherCard)
always returns true
Specified by:
exchangeOk in interface RobotFunctions
Following copied from interface: de.uni_paderborn.robots.robotArenaInterface.RobotFunctions
Parameters:
myCard - card the robot wants to give away
otherCard - card the robot wants to have
Returns:
true if the robot is willing to change