View Source Kalevala.Character.Foreman (kalevala v0.1.0)

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

@type t() :: %Kalevala.Character.Foreman{
  action_queue: term(),
  callback_module: term(),
  character: term(),
  communication_module: term(),
  controller: term(),
  flash: 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