Fix mobile game compile errors from recent refactoring

This commit is contained in:
drdev
2014-12-17 02:01:58 +00:00
parent d9abca9538
commit b97b586d2d
7 changed files with 20 additions and 12 deletions

View File

@@ -2195,6 +2195,7 @@ public class Player extends GameEntity implements Comparable<Player> {
controllerCreator = ctrlr;
controller = ctrlr;
view.updateAvatarIndex(this);
view.updateAvatarCardImageKey(this);
view.updateIsAI(this);
view.updateLobbyPlayerName(this);
}

View File

@@ -65,6 +65,13 @@ public class PlayerView extends GameEntityView {
set(TrackableProperty.AvatarIndex, p.getLobbyPlayer().getAvatarIndex());
}
public String getAvatarCardImageKey() {
return get(TrackableProperty.AvatarCardImageKey);
}
void updateAvatarCardImageKey(Player p) {
set(TrackableProperty.AvatarCardImageKey, p.getLobbyPlayer().getAvatarCardImageKey());
}
public FCollectionView<PlayerView> getOpponents() {
return get(TrackableProperty.Opponents);
}

View File

@@ -88,6 +88,7 @@ public enum TrackableProperty {
IsAI(TrackableTypes.BooleanType),
LobbyPlayerName(TrackableTypes.StringType),
AvatarIndex(TrackableTypes.IntegerType),
AvatarCardImageKey(TrackableTypes.StringType),
Opponents(TrackableTypes.PlayerViewCollectionType),
Life(TrackableTypes.IntegerType),
PoisonCounters(TrackableTypes.IntegerType),