All pastes #2074039 Raw Edit

Unnamed

public java v1 · immutable
#2074039 ·published 2011-06-03 08:07 UTC
rendered paste body
public void Build_Map(int x, y){			 Map world_Map = new Map();			 world_Map.map_cells = new Cell[x][y];			 for (Cell[] cell : world_Map.map_cells){				  cell = new Cell[y];			 }				}/*****Revised Map. Java******/import java.util.Random;public class Map {				private int height = 0;	private int width = 0;		 Cell[][] map_cells;	 Cell[] tmp_Cells;	 	public void set_height(int x){		height = x;		}	public void set_width(int x){		width = x;	}	public int get_height(){		return height;	}		public int get_width(){		return width;	}			public char get_cell_data(int x, int y){		return map_cells[x][y].getTerrain_Char();	}	 		 	public void print(String s){		System.out.println(s);	}														/*This Comment Intentionally Left Blank*/											/*Just trying to tidy up the close Braces*/				/*You know...Make it look all Pretty*/		/*Before you get to........*/	}/************The Very End!*/