public City( int width, int height, int camerawidth, string name, bool passability, bool activity, Color color) { Width = width; Height = height; CameraWidth = camerawidth; // VisibleNumbers = visiblenumbers; Name = "test"; Map = new Partical[Height][]; for (int y = 0; y < Height; y++) { Map[y] = new Partical[Width]; } for (int y = 0; y < Height; y++) { for (int x = 0; x < Width; x++) { Map[y][x] = new Partical(name, passability, activity, color); } } }
public City(int width, int height, int camerawidth /*, bool visiblenumbers*/) { Width = width; Height = height; CameraWidth = camerawidth; // VisibleNumbers = visiblenumbers; Name = "test"; Map = new Partical[Height][]; for (int y = 0; y < Height; y++) { Map[y] = new Partical[Width]; } for (int y = 0; y < Height; y++) { for (int x = 0; x < Width; x++) { Map[y][x] = new Partical(); } } }