Advertisement
rooster5105

Island.java

Oct 29th, 2011
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.93 KB | None | 0 0
  1. package com.kfgeeks.java.Mapper;
  2.  
  3.  
  4.  
  5. public class Island {
  6.    
  7.     private int islandHeight = 0;
  8.     private int islandWidth = 0;
  9.     private int maxWidth = 0;
  10.     private int maxHeight = 0;
  11.     private int minHeight = 0;
  12.     private int minWidth = 0;
  13.    
  14.     Cell[][] islandCells;
  15.  
  16.    
  17.     public int getHeight(){
  18.         return islandHeight;
  19.     }
  20.    
  21.     public int getWidth(){
  22.         return islandWidth;
  23.     }
  24.    
  25.     public void setHeight(int x){
  26.         islandHeight = x;
  27.     }
  28.    
  29.     public void setWidth(int x){
  30.         islandWidth = x;
  31.     }
  32.     public void setMaxWidth(int x){
  33.         maxWidth = x;
  34.     }
  35.     public void setMaxHeight(int x){
  36.         maxHeight = x;
  37.     }
  38.     public int getMax_height(){
  39.         return maxWidth;
  40.     }
  41.     public int getMax_width(){
  42.         return maxHeight;
  43.     }
  44.    
  45.     public void setMinWidth(int x){
  46.         minWidth = x;
  47.     }
  48.     public void setMinHeight(int x){
  49.         minHeight = x;
  50.     }
  51.     public int getMin_height(){
  52.         return minWidth;
  53.     }
  54.     public int getMin_width(){
  55.         return minHeight;
  56.     }
  57.    
  58. }
  59.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement