public final class GameUpdateApiResponse extends Object
| Constructor and Description |
|---|
GameUpdateApiResponse(int turn,
int[] mapDiff,
int[] citiesDiff,
int[] generals,
int attackIndex,
ScoreApiResponse[] scores,
double[] stars) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
getAttackIndex()
Officially "the attackIndex field is unnecessary for bots -- it's used by our client to show/hide attack arrows when appropriate."
|
int[] |
getCitiesDiff()
Diff to update the array with cities representation.
|
int[] |
getGenerals()
Array of indexes of generals, indexed with player index.
|
int[] |
getMapDiff()
Diff to update the array with map (tiles/armies) representation.
|
ScoreApiResponse[] |
getScores()
Array indexed by player index, includes things shown in the score table (titles, army, is dead).
|
double[] |
getStars() |
int |
getTurn() |
int |
hashCode() |
String |
toString() |
@ConstructorProperties(value={"turn","mapDiff","citiesDiff","generals","attackIndex","scores","stars"}) public GameUpdateApiResponse(int turn, int[] mapDiff, int[] citiesDiff, int[] generals, int attackIndex, ScoreApiResponse[] scores, double[] stars)
public int getTurn()
public int[] getMapDiff()
MapPatcher to apply the diff.public int[] getCitiesDiff()
MapPatcher to apply the diff.public int[] getGenerals()
public int getAttackIndex()
public ScoreApiResponse[] getScores()
public double[] getStars()
Copyright © 2017. All rights reserved.