Class PlayerVsPlayerChallenge
java.lang.Object
games.stendhal.server.core.rp.pvp.PlayerVsPlayerChallenge
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
Two Challenges are equal iff opened, challenger and challenged are equals.long
int
hashCode()
boolean
boolean
isInvolved(Player player)
Checks if a player is involved into this challengetoString()
-
Constructor Details
-
PlayerVsPlayerChallenge
-
-
Method Details
-
equals
Two Challenges are equal iff opened, challenger and challenged are equals. -
hashCode
public int hashCode() -
toString
-
isAccepted
public boolean isAccepted()- Returns:
- true iff the challenged player has accepted the challenge
-
accept
-
isInvolved
Checks if a player is involved into this challenge- Parameters:
the
- player to check- Returns:
- true if player equals challenged or challenger
-
getOpened
public long getOpened()- Returns:
- the turn number in which this challenge was opened
-
getChallenger
- Returns:
- the player who started this challenge
-
getChallenged
- Returns:
- the player who was challenged
-