Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Terrain {
- protected int posX;
- protected int posY;
- protected int width;
- protected int height;
- private int cellSize;
- public Terrain(int x, int y, int width, int height, int cellSize){
- setPosX(x);
- setPosY(y);
- setWidth(width);
- setHeight(height);
- setCellSize(cellSize);
- }
- protected int getWidth() {
- return width;
- }
- protected void setWidth(int width) {
- this.width = width;
- }
- protected int getHeight() {
- return height;
- }
- protected void setHeight(int height) {
- this.height = height;
- }
- protected int getPosX() {
- return posX;
- }
- protected void setPosX(int posX) {
- this.posX = posX;
- }
- protected int getPosY() {
- return posY;
- }
- protected void setPosY(int posY) {
- this.posY = posY;
- }
- public int getCellSize() {
- return cellSize;
- }
- public void setCellSize(int cellSize) {
- this.cellSize = cellSize;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment