Status

model.status.Status
See theStatus companion object
case class Status(players: List[Player], stack: List[Card], trump: Option[Card], amount: Int, turn: Turn, defended: List[Card], undefended: List[Card], used: List[Card], denied: Boolean, passed: Option[Player])

Contains the current status of the game.

Value parameters

amount

the amount of cards each player should have while the stack is non-empty, initially set to 0.

defended

a list of all currently defended cards, initially set to Nil

denied

whether the player with the turn model.turn.FirstlyAttacking denied his attack, initially set to false

passed

the player who initially passed cards of the same rank to the next player, initially set to None

players

a list of all players, initially set to Nil

stack

a list of all cards, representing the stack, initially set to Nil

trump

an Option containing the trump. The trump is the last element on the stack, initially set to None.

turn

the current turn, initially set model.Turn.Uninitialized

undefended

a list of all currently undefended cards, initially set to Nil

used

a list of all currently cards used to defend, initially set to Nil

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def toXml: Elem

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product