예제 #1
0
        private void drawItemsOnMap(Graphics g)
        {
            // settings
            g.SmoothingMode = SmoothingMode.HighQuality;

            // bg
            // g.DrawFullImg(backGround);

            // territories
            List <Territory> alreadyDrawn = new List <Territory>();

            if (selectedTerritory != Game.Sea)
            {
                g.DrawLabel(selectedTerritory, true);
                alreadyDrawn.Add(selectedTerritory);
                foreach (Territory territory in selectedTerritory.GetAttackableNeighbours(true))
                {
                    g.DrawAttackableLabel(territory);
                    alreadyDrawn.Add(territory);
                }
            }
            foreach (Territory territory in Game.GetAllTerritories().Except(new List <Territory>(alreadyDrawn)))
            {
                g.DrawLabel(territory);
            }
        }