Feel 5.9.1
The best way to improve your game's feel and make it extra juicy
Loading...
Searching...
No Matches
MoreMountains.Tools.MMGridGenerator Class Reference
Inheritance diagram for MoreMountains.Tools.MMGridGenerator:
MoreMountains.Tools.MMGridGeneratorFull MoreMountains.Tools.MMGridGeneratorPath MoreMountains.Tools.MMGridGeneratorPerlinNoise MoreMountains.Tools.MMGridGeneratorPerlinNoiseGround MoreMountains.Tools.MMGridGeneratorRandom MoreMountains.Tools.MMGridGeneratorRandomWalk MoreMountains.Tools.MMGridGeneratorRandomWalkAvoider MoreMountains.Tools.MMGridGeneratorRandomWalkGround

Static Public Member Functions

static int[,] PrepareGrid (ref int width, ref int height)
 Prepares the grid array for use in the generate methods.
static bool SetGridCoordinate (int[,] grid, int x, int y, int value)
 Carves or adds to the grid.
static void DebugGrid (int[,] grid, int width, int height)
 Outputs the contents of a grid.
static int GetValueAtGridCoordinate (int[,] grid, int x, int y, int errorValue)
 Returns the int value at the specified coordinate on a grid.
static int[,] InvertGrid (int[,] grid)
 Inverts the contents of a grid (1 becomes 0, 0 becomes 1)
static int[,] SmoothenGrid (int[,] grid)
 Smoothens a grid to get rid of spikes / isolated points.
static int[,] BindGrid (int[,] grid, bool top, bool bottom, bool left, bool right)
 Adds bounds (walls made of 1) to a grid, on the selected sides.
static int GetAdjacentWallsCount (int[,] grid, int x, int y)
 Returns the amount of adjacent walls for a specific coordinate.

Member Function Documentation

◆ BindGrid()

int[,] MoreMountains.Tools.MMGridGenerator.BindGrid ( int grid[,],
bool top,
bool bottom,
bool left,
bool right )
static

Adds bounds (walls made of 1) to a grid, on the selected sides.

Parameters
grid
top
bottom
left
right
Returns

◆ DebugGrid()

void MoreMountains.Tools.MMGridGenerator.DebugGrid ( int grid[,],
int width,
int height )
static

Outputs the contents of a grid.

Parameters
grid
width
height

◆ GetAdjacentWallsCount()

int MoreMountains.Tools.MMGridGenerator.GetAdjacentWallsCount ( int grid[,],
int x,
int y )
static

Returns the amount of adjacent walls for a specific coordinate.

Parameters
grid
x
y
Returns

◆ GetValueAtGridCoordinate()

int MoreMountains.Tools.MMGridGenerator.GetValueAtGridCoordinate ( int grid[,],
int x,
int y,
int errorValue )
static

Returns the int value at the specified coordinate on a grid.

Parameters
grid
x
y
errorValue
Returns

◆ InvertGrid()

int[,] MoreMountains.Tools.MMGridGenerator.InvertGrid ( int grid[,])
static

Inverts the contents of a grid (1 becomes 0, 0 becomes 1)

Parameters
grid
Returns

◆ PrepareGrid()

int[,] MoreMountains.Tools.MMGridGenerator.PrepareGrid ( ref int width,
ref int height )
static

Prepares the grid array for use in the generate methods.

Parameters
width
height
Returns

◆ SetGridCoordinate()

bool MoreMountains.Tools.MMGridGenerator.SetGridCoordinate ( int grid[,],
int x,
int y,
int value )
static

Carves or adds to the grid.

Parameters
grid
x
y
value
Returns

◆ SmoothenGrid()

int[,] MoreMountains.Tools.MMGridGenerator.SmoothenGrid ( int grid[,])
static

Smoothens a grid to get rid of spikes / isolated points.

Parameters
grid
Returns

The documentation for this class was generated from the following file:
  • H:/Code/MoreMountains/feel/Assets/Feel/MMTools/Accessories/MMProcedural/MMGridGenerators/MMGridGenerator.cs