Exemplo n.º 1
0
 public override void upgrade()
 {
     damage      = damage * 2;
     attackspeed = attackspeed / 1.25f;
     Cost        = Cost * 2;
     CommandCard = new CommandCard(Name, damage.ToString(), attackspeed.ToString(), range.ToString(), Cost.ToString(), description);
 }
Exemplo n.º 2
0
 public override void upgrade()
 {
     damage       = damage * 2;
     areaofeffect = areaofeffect + 50;
     Cost         = Cost * 2;
     CommandCard  = new CommandCard(Name, damage.ToString(), attackspeed.ToString(), range.ToString(), Cost.ToString(), description);
 }
Exemplo n.º 3
0
        public Enemy(int HP, int speed, Texture2D tex, List <Node> bestPath, string name) : base(tex, Point.Zero)
        {
            this.name     = name;
            this.HP       = HP;
            this.maxHP    = HP;
            this.speed    = speed;
            this.bestPath = bestPath;
            this.Position = currentDest = bestPath[0].actualPos;

            commandCard  = new CommandCard(name, hp: HP.ToString(), speed: speed.ToString());
            SpriteHeight = 20;
            SpriteWidth  = 18;
            currentFrame = 0;
            frameCount   = 2;
        }
Exemplo n.º 4
0
 public BatteryTower(Point position, Texture2D tex) : base(tex, position)
 {
     Cost        = 15;
     Name        = "Battery Tower";
     CommandCard = new CommandCard(Name, damage.ToString(), attackspeed.ToString(), range.ToString(), Cost.ToString(), description);
 }