Exemplo n.º 1
0
 /// <summary>
 /// Defines how a merge happen between two similar Weathers
 /// </summary>
 public abstract Weather Merge(Weather weather);
Exemplo n.º 2
0
 /// <summary>
 /// Checks if this <see cref="outerCollisionRectangle"/> intersects with another weather's <see cref="outerCollisionRectangle"/>.
 /// </summary>
 public virtual bool Intersects(Weather weather) => weather.outerCollisionRectangle.Intersects(outerCollisionRectangle);
Exemplo n.º 3
0
 /// <summary>
 /// Event called whenever this weather is not beign used anymore.
 /// </summary>
 public virtual void OnBeingRemoved(Weather incomingWeather)
 {
 }
Exemplo n.º 4
0
 public override Weather Merge(Weather weather)
 {
     return(new Weakness((StartingPosition + weather.StartingPosition) / 2, Scale + weather.Scale));
 }