View Source Perudex.NotifierServer behaviour (Perudex v0.7.0)

This module is a GenServer to handle communication going to the players by defining an interface a module need to implements.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Link to this section Callbacks

Link to this callback

illegal_move(callback_arg, player_id)

View Source
@callback illegal_move(Perudex.GameServer.callback_arg(), Perudex.Game.player_id()) ::
  any()
Link to this callback

invalid_bid(callback_arg, player_id)

View Source
Link to this callback

last_move( callback_arg, player_id, player_id, move_result )

View Source
Link to this callback

loser(callback_arg, player_id, player_id)

View Source
Link to this callback

move(callback_arg, player_id, t)

View Source
Link to this callback

new_hand(callback_arg, player_id, t)

View Source
Link to this callback

phase_change(callback_arg, player_id, game_phase)

View Source
Link to this callback

reveal_players_hands( callback_arg, player_id, list, {} )

View Source
Link to this callback

start_game(callback_arg, player_id, list)

View Source
Link to this callback

unauthorized_move(callback_arg, player_id)

View Source
@callback unauthorized_move(Perudex.GameServer.callback_arg(), Perudex.Game.player_id()) ::
  any()
Link to this callback

winner(callback_arg, player_id, player_id)

View Source

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

publish(game_id, player_id, instruction)

View Source
@spec publish(any(), any(), Perudex.Game.player_instruction()) :: :ok