Internet Chess ToolKit
v0.2.0

ictk.boardgame.chess.net.ics.event
Class ICSChallengeEvent

java.lang.Object
  extended byictk.boardgame.chess.net.ics.event.ICSEvent
      extended byictk.boardgame.chess.net.ics.event.ICSChallengeEvent

public class ICSChallengeEvent
extends ICSEvent

The is notification that someone has challenged you to a game. Usually this event is the result of someome issuing the "match" command against you.


Field Summary
 
Fields inherited from class ictk.boardgame.chess.net.ics.event.ICSEvent
AUTO_SALUTE_EVENT, AVAIL_INFO_EVENT, BOARD_SAY_EVENT, BOARD_UPDATE_EVENT, CHANNEL_EVENT, DEBUG, GAME_CREATED_EVENT, GAME_NOTIFICATION_EVENT, GAME_RESULT_EVENT, HISTORY_EVENT, KIBITZ_EVENT, MATCH_REQUEST_EVENT, MOVE_LIST_EVENT, NUM_EVENTS, PLAYER_CONNECTION_EVENT, PLAYER_NOTIFICATION_EVENT, QTELL_EVENT, SAY_EVENT, SEEK_AD_EVENT, SEEK_AD_READABLE_EVENT, SEEK_CLEAR_EVENT, SEEK_REMOVE_EVENT, SEEK_REMOVE_READABLE_EVENT, SHOUT_EVENT, TAKEBACK_REQUEST_EVENT, TELL_EVENT, TOURNAMENT_CHANNEL_EVENT, UNKNOWN_EVENT, USER_DEFINED_EVENT, WHISPER_EVENT
 
Constructor Summary
ICSChallengeEvent()
           
 
Method Summary
 java.lang.String getChallenged()
           
 ICSRating getChallengedRating()
           
 java.lang.String getChallenger()
           
 ICSRating getChallengerRating()
           
 int getIncrementTime()
           
 int getInitialTime()
           
 java.lang.String getReadable()
          returns a readable form of this event.
 ICSVariant getVariant()
           
 boolean isAbuser()
           
 boolean isColorSpecified()
           
 boolean isComputer()
           
 boolean isRated()
           
 boolean isWhite()
           
 void setAbuser(boolean abuser)
           
 void setChallenged(java.lang.String challenged)
           
 void setChallengedRating(ICSRating challengedRating)
           
 void setChallenger(java.lang.String challenger)
           
 void setChallengerRating(ICSRating challengerRating)
           
 void setColorSpecified(boolean isColorSpecified)
           
 void setComputer(boolean computer)
           
 void setIncrementTime(int incr)
           
 void setInitialTime(int time)
           
 void setRated(boolean rated)
           
 void setVariant(ICSVariant variant)
           
 void setWhite(boolean isWhite)
           
 
Methods inherited from class ictk.boardgame.chess.net.ics.event.ICSEvent
DEBUG_getOriginal, getEventParser, getEventType, getMessage, getServer, getTimestamp, isFake, setEventParser, setEventType, setFake, setMessage, setOriginal, setServer, setTimestamp, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ICSChallengeEvent

public ICSChallengeEvent()
Method Detail

getChallenger

public java.lang.String getChallenger()

getChallengerRating

public ICSRating getChallengerRating()

isColorSpecified

public boolean isColorSpecified()

isWhite

public boolean isWhite()

getChallenged

public java.lang.String getChallenged()

getChallengedRating

public ICSRating getChallengedRating()

isRated

public boolean isRated()

getVariant

public ICSVariant getVariant()

getInitialTime

public int getInitialTime()

getIncrementTime

public int getIncrementTime()

isComputer

public boolean isComputer()

isAbuser

public boolean isAbuser()

setChallenger

public void setChallenger(java.lang.String challenger)

setChallengerRating

public void setChallengerRating(ICSRating challengerRating)

setColorSpecified

public void setColorSpecified(boolean isColorSpecified)

setWhite

public void setWhite(boolean isWhite)

setChallenged

public void setChallenged(java.lang.String challenged)

setChallengedRating

public void setChallengedRating(ICSRating challengedRating)

setRated

public void setRated(boolean rated)

setVariant

public void setVariant(ICSVariant variant)

setInitialTime

public void setInitialTime(int time)

setIncrementTime

public void setIncrementTime(int incr)

setComputer

public void setComputer(boolean computer)

setAbuser

public void setAbuser(boolean abuser)

getReadable

public java.lang.String getReadable()
Description copied from class: ICSEvent
returns a readable form of this event. Typically this is similar to the original text sent by the server, but it does not have to be.

Specified by:
getReadable in class ICSEvent

Submit a bug or feature
Visit the Website
Internet Chess ToolKit is licensed under the GPL v2 .