model.status

package model.status

Members list

Type members

Classlikes

class ImmutableStatusBuilder(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]) extends StatusBuilder

An immutable implementation of model.status.StatusBuilder

An immutable implementation of model.status.StatusBuilder

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

Supertypes
class Object
trait Matchable
class Any
class MutableStatusBuilder(var players: List[Player], var stack: List[Card], var trump: Option[Card], var amount: Int, var turn: Turn, var defended: List[Card], var undefended: List[Card], var used: List[Card], var denied: Boolean, var passed: Option[Player]) extends StatusBuilder

A mutable implementation of model.status.StatusBuilder

A mutable implementation of model.status.StatusBuilder

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

Supertypes
class Object
trait Matchable
class Any
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.

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
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Status

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Status.type

A builder for model.status.Status

A builder for model.status.Status

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes