Back to project page ZorbsCity.
The source code is released under:
GNU General Public License
If you think the Android project ZorbsCity listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package jonathan.geoffroy.zorbscity.model.cityObjects.buildings.houses; /*from www.j av a2 s .c o m*/ import jonathan.geoffroy.zorbscity.model.cityObjects.buildings.House; import jonathan.geoffroy.zorbscity.model.helpers.ResourcesList; public class SimpleHouse extends House { /** * auto-generated serial (using eclipse) */ private static final long serialVersionUID = -213491608129812466L; public SimpleHouse() { super(); } public SimpleHouse(House house) { super(house); } @Override protected House getNextHouseType() { return null; } @Override protected House getPreviousHouseType() { return new TentHouse(this); } @Override public boolean enoughResources() { if(resources.getAmountOf(ResourcesList.CLOTHES_RESOURCE) == 0 || resources.getAmountOf(ResourcesList.ENTERTAINMENT_RESOURCE) == 0) { return false; } return true; } @Override protected void addNeededResources() { needed.addNeeded(ResourcesList.POWER_RESOURCE, 1); } @Override public int getMaxPeopleNumber() { return 8; } }