Islands.Vue.Client.Player (Islands Vue Client v0.1.14) View Source

Creates a player struct for the Game of Islands.

Link to this section Summary

Link to this section Types

Specs

t() :: %Islands.Vue.Client.Player{
  game_name: Islands.Game.name() | nil,
  gender: Islands.Player.gender(),
  mode: :manual | :auto,
  pause: 0..10000,
  player_id: Islands.PlayerID.t() | nil,
  player_name: Islands.Player.name()
}

Link to this section Functions

Link to this function

new(player_name, gender)

View Source

Specs

Link to this function

switch_mode(player, mode, pause)

View Source

Specs

switch_mode(t(), :manual | :auto, 0..10000) :: t()
Link to this function

update(player, game_name, player_id)

View Source

Specs

update(t(), Islands.Game.name(), Islands.PlayerID.t()) :: t()