public void RestartGame() { PlayerIndex.Clear(); MobIndex.Clear(); DropIndex.Clear(); FallingBlockIndex.Clear(); RedTent = new Tent(true, Vector2.Zero, false, false); BlueTent = new Tent(false, Vector2.Zero, false, false); }
public void RestartGame() { foreach (KeyValuePair <int, Player> entry in PlayerIndex.ToArray()) { entry.Value.Restart(); } MobIndex.Clear(); DropIndex.Clear(); FallingBlockIndex.Clear(); WorldMap.InitLevelFromRotation(); TimeRemaining.Start(DEFAULT_TIME_REMAINING); RestartInterval.Reset(); RedTent = new Tent(true, WorldMap.RedTentPosition, ServerMode == GameMode.CaptureTheFlag, true); BlueTent = new Tent(false, WorldMap.BlueTentPosition, ServerMode == GameMode.CaptureTheFlag, true); }