Beispiel #1
0
        public override void Update(GameTime time)
        {
            // Update fade in / fade out
            base.Update(time);

            // Update the grid
            battleGrid.Update(time);
            overlay.timeSinceSwitch = Math.Min(overlay.timeSinceSwitch + time.ElapsedGameTime.TotalSeconds * 5, 1.1D);

            // TurnUpdate when requested.
            if (shouldTurnUpdate && !battleGrid.ContainsWalkingUnits)
            {
                shouldTurnUpdate = false;
                TurnUpdate(time);
            }
        }