public void AddRebelToSector() { RebelShip tempShip = new RebelShip(game, spriteSheet); tempShip.Initialize(sector); overworld.AddOverworldObject(tempShip); }
public void AddRebelShip(Vector2 pos) { RebelShip tmpShip = new RebelShip(game, spriteSheet); tmpShip.Initialize(); tmpShip.position = pos; overworld.AddOverworldObject(tmpShip); }
public void AddRebelShip(Vector2 pos, string levelToStart) { RebelShip tmpShip = new RebelShip(game, spriteSheet); tmpShip.Initialize(); tmpShip.position = pos;; tmpShip.Level = levelToStart; overworld.AddOverworldObject(tmpShip); }
public List <OverworldShip> GetOverworldShips(int number, String type) { List <OverworldShip> shipList = new List <OverworldShip>(); switch (type.ToLower()) { case "rebel": for (int i = 0; i < number; i++) { RebelShip tmpShip = new RebelShip(game, spriteSheet); tmpShip.Initialize(); shipList.Add(tmpShip); } break; } return(shipList); }