Ejemplo n.º 1
0
        protected override void OnSpellEffect(Spell spell)
        {
            var target = (TerrainEntity)spell.Targets[0][0];
            var unit   = new ArcherUnit(this.Owner);

            spell.RunAction(new AddEntityAction(unit, target.Position.GenerateSpawn()));
        }
Ejemplo n.º 2
0
        public IUnit TakeDamage(int damage)
        {
            IUnit resultUnit = ((IUnit)ArcherUnit).TakeDamage(damage);

            WriteMessage(Name + " taked damage. New state: " + ArcherUnit.ToString());
            return(resultUnit);
        }
Ejemplo n.º 3
0
 public ActionResult DoSpecialAction(int position, IArmy myArmy, IArmy enemyArmy, Random random = null)
 {
     return(ArcherUnit.DoSpecialAction(position, myArmy, enemyArmy, random));
 }
Ejemplo n.º 4
0
 public IUnit Clone()
 {
     return(new ArcherProxy((Archer)ArcherUnit.Clone(), Path));
 }
Ejemplo n.º 5
0
 public bool IsAlive()
 {
     return(ArcherUnit.IsAlive());
 }
Ejemplo n.º 6
0
 public void TakeHealth(int health)
 {
     ArcherUnit.TakeHealth(health);
 }