diff --git a/client/src/Core/Message/Parse/InitMessage.cpp b/client/src/Core/Message/Parse/InitMessage.cpp index 1b34b3b..f51cd84 100644 --- a/client/src/Core/Message/Parse/InitMessage.cpp +++ b/client/src/Core/Message/Parse/InitMessage.cpp @@ -26,6 +26,7 @@ void InitMessage::update_game(Game *game) { json json_game_const = root["gameConstants"]; game->game_constants_.max_ap_ = json_game_const["maxAP"]; + game->game_constants_.ap_addition_ = json_game_const["apAddition"]; game->game_constants_.max_turns_ = json_game_const["maxTurns"]; game->game_constants_.turn_timeout_ = json_game_const["turnTimeout"]; game->game_constants_.pick_timeout_ = json_game_const["pickTimeout"]; diff --git a/client/src/Model/GameConstants.cpp b/client/src/Model/GameConstants.cpp index a82c3cf..bc601e4 100644 --- a/client/src/Model/GameConstants.cpp +++ b/client/src/Model/GameConstants.cpp @@ -4,6 +4,10 @@ int GameConstants::getMaxAp() const{ return max_ap_; } +int GameConstants::getApAddition() const { + return ap_addition_; +} + int GameConstants::getMaxTurns() const{ return max_turns_; } diff --git a/client/src/Model/GameConstants.h b/client/src/Model/GameConstants.h index c918e35..482bcfc 100644 --- a/client/src/Model/GameConstants.h +++ b/client/src/Model/GameConstants.h @@ -10,6 +10,8 @@ class GameConstants { int getMaxAp() const; + int getApAddition() const; + int getMaxTurns() const; int getTurnTimeout() const; @@ -30,6 +32,7 @@ class GameConstants { private: int max_ap_; + int ap_addition_; int max_turns_; int turn_timeout_; int pick_timeout_;