Removed static things, fixed astar bugs. only thing left is bomber attacking ronge
This commit is contained in:
parent
91c3e77465
commit
526ce82d40
33 changed files with 293 additions and 196 deletions
|
|
@ -7,7 +7,7 @@ import ei.game.gamestate.EndGameState;
|
|||
|
||||
public class PlayerHandler {
|
||||
// The instance of this class
|
||||
private static PlayerHandler instance;
|
||||
//private static PlayerHandler instance;
|
||||
// The player list
|
||||
private ArrayList<Player> players;
|
||||
private Node playerNode;
|
||||
|
|
@ -104,13 +104,13 @@ public class PlayerHandler {
|
|||
* Returns the instance of this class
|
||||
*
|
||||
* @return The instance
|
||||
*/
|
||||
|
||||
public static PlayerHandler getInstance(){
|
||||
if(instance == null){
|
||||
instance = new PlayerHandler();
|
||||
}
|
||||
return instance;
|
||||
}
|
||||
}*/
|
||||
|
||||
public void clear(){
|
||||
players.clear();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue