public Tile(int i, int j, Vector2 size, GraphicsDevice gDevice) { if (Util.GetRandom(0, 100) < 10) { m_solid = true; } m_size = size; m_position = new Vector2(i * m_size.X, j * m_size.Y); ChangeColour(Color.White, gDevice); }
protected Point RandomPoint() { int x = Util.GetRandom(0, m_gGrid.GetCols()); int y = Util.GetRandom(0, m_gGrid.GetRows()); return new Point(x, y); }