public Orchardist(Town town) : base("orchardist", town.Market) { var eat = new EatBehavior(this); this.Behaviors.Add(eat); this.Behaviors.Add(new ProduceBehavior( this, town, eat, new AreaProduceBehaviorOptions(this, town, Constants.Apples) { BaseAmount = 1, EatFactor = 2, ToolsFactor = 2, ToolsBreakChance = 0.1 } )); this.Behaviors.Add(new ProduceBehavior( this, town, eat, new AreaProduceBehaviorOptions(this, town, Constants.Oranges) { BaseAmount = 1, EatFactor = 2, ToolsFactor = 2, ToolsBreakChance = 0.1 } )); this.Behaviors.Add(new WorkerBehavior(this)); this.Inventory.Add(Constants.Money, 100); }
public Blacksmith(Town town) : base("blacksmith", town.Market) { var eat = new EatBehavior(this); this.Behaviors.Add(eat); this.Behaviors.Add(new BlacksmithBehavior(this, eat)); this.Behaviors.Add(new WorkerBehavior(this)); this.Inventory.Add(Constants.Money, 100); }
public Miller(Town town) : base("miller", town.Market) { var eat = new EatBehavior(this); this.Behaviors.Add(eat); this.Behaviors.Add(new MillerBehavior(this, town, eat)); this.Behaviors.Add(new WorkerBehavior(this)); this.Inventory.Add(Constants.Money, 100); }
public Fisherman(Town town) : base("fisherman", town.Market) { var eat = new EatBehavior(this); this.Behaviors.Add(eat); this.Behaviors.Add(new ProduceBehavior( this, town, eat, new AreaProduceBehaviorOptions(this, town, Constants.Fish) { BaseAmount = 1, EatFactor = 2, ToolsFactor = 2, ToolsBreakChance = 0.1 } )); this.Behaviors.Add(new WorkerBehavior(this)); this.Inventory.Add(Constants.Money, 100); }
public BlacksmithBehavior(Agent agent, EatBehavior eat) : base(agent) { this.eat = eat; }
public MillerBehavior(Agent agent, Town town, EatBehavior eat) : base(agent) { this.town = town; this.eat = eat; }
public SawyerBehavior(Agent agent, EatBehavior eat) : base(agent) { this.eat = eat; }