Ejemplo n.º 1
0
 private void GetPathTo(Vector2D Destination)
 {
     BattleGrid.InsertInQueue(this.Position, Destination, this, (vecList) =>
     {
         Path.Clear();
         BattleGrid.VectorsToCells(vecList, Path);
         PrintPath();
     });
 }
Ejemplo n.º 2
0
 public Item(string id, Card card, Player player, Team team, Vector2D position, BattleGrid battleGrid)
 {
     Id                 = id;
     Card               = card;
     Player             = player;
     Team               = team;
     this.currentHealth = card.HP;
     Position           = position;
     BattleGrid         = battleGrid;
 }
Ejemplo n.º 3
0
        public Unit(string id, Card card, Player player, Team team, Vector2D position, BattleGrid bg) : base(id, card, player, team, position, bg)
        {
            Card          = card;
            CurrentHealth = card.HP;

            this.BattleGrid = bg;

            Vector2D LanePos = BattleGrid.FindNearestLanePos(position);

            GetPathTo(LanePos);
            AppendLanePath();
            StartMoving();
        }
Ejemplo n.º 4
0
//        private item

        public RangedBuilding(string name, string id, Card card, Player player, Team team, Vector2D position, BattleGrid bg) : base(name, id, card, player, team, position, bg)
        {
            Damage       = card.Damage;
            DamagePerSec = card.DamagePerSec;
        }
Ejemplo n.º 5
0
 public RangedUnit(string id, Card card, Player player, Team team, Vector2D position, BattleGrid bg) : base(id, card, player, team, position, bg)
 {
 }
Ejemplo n.º 6
0
//        public Building():base("", null,null, Team.Any, new Vector2D(0,0))
//        {
//            Name = "";
//        }

        public Building(string name, string id, Card card, Player player, Team team, Vector2D position, BattleGrid bg) : base(id, card, player, team, position, bg)
        {
            Name = name;
            StartAttack();
        }