refactor: move totalFunds property to separate class
this new class (CityBudget) will contain all finance-related balances git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@600 d9718cc8-9f43-0410-858b-315f434eb58c
This commit is contained in:
parent
92f79886ae
commit
04534d6273
5 changed files with 44 additions and 23 deletions
20
src/micropolisj/engine/CityBudget.java
Normal file
20
src/micropolisj/engine/CityBudget.java
Normal file
|
@ -0,0 +1,20 @@
|
|||
// This file is part of MicropolisJ.
|
||||
// Copyright (C) 2013 Jason Long
|
||||
// Portions Copyright (C) 1989-2007 Electronic Arts Inc.
|
||||
//
|
||||
// MicropolisJ is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU GPLv3, with additional terms.
|
||||
// See the README file, included in this distribution, for details.
|
||||
|
||||
package micropolisj.engine;
|
||||
|
||||
public class CityBudget
|
||||
{
|
||||
private final Micropolis city;
|
||||
public int totalFunds;
|
||||
|
||||
CityBudget(Micropolis city)
|
||||
{
|
||||
this.city = city;
|
||||
}
|
||||
}
|
Reference in a new issue