com.bolinfest.prisonerbot
Class Buddy
java.lang.Object
com.bolinfest.prisonerbot.Buddy
public class Buddy
- extends Object
Buddy
is a dumb class that holds information about a Buddy.
It should not have any functionality associated with it
beyond that of a typical Java Bean.
- Author:
- mbolin
Constructor Summary |
Buddy()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DOES_NOT_EXIST
public static final int DOES_NOT_EXIST
- See Also:
- Constant Field Values
ASKED_IF_WANTS_TO_PLAY
public static final int ASKED_IF_WANTS_TO_PLAY
- See Also:
- Constant Field Values
WAITING_FOR_OPPONENT
public static final int WAITING_FOR_OPPONENT
- See Also:
- Constant Field Values
NEGOTIATING_NUM_ROUNDS
public static final int NEGOTIATING_NUM_ROUNDS
- See Also:
- Constant Field Values
WAITING_FOR_OPPONENT_NUM_ROUNDS
public static final int WAITING_FOR_OPPONENT_NUM_ROUNDS
- See Also:
- Constant Field Values
GAME_OVER
public static final int GAME_OVER
- See Also:
- Constant Field Values
IN_GAME
public static final int IN_GAME
- See Also:
- Constant Field Values
IN_GAME_WAITING
public static final int IN_GAME_WAITING
- See Also:
- Constant Field Values
Buddy
public Buddy()
getBuddyState
public int getBuddyState()
setBuddyState
public void setBuddyState(int buddyState)
getName
public String getName()
setName
public void setName(String name)
getTimeLastMessageReceived
public long getTimeLastMessageReceived()
setTimeLastMessageReceived
public void setTimeLastMessageReceived(long timeLastMessageSent)
getLastMessageReceived
public String getLastMessageReceived()
setLastMessageReceived
public void setLastMessageReceived(String lastMessageSent)