mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
update ManaShards event
This commit is contained in:
@@ -470,6 +470,13 @@ public class MatchController extends AbstractGuiGame {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateShards(final Iterable<PlayerView> livesUpdate) {
|
||||
for (final PlayerView p : livesUpdate) {
|
||||
view.getPlayerPanel(p).updateShards();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateZones(final Iterable<PlayerZoneUpdate> zonesToUpdate) {
|
||||
view.updateZones(zonesToUpdate);
|
||||
|
||||
@@ -260,6 +260,10 @@ public class VPlayerPanel extends FContainer {
|
||||
lblLife.update();
|
||||
}
|
||||
|
||||
public void updateShards() {
|
||||
lblLife.updateShards();
|
||||
}
|
||||
|
||||
public void updateManaPool() {
|
||||
tabManaPool.update();
|
||||
}
|
||||
@@ -506,6 +510,9 @@ public class VPlayerPanel extends FContainer {
|
||||
Gdx.input.vibrate(Math.min(vibrateDuration, 2000));
|
||||
}
|
||||
}
|
||||
private void updateShards() {
|
||||
manaShards = player.getNumManaShards();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean tap(float x, float y, int count) {
|
||||
|
||||
Reference in New Issue
Block a user