protected virtual bool OnCoinc(object sender, PlayerMissile missile1, PlayerMissile missile2) { if (Coinc != null) { Coinc(this, missile1, missile2); } return(false); }
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; }
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; }
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); }
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); }
protected virtual bool OnCoinc(object sender, PlayerMissile missile1, PlayerMissile missile2) { if (Coinc != null) { Coinc(this, missile1, missile2); } return false; }