File tree 3 files changed +8
-0
lines changed
3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ void InitMessage::update_game(Game *game) {
26
26
27
27
json json_game_const = root[" gameConstants" ];
28
28
game->game_constants_ .max_ap_ = json_game_const[" maxAP" ];
29
+ game->game_constants_ .ap_addition_ = json_game_const[" apAddition" ];
29
30
game->game_constants_ .max_turns_ = json_game_const[" maxTurns" ];
30
31
game->game_constants_ .turn_timeout_ = json_game_const[" turnTimeout" ];
31
32
game->game_constants_ .pick_timeout_ = json_game_const[" pickTimeout" ];
Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ int GameConstants::getMaxAp() const{
4
4
return max_ap_;
5
5
}
6
6
7
+ int GameConstants::getApAddition () const {
8
+ return ap_addition_;
9
+ }
10
+
7
11
int GameConstants::getMaxTurns () const {
8
12
return max_turns_;
9
13
}
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ class GameConstants {
10
10
11
11
int getMaxAp () const ;
12
12
13
+ int getApAddition () const ;
14
+
13
15
int getMaxTurns () const ;
14
16
15
17
int getTurnTimeout () const ;
@@ -30,6 +32,7 @@ class GameConstants {
30
32
31
33
private:
32
34
int max_ap_;
35
+ int ap_addition_;
33
36
int max_turns_;
34
37
int turn_timeout_;
35
38
int pick_timeout_;
You can’t perform that action at this time.
0 commit comments