Exemplo n.º 1
0
        /// <summary>
        /// Renders out the token sprite.
        /// </summary>
        public override void Render(
            Drawable dest,
            GC gc)
        {
            Width         = letterState.Width = selectedState.Width = display.TileSize;
            Height        = letterState.Height = selectedState.Height = display.TileSize;
            letterState.X = selectedState.X = X;
            letterState.Y = selectedState.Y = Y;

            if (Width == 0 || Height == 0)
            {
                return;
            }

            tileDrawable.Render(dest, gc, state);
            letterDrawable.Render(dest, gc, letterState);

            // Check for in chain
            if (token.InChain)
            {
                selectedDrawable.Render(dest, gc, selectedState);
            }
        }