|
nanoMMO 0.97.8
Building an MMO: The Engineering Series
|
#include <terrain.h>
Public Member Functions | |
| Grid (T *cells, int rows, int columns) | |
| T & | operator[] (int j, int i) const |
A grid kept in a single array, a row after another: grid[j, i] is the i-th of row j. Like a span, it points into the array and doesn't keep it. An index outside its row or column stops the program, as a column past the end of a row would still be inside the array, in the next row.
|
inline |
|
inline |