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.storages; //from w w w . j av a 2 s .c o m import jonathan.geoffroy.zorbscity.model.cityObjects.buildings.Storage; import jonathan.geoffroy.zorbscity.model.cityObjects.resources.Resource; import jonathan.geoffroy.zorbscity.model.helpers.ResourcesList; public class FoodStorage extends Storage { /** * Auto-generated serial (using eclipse) */ private static final long serialVersionUID = -2590689278758704347L; public FoodStorage() { super(); } @Override public boolean canAdd(Resource r) { return super.canAdd(r) && r.getResourceNumber() <= ResourcesList.MAX_FOOD_NUMBER; } @Override public int getMappingSize() { return 4; } @Override public int getSpace() { return 48 * Resource.COMMON_CREATED_AMOUNT; } }