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

Method setSideMessage

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

Source from the content-addressed store, hash-verified

620 }
621
622 private void setSideMessage(String[] info) throws Exception
623 {
624 int team = Integer.parseInt(info[1]);
625 int playerID = Integer.parseInt(info[2]);
626
627 Player player = this.getPlayer(playerID);
628
629 player.setTeam(team);
630 ((PreGameScreen)graphwar.getUI().getScreen(Constants.PRE_GAME_SCREEN)).updatePlayer(player);
631 }
632
633 private void addPlayerMessage(String[] info) throws Exception
634 {

Callers 1

handleMessageMethod · 0.95

Calls 5

getPlayerMethod · 0.95
setTeamMethod · 0.95
getScreenMethod · 0.80
getUIMethod · 0.80
updatePlayerMethod · 0.45

Tested by

no test coverage detected