Example #1
0
        public void AddVictim(Service service)
        {
            if (service.Owner == this)
                return;

            if (this.Victims.Contains (service))
                return;

            this.Victims.Add (service);
        }
        public void Add(Team attacker, Service victim, int force)
        {
            var action = new Attack (attacker, victim.Owner, victim, force);
            var id = this.attack_id++;

            var animation = this.PrepareAnimation (action, id);
            if (animation == null)
                return;

            lock (this.lock_obj) {
                this.animations.Add (id, animation);
                animation.Storyboard.Begin ();
            }
        }
Example #3
0
 public void RemoveVictim(Service service)
 {
     this.Victims.Remove (service);
 }