public void setSize(Dimension paramDimension)
  {
    MapCell[][] arrayOfMapCell = new MapCell[paramDimension.width][paramDimension.height];
    for (int i = 0; i < paramDimension.width; i++)
      for (int j = 0; j < paramDimension.height; j++)
        if ((i >= this.mapsize.width) || (j >= this.mapsize.height))
          arrayOfMapCell[i][j] = new MapCell();
        else
          arrayOfMapCell[i][j] = this.mapdata[i][j];
    this.mapdata = arrayOfMapCell;
    this.mapsize = paramDimension;
  }