Start game button actually starts the game.

main
fjc40 8 years ago
parent 3cc806dc45
commit e3cbb6d482

@ -96,9 +96,8 @@ public class HostController extends Controller {
/**
* Hosts a game
* @throws IOException if socket cannot be connected to
*/
public void hostGamePressed() throws IOException{
public void hostGamePressed() {
try {
this.game = new Event(false);
connectSocket("localhost", 4942);
@ -159,7 +158,8 @@ public class HostController extends Controller {
* Start button pressed. Currently only prints out start
*/
public void startBtnPressed(){
System.out.println("Should start the race. This button is only visible for the host");
//System.out.println("Should start the race. This button is only visible for the host");
hostGamePressed();
}
}

Loading…
Cancel
Save