Пример #1
0
 public Unit(LoadModel model)
     : base(model)
 {
     base.elapsedTime = 0;
     this.armorAfterBuff = armor * 2;
     pathFinder = new PathFinderNamespace.PathFinder();
     speed = 42;
 }
Пример #2
0
        /*
         protected List<Skill> skillsList;

         public List<Skill> SkillsList
         {
             get { return skillsList; }
             set { skillsList = value; }
         }
        */
        public Unit(int hp, float armor, float strength, float range, int cost, float buildingTime, LoadModel model, float atackInterval)
            : base(model)
        {
            this.hp = hp;
            this.armor = armor;
            this.strength = strength;
            this.range = range;
            this.cost = cost;
            this.buildingTime = buildingTime;
            this.atackInterval = atackInterval;
            base.elapsedTime = 0;
            this.armorAfterBuff = armor * 2;
            pathFinder = new PathFinderNamespace.PathFinder();
            speed = 42;
        }