Beispiel #1
0
 /// <summary>
 ///     Попытаться атаковать другой играбельный юнит.
 /// </summary>
 /// <param name="other"></param>
 public void Attack(PlayableUnit other)
 {
     if (!CanAtack(other))
     {
         return;
     }
     attackBehavior.Attack(this, other);
 }
Beispiel #2
0
 public bool CanStandWithOtherUnit(PlayableUnit other)
 {
     return(canStandWithOtherUnitBehavior.CanStandWithOtherUnit(other));
 }
Beispiel #3
0
 /// <summary>
 ///     Определяет, может ли текущий юнит атаковать указанный юнит.
 /// </summary>
 /// <param name="other"></param>
 /// <returns></returns>
 public bool CanAtack(PlayableUnit other)
 {
     return(canAttackBehavior.CanAttack(this, other));
 }