de.uni_paderborn.robots.actions
Class PutAction

java.lang.Object
  |
  +--de.uni_paderborn.robots.actions.AbstractAction
        |
        +--de.uni_paderborn.robots.actions.PutAction

public class PutAction
extends AbstractAction

Action class to put a card from the portable to the arena


Field Summary
private  Card card
          the card to put
 
Constructor Summary
PutAction(Card card)
          to put a card
 
Method Summary
 void doAction(Robot robot)
          the card will be put onto the field the robot looks to
 Card getCard()
          get method of the card
 void setCard(Card card)
          set method of the card
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

card

private Card card
the card to put
Constructor Detail

PutAction

public PutAction(Card card)
to put a card
Parameters:
card - the card to be put
Method Detail

setCard

public void setCard(Card card)
set method of the card
Parameters:
card -  

getCard

public Card getCard()
get method of the card
Returns:
card

doAction

public void doAction(Robot robot)
the card will be put onto the field the robot looks to
Overrides:
doAction in class AbstractAction
Parameters:
robot - the Robot for which doAction should be executed