public override void Update(GameTime gameTime) { if (GameMode == 1) { OnlinePlayers.Update(); } if (!IsFrozen) { if ((KeyboardHelper.KeyHold(Keys.LeftControl) || KeyboardHelper.KeyHold(Keys.RightControl)) && KeyboardHelper.KeyPressed(Keys.K)) { ListLayer[0].LayerGrid = new Map3D(this, GraphicsDevice); } if ((KeyboardHelper.KeyHold(Keys.LeftControl) || KeyboardHelper.KeyHold(Keys.RightControl)) && KeyboardHelper.KeyPressed(Keys.L)) { ListLayer[0].LayerGrid = new CubeMap3D(this, GraphicsDevice); } if ((KeyboardHelper.KeyHold(Keys.LeftControl) || KeyboardHelper.KeyHold(Keys.RightControl)) && KeyboardHelper.KeyPressed(Keys.O)) { ListLayer[0].LayerGrid = new SphericalMap3D(this, GraphicsDevice); } if ((KeyboardHelper.KeyHold(Keys.LeftControl) || KeyboardHelper.KeyHold(Keys.RightControl)) && KeyboardHelper.KeyPressed(Keys.U)) { ListLayer[0].LayerGrid = ListLayer[0].OriginalLayerGrid; } foreach (MapLayer ActiveMapLayer in ListLayer) { ActiveMapLayer.Update(gameTime); } if (ListNextAnimationScreen.Count > 0) { PushScreen(ListNextAnimationScreen[0]); ListNextAnimationScreen.Remove(ListNextAnimationScreen[0]); } else { if (!IsInit) { Init(); } else if (MovementAnimation.Count > 0) { MoveSquad(); } else if (GameMode == 0 || (GameMode == 1 && !ListPlayer[ActivePlayerIndex].IsOnline)) { ListActionMenuChoice.Last().Update(gameTime); } UpdateCursorVisiblePosition(gameTime); } } }