Skip to content
Snippets Groups Projects
Commit 211744ed authored by Keith Charlene Tan Esmena's avatar Keith Charlene Tan Esmena
Browse files

Made Lobby

parent f02b4ddd
No related branches found
No related tags found
No related merge requests found
Showing
with 29 additions and 0 deletions
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
File added
No preview for this file type
No preview for this file type
......@@ -26,6 +26,7 @@ import com.mygdx.game.controller.InputHandler;
import com.mygdx.game.model.Boundary;
import com.mygdx.game.model.Ball;
import com.mygdx.game.model.Model;
import com.mygdx.game.view.Lobby;
import com.mygdx.game.view.View;
//public class Golf extends ApplicationAdapter implements ContactListener, InputProcessor {
......@@ -35,12 +36,14 @@ public class Golf extends ApplicationAdapter {
Model model;
InputHandler input; //Litt jalla å ha den her
View view;
Lobby lobby;
@Override
public void create () {
model = Model.getInstance();
view = View.getInstance();
input = InputHandler.getInstance();
lobby = Lobby.getInstance();
Gdx.input.setInputProcessor(input);
}
......
package com.mygdx.game.view;
import com.mygdx.game.model.Player;
import java.util.List;
public class Lobby {
private List<Player> players;
private static Lobby INSTANCE;
private Lobby lobby;
public Lobby() {
this.lobby = Lobby.getInstance();
}
public static Lobby getInstance(){
if (INSTANCE == null){
INSTANCE = new Lobby();
}
return INSTANCE;
}
public void getPlayers() {
}
}
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment