Ejemplo n.º 1
0
        //##################################################################################

        public void WhenTileUnderAttack(int x, int y, Game.GameTile tile, string oldOwner)
        {
            var effect = new CircleEffect();
            effect.Start(Location.X + x * TileSize + TileSize / 2, Location.Y + y * TileSize + TileSize / 2,
                24.0f, 512.0f, Color.OrangeRed);

            AddCircleEffect(effect);


            /*if (tile.HaveOwner)
            {
                m_eventViewer.AddEvent(string.Format("\"{0}\"님의 타일 에너지 감소!", tile.Owner),
                    Color.Orange);
            }*/
        }
Ejemplo n.º 2
0
        public void WhenTileUpgraded(int x, int y, Game.GameTile tile, string oldOwner)
        {
            var effect = new CircleEffect();
            effect.Start(Location.X + x * TileSize + TileSize / 2, Location.Y + y * TileSize + TileSize / 2,
                6.0f, 64.0f, Color.Yellow);

            AddCircleEffect(effect);


            /*if (tile.HaveOwner)
            {
                m_eventViewer.AddEvent(string.Format("\"{0}\"님이 영토를 강화했습니다!", tile.Owner),
                    Color.Red);
            }*/
        }
Ejemplo n.º 3
0
        public void WhenSignChanged(int x, int y, Game.GameTile tile, string oldOwner)
        {
            var effect = new CircleEffect();
            effect.Start(Location.X + x * TileSize + TileSize / 2, Location.Y + y * TileSize + TileSize / 2,
                80.0f, 2048.0f, Color.WhiteSmoke);

            AddCircleEffect(effect);


            if (tile.HaveOwner && tile.HaveSign)
            {
                m_eventViewer.AddEvent(string.Format("\"{0}\": \"{1}\"", tile.Owner, tile.Sign),
                    Color.Black);
            }
        }
Ejemplo n.º 4
0
        public void WhenTileCaptured(int x, int y, Game.GameTile tile, string oldOwner)
        {
            var effect = new CircleEffect();
            effect.Start(Location.X + x * TileSize + TileSize / 2, Location.Y + y * TileSize + TileSize / 2,
                48.0f, 1024.0f, Color.AliceBlue);

            AddCircleEffect(effect);


            if (tile.HaveOwner
                &&
                tile.Owner != oldOwner)
            {
                string format = "\"{0}\"님이 \"{1}\"님의 영토를 점령했습니다!";

                if(oldOwner.Length <= 0)
                    format = "\"{0}\"님이 영토를 확장했습니다!";

                m_eventViewer.AddEvent(string.Format(format, tile.Owner, oldOwner),
                    Color.Red);
            }
        }