using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HumanLikeBattleRobots.Data;
using HumanLikeBattleRobots.Logic;
using QuadEngine;

namespace HumanLikeBattleRobots.Graphic
{
    class SmokeSprite: Sprite
    {
        private float transparency = 1;
        private float scale = 1;

        public float Transparency { set { transparency = value; if (transparency < 0) transparency = 0; } }
        public float Scale { set { scale = value; } }
             
        public SmokeSprite(int stage)
            : base(stage)
        {
            relativeCenterPosition = new Vec2f(10, 10);
            drawTexture = GraphicResources.SmokeTexture;
        }

        public override void Draw()
        {
            QuadColor color = QuadColor.White;
            color.A = transparency;
            drawTexture.DrawRotAxis(this.DrawPosition - this.AxisPosition, this.angle, scale,
                this.DrawPosition, color);
        }
    }
}
