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; /* w w w .j a v a 2 s. c om*/ import java.io.Serializable; import jonathan.geoffroy.zorbscity.model.City; import jonathan.geoffroy.zorbscity.model.helpers.Coord2D; /** * A Structure is a generic calling for any construction likes Roads, Buildings ... * It is able to know if it can be placed on a city, depending a parameter coordinates, and set the size it take on the City. * @author Jonathan GEOFFROY * @version 0.1 */ public interface Structure extends Serializable { /** * Add this Structure on the city, at the coords coordinates * @param city * @param coords */ public void addInto(City city, Coord2D coords); /** * @return the number of blocks side the Structure takes into mapping (1 by default). */ public int getMappingSize(); }