Exemplo n.º 1
0
        public override void Draw(Nuclex.Ninject.Xna.ISpriteBatch batch)
        {
            if (IsHidden)
            {
                return;
            }

            if (Shadow != null)
            {
                Shadow.Draw(batch);
            }

            if (IsShieldEquipped)
            {
                if (Shield.Frame == null)
                {
                    Frame.Draw(batch, Frame, Position);
                }
                else
                {
                    Frame.Draw(batch, Frame, Position, Shield.Frame);
                }
            }
            else
            {
                Frame.Draw(batch, Frame, Position);
            }
        }
Exemplo n.º 2
0
        public virtual void Draw(ISpriteBatch batch)
        {
            if (IsHidden)
            {
                return;
            }

            if (Shadow != null)
            {
                Shadow.Draw(batch);
            }

            if (Frame != null)
            {
                Frame.Draw(batch, Frame, Position);
            }
        }