From 62be1f04cc570c9fab2f6cdfa4bb5982b64bb050 Mon Sep 17 00:00:00 2001 From: Jeena Paradies Date: Wed, 16 Feb 2011 17:23:58 +0100 Subject: [PATCH] changed not_implemented to a function --- src/ggs_coordinator.erl | 16 ++++++++-------- src/ggs_dispatcher.erl | 4 ++-- src/ggs_player.erl | 12 ++++++++---- 3 files changed, 18 insertions(+), 14 deletions(-) diff --git a/src/ggs_coordinator.erl b/src/ggs_coordinator.erl index 4f38c6a..1081077 100644 --- a/src/ggs_coordinator.erl +++ b/src/ggs_coordinator.erl @@ -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 diff --git a/src/ggs_dispatcher.erl b/src/ggs_dispatcher.erl index bc3327a..69d5481 100644 --- a/src/ggs_dispatcher.erl +++ b/src/ggs_dispatcher.erl @@ -20,12 +20,12 @@ %% Port = Integer %% 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 diff --git a/src/ggs_player.erl b/src/ggs_player.erl index b5815af..6eb31c9 100644 --- a/src/ggs_player.erl +++ b/src/ggs_player.erl @@ -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().