fixed little thingy
This commit is contained in:
parent
02b0dab13d
commit
586b70a9ba
2 changed files with 16 additions and 2 deletions
|
|
@ -22,6 +22,8 @@ public class InGameState extends GameState{
|
|||
private InGameHud hud;
|
||||
private static Map map;
|
||||
private Sound music;
|
||||
private static InGameMouseInput mouse;
|
||||
private static InGameKeyboardInput keyboard;
|
||||
|
||||
public InGameState(String name){
|
||||
super(name);
|
||||
|
|
@ -39,8 +41,8 @@ public class InGameState extends GameState{
|
|||
map.init("data/map/default");
|
||||
|
||||
HumanPlayer player = new HumanPlayer();
|
||||
InGameMouseInput mouse = new InGameMouseInput(map,player);
|
||||
InGameKeyboardInput keyboard = new InGameKeyboardInput();
|
||||
mouse = new InGameMouseInput(map,player);
|
||||
keyboard = new InGameKeyboardInput();
|
||||
super.getInput().addInput(mouse);
|
||||
super.getInput().addInput(keyboard);
|
||||
|
||||
|
|
@ -101,4 +103,9 @@ public class InGameState extends GameState{
|
|||
public static Map getMap() {
|
||||
return map;
|
||||
}
|
||||
|
||||
public void input(boolean b){
|
||||
mouse.setEnabled(b);
|
||||
keyboard.setEnabled(b);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue