MCPcopy Create free account
hub / github.com/catabriga/graphwar / removeSoldierMessage

Method removeSoldierMessage

src/Graphwar/GameData.java:553–561  ·  view source on GitHub ↗
(String[] info)

Source from the content-addressed store, hash-verified

551 }
552
553 private void removeSoldierMessage(String[] info) throws Exception
554 {
555 int playerID = Integer.parseInt(info[1]);
556
557 Player player = this.getPlayer(playerID);
558
559 player.setSoldiers(player.getNumSoldiers()-1);
560 ((PreGameScreen)graphwar.getUI().getScreen(Constants.PRE_GAME_SCREEN)).updatePlayer(player);
561 }
562
563 private void removePlayerMessage(String[] info) throws Exception
564 {

Callers 1

handleMessageMethod · 0.95

Calls 6

getPlayerMethod · 0.95
setSoldiersMethod · 0.95
getNumSoldiersMethod · 0.95
getScreenMethod · 0.80
getUIMethod · 0.80
updatePlayerMethod · 0.45

Tested by

no test coverage detected