-
Notifications
You must be signed in to change notification settings - Fork 2
Grid
mystborn edited this page Jun 22, 2018
·
1 revision
A ds_grid is a simple grid data structure. This class is largely untested and undocumented, so use at your own discretion. If needed, you can consult the source for information regarding the scripts.
Description: Gets the the width of the grid.
Returns: number
Description: Gets the height of the grid.
Returns: number
Argument | Expected Type | Description |
---|---|---|
width | number | The width of the grid. |
height | number | The height of the grid. |
Description: Creates a new grid with the spcified dimensions.
Returns: ds_grid
- add(x, y, value)
- add_disk(x_middle, y_middle, radius, value)
- add_grid_region(source, x1, y1, x2, y2, x_pos, y_pos)
- add_region(x1, y1, x2, y2, value)
- clear(default_value)
- copy()
- get(x, y)
- get_disk_max(x_middle, y_middle, radius)
- get_disk_mean(x_middle, y_middle, radius)
- get_disk_min(x_middle, y_middle, radius)
- get_disk_sum(x_middle, y_middle, radius)
- get_region_max(x1, y1, x2, y2)
- get_region_mean(x1, y1, x2, y2)
- get_region_min(x1, y1, x2, y2)
- get_region_sum(x1, y1, x2, y2)
- multiply(x, y, value)
- multiply_disk(x_middle, y_middle, radius, value)
- multiply_grid_region(source, x1, y1, x2, y2, x_pos, y_pos)
- multiply_region(x1, y1, x2, y2, value)
- resize(width, height)
- set(x, y, value)
- set_disk(x_middle, y_middle, radius, value)
- set_grid_region(source, x1, y1, x2, y2, x_pos, y_pos)
- set_region(x1, y1, x2, y2, value)
- shuffle()
- sort(column, ascending)
- value_exists_in_disk(x_middle, y_middle, radius, value)
- value_exists_in_region(x1, y1, x2, y2, value)
- value_position_in_disk(x_middle, y_middle, radius, value)
- value_position_in_region(x1, y1, x2, y2, value)