Exemplo n.º 1
0
 public void SetGroupTarget(ISubjectTargetable target)
 {
     foreach (var member in members)
     {
         member.SetTarget(target);
     }
 }
Exemplo n.º 2
0
 public void SetTarget(ISubjectTargetable target)
 {
     if (target == null)
     {
         logger.Handle(LogType.ERROR, TARGET_NULL_MESSAGE);
         //Console.WriteLine(TARGET_NULL_MESSAGE);
     }
     else
     {
         this.target = target;
         logger.Handle(LogType.TARGET, string.Format(SET_TARGET_MESSAGE, this, target));
         //Console.WriteLine(SET_TARGET_MESSAGE, this, target);
     }
 }
 public SetTargetOfAttackGroup(IAttackGroup attackGroup, ISubjectTargetable target)
 {
     this.attackGroup = attackGroup;
     this.target      = target;
 }
Exemplo n.º 4
0
 public SetTargetCommand(IAttacker attacker, ISubjectTargetable target)
 {
     this.attacker = attacker;
     this.target   = target;
 }