예제 #1
0
 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);
 }
예제 #2
0
파일: World.cs 프로젝트: j-oh/Online-CTF
 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);
 }