private void sendToServer(String message){ CSC.ClientToServerMessage(output, message); } public void MOVEN() { sendToServer("MOVE N"); LOOK(); } public void MOVEW() { sendToServer("MOVE W"); LOOK(); } public void MOVEE() { sendToServer("MOVE E"); LOOK(); } public void MOVES() { sendToServer("MOVE S"); LOOK(); } public void PICKUP() { sendToServer("PICKUP"); } public void HELLO(String inputMessage) { // The Name is a set of characters if (inputMessage.equals(" ") | inputMessage.equals("") | inputMessage == null ){ CSC.ClientToClientMessage(clientGUI, "You Need to enter a Name First"); } else{ sendToServer("HELLO " + inputMessage); } } public void LOOK() { sendToServer("LOOK"); } public void SENDCHAT(String inputMessage) { if (inputMessage.equals(" ") | inputMessage.equals("") | inputMessage == null ){ CSC.ClientToClientMessage(clientGUI, "You Need to enter a Message First"); } else{ sendToServer("CHAT " + inputMessage); } } public void ATTACKN() { sendToServer("ATTACK N"); LOOK(); } public void ATTACKW() { sendToServer("ATTACK W"); LOOK(); } public void ATTACKE() { sendToServer("ATTACK E"); LOOK(); } public void ATTACKS() { sendToServer("ATTACK S"); LOOK(); } public void ENDTURN() { sendToServer("ENDTURN"); } public void SHOUT(String inputMessage) { if (inputMessage.equals(" ") | inputMessage.equals("") | inputMessage == null ){ CSC.ClientToClientMessage(clientGUI, "You Need to enter a Message First"); } else{ sendToServer("SHOUT" + " " + inputMessage); } }