changed not_implemented to a function
This commit is contained in:
parent
63170fd0de
commit
62be1f04cc
3 changed files with 18 additions and 14 deletions
|
@ -12,36 +12,36 @@
|
|||
|
||||
%% @doc Starts the coordinator process.
|
||||
start_link() ->
|
||||
not_implemented.
|
||||
not_implemented().
|
||||
|
||||
%% @doc Terminates the coordinator process.
|
||||
stop(_Reason) ->
|
||||
not_implemented.
|
||||
not_implemented().
|
||||
|
||||
%% @doc Joins table with specified token
|
||||
join_table(_Token) ->
|
||||
not_implemented.
|
||||
not_implemented().
|
||||
|
||||
%% @doc Create a new table
|
||||
create_table(_Params) ->
|
||||
not_implemented.
|
||||
not_implemented().
|
||||
|
||||
%% @doc This is the first function run by a newly created players.
|
||||
%% Generates a unique token that we use to identify the player.
|
||||
join_lobby() ->
|
||||
not_implemented.
|
||||
not_implemented().
|
||||
|
||||
%% @doc Act as a supervisor to player and respawns player when it gets bad data.
|
||||
respawn_player(_Player, _Socket) ->
|
||||
not_implemented.
|
||||
not_implemented().
|
||||
|
||||
%% @doc Act as a supervisor to table and respawns table when it gets bad data.
|
||||
respawn_table(_Token) ->
|
||||
not_implemented.
|
||||
not_implemented().
|
||||
|
||||
%% @doc Removes a player from coordinator.
|
||||
remove_player(From, Player) ->
|
||||
not_implemented.
|
||||
not_implemented().
|
||||
|
||||
%% gen_server callbacks
|
||||
|
||||
|
|
|
@ -20,12 +20,12 @@
|
|||
%% Port = Integer
|
||||
%% Pid = #<Pid>
|
||||
start_link(Port) ->
|
||||
not_implemented.
|
||||
not_implemented().
|
||||
|
||||
%% @doc Stops the dispatcher with the specified reason.
|
||||
%% @spec stop(Reason) -> ok.
|
||||
%% Reason = String
|
||||
stop(Reason) -> not_implemented.
|
||||
stop(Reason) -> not_implemented().
|
||||
|
||||
|
||||
%% gen_server callbacks
|
||||
|
|
|
@ -12,21 +12,25 @@
|
|||
%% an argument for storage and later usage. Creates a unique player token
|
||||
%% identifying the player.
|
||||
%% @spec start_link(Socket::socket()) -> ok
|
||||
start_link(Socket) -> not_implemented.
|
||||
start_link(Socket) ->
|
||||
not_implemented().
|
||||
|
||||
|
||||
%% @doc Handles incoming messages from the GGS and forwards them through the player
|
||||
%% socket to the player.
|
||||
%% @spec notify(Player::Pid(), From::Pid(),
|
||||
%% {Command::String(), Message::string()}) -> ok
|
||||
notify(Player, From, Message) -> not_implemented.
|
||||
notify(Player, From, Message) ->
|
||||
not_implemented().
|
||||
|
||||
%% @doc Get the player token uniquely representing the player.
|
||||
%% @spec get_token() -> string()
|
||||
get_token() -> not_implemented.
|
||||
get_token() ->
|
||||
not_implemented().
|
||||
|
||||
|
||||
%% @doc Properly terminates the player process. The player token will be destroyed.
|
||||
%% Makes table token unreferenced and destroys the process in the end.
|
||||
%% @spec stop(Table::pid()) -> Reason::string()
|
||||
stop(Table) -> not_implemented.
|
||||
stop(Table) ->
|
||||
not_implemented().
|
||||
|
|
Reference in a new issue