예제 #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)
 {
 }