예제 #1
0
 protected virtual bool OnCoinc(object sender, PlayerMissile missile1, PlayerMissile missile2)
 {
     if (Coinc != null)
     {
         Coinc(this, missile1, missile2);
     }
     return(false);
 }
예제 #2
0
 public PlayerMissile AddMissile(PlayerMissile missile)
 {
     if (missile == null) throw new ArgumentNullException("missile");
     _missiles.Add(missile);
     if (missile.Owner != this) missile.Owner = this;
     ClearCache();
     return missile;
 }
예제 #3
0
 public PlayerMissile AddMissile(
     string name,
     int x = 0,
     int y = 0)
 {
     var missile = new PlayerMissile(name, x, y, this);
     _missiles.Add(missile);
     ClearCache();
     return missile;
 }
예제 #4
0
        public PlayerMissile AddMissile(
            string name,
            int x = 0,
            int y = 0)
        {
            var missile = new PlayerMissile(name, x, y, this);

            _missiles.Add(missile);
            ClearCache();
            return(missile);
        }
예제 #5
0
 public PlayerMissile AddMissile(PlayerMissile missile)
 {
     if (missile == null)
     {
         throw new ArgumentNullException("missile");
     }
     _missiles.Add(missile);
     if (missile.Owner != this)
     {
         missile.Owner = this;
     }
     ClearCache();
     return(missile);
 }
예제 #6
0
 protected virtual bool OnCoinc(object sender, PlayerMissile missile1, PlayerMissile missile2)
 {
     if (Coinc != null) {
         Coinc(this, missile1, missile2);
     }
     return false;
 }