Start game button actually starts the game.
This commit is contained in:
@@ -96,9 +96,8 @@ public class HostController extends Controller {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Hosts a game
|
* Hosts a game
|
||||||
* @throws IOException if socket cannot be connected to
|
|
||||||
*/
|
*/
|
||||||
public void hostGamePressed() throws IOException{
|
public void hostGamePressed() {
|
||||||
try {
|
try {
|
||||||
this.game = new Event(false);
|
this.game = new Event(false);
|
||||||
connectSocket("localhost", 4942);
|
connectSocket("localhost", 4942);
|
||||||
@@ -159,7 +158,8 @@ public class HostController extends Controller {
|
|||||||
* Start button pressed. Currently only prints out start
|
* Start button pressed. Currently only prints out start
|
||||||
*/
|
*/
|
||||||
public void startBtnPressed(){
|
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();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user