PathfindingTest.Buildings.Sentry.Sentry C# (CSharp) Method

Sentry() public method

public Sentry ( Player p, Color c ) : System
p PathfindingTest.Players.Player
c Color
return System
        public Sentry(Player p, Color c)
            : base(p)
        {
            this.c = c;
            this.constructC = new Color(this.c.R, this.c.G, this.c.B, 0);
            this.type = Type.Sentry;
            this.constructDuration = 10;

            this.visionRange = 50f;

            this.maxHealth = 500f;
            this.currentHealth = 0f;

            this.texture = TextureManager.GetInstance().GetTexture(this.type);
        }