public void ReplaceNuisible(Nuisible toReplace, Nuisible replacement) { if (this.Nuisibles.Remove(toReplace)) { this.Nuisibles.Add(replacement); } ; }
public RandomMovingStrategy(Nuisible nuisible) { this._nuisible = nuisible; Console.WriteLine(this._nuisible); }
public PeacefulMovingStrategy(Nuisible nuisible) { _nuisible = nuisible; }
public override string ToString() { return(Nuisible.ToString()); }
public override void Zombify() { Nuisible.Zombify(); }
public override void GetCollided(ICollideable collider) { Nuisible.GetCollided(collider); }
public override void Collide(ICollideable collided) { Nuisible.Collide(collided); }
public NuisibleDecorator(Nuisible nuisible) { this.Nuisible = nuisible; }