Example #1
0
 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();
 }
Example #2
0
 public void reset()
 {
     this.m_player = new Player();
     this.currentWave = -1;
 }
Example #3
0
 public Player spawnPlayer(Point inPosition)
 {
     Player p = new Player();
     this.getFieldAt(inPosition).setEntity(p);
     p.move(inPosition);
     return p;
 }