public virtual void UpdateWeekly(ResourceDict plotResources) { if (_weeklyUpdate != null) { _weeklyUpdate.Invoke(this, new EventArgs()); } UpdateFacing(); }
/// <summary> /// Set the default resource value /// </summary> private void initResources() { this.resources = new ResourceDict(); this.resources[ResourceType.Energy] = 10000; this.resources[ResourceType.Material] = 10000; this.resources[ResourceType.Money] = 10000; this.resources[ResourceType.Population] = 10000; }
public void Update(ResourceDict cityResources) { if (this.Building != null) { this.building.Update(this.resource); } UpdateCityResources(cityResources); this.resource = new ResourceDict(); }
public Plot(int x, int y) { initialize(x, y); this.resource = new ResourceDict(); }
internal Plot(int x, int y, InfiniteGrid grid) { this.grid = grid; initialize(x, y); this.resource = new ResourceDict(); }
private void UpdateCityResources(ResourceDict cityResources) { cityResources = cityResources + this.resource; }
public virtual void UpdateHour(ResourceDict plotResources) { }
public virtual void UpdateDaily(ResourceDict plotResources) { }
protected abstract void Pollute(ResourceDict plot);
//Abstract Update Methods protected abstract void PayTaxes(ResourceDict plot);
public virtual void UpdateBiannually(ResourceDict plotResources) { }
public virtual void UpdateQuarterly(ResourceDict plotResources) { }
public virtual void UpdateMonthly(ResourceDict plotResources) { }