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

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

            this.Victims.Add (service);
        }
示例#2
0
        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 ();
            }
        }
示例#3
0
 public void RemoveVictim(Service service)
 {
     this.Victims.Remove (service);
 }