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

Method handleCommands

src/Graphwar/GameData.java:680–701  ·  view source on GitHub ↗
(String msg)

Source from the content-addressed store, hash-verified

678 }
679
680 private void handleCommands(String msg)
681 {
682 if(msg.startsWith("-"))
683 {
684 if(msg.compareToIgnoreCase("-sayfunc")==0)
685 {
686 sayFunc = true;
687 }
688 else if(msg.compareToIgnoreCase("-stopsayfunc")==0)
689 {
690 sayFunc = false;
691 }
692 else if(msg.compareToIgnoreCase("-shownext")==0)
693 {
694 ((GameScreen)graphwar.getUI().getScreen(Constants.GAME_SCREEN)).setNextMarker(true);
695 }
696 else if(msg.compareToIgnoreCase("-stopshownext")==0)
697 {
698 ((GameScreen)graphwar.getUI().getScreen(Constants.GAME_SCREEN)).setNextMarker(false);
699 }
700 }
701 }
702
703 private void setModeMessage(String[] info) throws Exception
704 {

Callers 1

sendChatMessageMethod · 0.95

Calls 3

getScreenMethod · 0.80
getUIMethod · 0.80
setNextMarkerMethod · 0.45

Tested by

no test coverage detected