cluedo.info
Class SuspicionInfo

java.lang.Object
  |
  +--cluedo.info.CluedoInfo
        |
        +--cluedo.info.WhoWhereHowInfo
              |
              +--cluedo.info.SuspicionInfo

public class SuspicionInfo
extends WhoWhereHowInfo

A SuspicionRequestInfo contains the suspicion of a player. The Server translates the object into a SuspicionInfo which is broadcasted to all team mates. If a team mate can invalidate the suspicion he will send a SuspicionCardInfo. This will be forwarded to the requesting client by the server. All other team mates receive a SuspicionAnsweredInfo. A SuspicionCardInfo contains the answer of a player to a Suspicion of another player. It contains a single card.

See Also:
CluedoPDU, SuspicionCardInfo, SuspicionAnsweredInfo, Serialized Form

Field Summary
 int answererId
           
 int suspectorId
           
 
Fields inherited from class cluedo.info.WhoWhereHowInfo
how, where, who
 
Fields inherited from class cluedo.info.CluedoInfo
ACCEPTED, CLOSED, DIRECTOR, EXPELLED, INVITED, LOOSER, NUMPLAYERS, OPENED, REJECTED, REMOVED, SERVERID, TEAMMATE, TERMINATED, UNKNOWN, WINNER
 
Constructor Summary
SuspicionInfo(int suspectorId, int answererId, CardInfo who, CardInfo where, CardInfo how)
           
SuspicionInfo(int suspectorId, SuspicionRequestInfo s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

suspectorId

public int suspectorId

answererId

public int answererId
Constructor Detail

SuspicionInfo

public SuspicionInfo(int suspectorId,
                     SuspicionRequestInfo s)

SuspicionInfo

public SuspicionInfo(int suspectorId,
                     int answererId,
                     CardInfo who,
                     CardInfo where,
                     CardInfo how)