public void SpawnPod(Zone pos, int nbToSpawn = 1) { for (int i = 0; i < nbToSpawn; i++) { var pod = new Pod(pos); OwnPods.Add(pod); SpecializedPods.AddPod(pod); pos.ReceivePod(pod); } }
public void KillPod(Pod p) { if (p == null) { return; } if (!OwnPods.Remove(p)) { Console.Error.WriteLine("[Error] can't remove pod at " + p.Position.Id + " from OwnPods"); } }
public void UpdateSubGroups() { ClearSpecializedPods(); OwnPods.ForEach(p => SpecializedPods.AddPod(p)); }
public void ClearMainGroups() { OwnPods.Clear(); EnemyPods.Clear(); }