public void spawnMinion() { Minion minion = new Minion(); minion.setPosition(spawnPoint); addMinion(minion); minion.setPath(minionPath.Clone()); }
public void addMinion(Minion minion) { minions.Add(minion); minion.setContainingMap(this); }
protected override void Update(GameTime gameTime) { base.Update(gameTime); Input.Update(); if (Input.IsKeyPressed(Keys.I)) { playerMinion = new Minion(); map.addMinion(playerMinion); } updateCamera(); map.update(); }