public void SetGroupTarget(ISubjectTargetable target) { foreach (var member in members) { member.SetTarget(target); } }
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; }
public SetTargetCommand(IAttacker attacker, ISubjectTargetable target) { this.attacker = attacker; this.target = target; }