kalevala v0.1.0 Kalevala.Character.Foreman View Source

Session Foreman

Manages data flowing from the player into the game.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Handle the conn struct after processing

Start a new foreman for a non-player (character run by the world)

Start a new foreman for a connecting player

Link to this section Types

Link to this type

t()

View Source
t() :: %Kalevala.Character.Foreman{
  action_queue: term(),
  callback_module: term(),
  character: term(),
  communication_module: term(),
  controller: term(),
  private: term(),
  processing_action: term(),
  session: term(),
  supervisor_name: term()
}

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

handle_conn(conn, state)

View Source

Handle the conn struct after processing

Link to this function

start_non_player(options)

View Source

Start a new foreman for a non-player (character run by the world)

Link to this function

start_player(protocol_pid, options)

View Source

Start a new foreman for a connecting player