public class IllegalCardException
extends java.lang.Exception
| Constructor and Description |
|---|
IllegalCardException(int playerNumber,
Game.PlayStatus reason)
Constructor taking the index of the player playing the illegal card
and the reason why it's illegal.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getPlayerNumber()
Accessor for index of player playing the illegal card.
|
Game.PlayStatus |
getReason()
Accessor for reason why the card is illegal.
|
public IllegalCardException(int playerNumber,
Game.PlayStatus reason)
playerNumber - index of playerreason - why it's illegalpublic int getPlayerNumber()
public Game.PlayStatus getReason()