private GameManager() { s_instance = this; this.loadWaves(); this.m_map = new Map(Directory.GetCurrentDirectory() + Path.DirectorySeparatorChar + "map.txt"); this.m_player = new Player(); InputManager.getInstance(); this.start(); }
public void reset() { this.m_player = new Player(); this.currentWave = -1; }
public Player spawnPlayer(Point inPosition) { Player p = new Player(); this.getFieldAt(inPosition).setEntity(p); p.move(inPosition); return p; }