com.bolinfest.prisonerbot
Class Buddy

java.lang.Object
  extended by 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

Field Summary
static int ASKED_IF_WANTS_TO_PLAY
           
static int DOES_NOT_EXIST
           
static int GAME_OVER
           
static int IN_GAME
           
static int IN_GAME_WAITING
           
static int NEGOTIATING_NUM_ROUNDS
           
static int WAITING_FOR_OPPONENT
           
static int WAITING_FOR_OPPONENT_NUM_ROUNDS
           
 
Constructor Summary
Buddy()
           
 
Method Summary
 int getBuddyState()
           
 String getLastMessageReceived()
           
 String getName()
           
 long getTimeLastMessageReceived()
           
 void setBuddyState(int buddyState)
           
 void setLastMessageReceived(String lastMessageSent)
           
 void setName(String name)
           
 void setTimeLastMessageReceived(long timeLastMessageSent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Buddy

public Buddy()
Method Detail

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)