Пример #1
0
 public virtual void UpdateWeekly(ResourceDict plotResources)
 {
     if (_weeklyUpdate != null)
     {
         _weeklyUpdate.Invoke(this, new EventArgs());
     }
     UpdateFacing();
 }
Пример #2
0
 /// <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;
 }
Пример #3
0
 public void Update(ResourceDict cityResources)
 {
     if (this.Building != null)
     {
         this.building.Update(this.resource);
     }
     UpdateCityResources(cityResources);
     this.resource = new ResourceDict();
 }
Пример #4
0
 public Plot(int x, int y)
 {
     initialize(x, y);
     this.resource = new ResourceDict();
 }
Пример #5
0
 internal Plot(int x, int y, InfiniteGrid grid)
 {
     this.grid = grid;
     initialize(x, y);
     this.resource = new ResourceDict();
 }
Пример #6
0
 private void UpdateCityResources(ResourceDict cityResources)
 {
     cityResources = cityResources + this.resource;
 }
Пример #7
0
 public virtual void UpdateHour(ResourceDict plotResources)
 {
 }
Пример #8
0
 public virtual void UpdateDaily(ResourceDict plotResources)
 {
 }
Пример #9
0
 protected abstract void Pollute(ResourceDict plot);
Пример #10
0
 //Abstract Update Methods
 protected abstract void PayTaxes(ResourceDict plot);
Пример #11
0
 public virtual void UpdateBiannually(ResourceDict plotResources)
 {
 }
Пример #12
0
 public virtual void UpdateQuarterly(ResourceDict plotResources)
 {
 }
Пример #13
0
 public virtual void UpdateMonthly(ResourceDict plotResources)
 {
 }