Methapolis  0.27
 All Classes Namespaces Files Functions Variables Enumerator
CityBudget.java
Go to the documentation of this file.
1 // This file is part of MicropolisJ.
2 // Copyright (C) 2013 Jason Long
3 // Portions Copyright (C) 1989-2007 Electronic Arts Inc.
4 //
5 // MicropolisJ is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU GPLv3, with additional terms.
7 // See the README file, included in this distribution, for details.
8 
9 package micropolisj.engine;
10 
11 import java.io.Serializable;
12 
13 public class CityBudget implements Serializable
14 {
15  private transient Micropolis city;
16 
20  public int totalFunds;
21 
26  int taxFund;
27 
31  int roadFundEscrow;
32 
36  int fireFundEscrow;
37 
41  int policeFundEscrow;
42 
46  int researchFundEscrow;
47 
49  {
50  setEngine(city);
51  }
52 
53  public void setEngine(Micropolis city) {
54  this.city = city;
55  }
56 
57  public void setValues(CityBudget cityBudget) {
58  totalFunds = cityBudget.totalFunds;
59  taxFund = cityBudget.taxFund;
60  roadFundEscrow = cityBudget.roadFundEscrow;
61  fireFundEscrow = cityBudget.fireFundEscrow;
62  policeFundEscrow = cityBudget.policeFundEscrow;
63  }
64 }