Public Member Functions | |
def | __init__ |
def | getGridPosition |
def | getCellObjects |
def | introduction |
def | catchingUp |
Public Attributes | |
cellsize | |
The size of a Cell. | |
xmin | |
The lowest x coordinate in the Grid. | |
xmax | |
The highest x coordinate in the Grid. | |
ymin | |
The lowest y coordinate in the Grid. | |
ymax | |
The highest y coordinate in the Grid. | |
g | |
Grid's Cell matrix. |
Class that divides a GameSpace object's floor plane in a grid
def Space.Grid.__init__ | ( | self, | |
xmin, | |||
xmax, | |||
ymin, | |||
ymax, | |||
cellsize | |||
) |
Grid.___init(xmin, xmax, ymin, ymax, cellsize) Initialization Function for a Grid object xmin is the lowest x coordinate xmax is the highest x coordinate ymin is the lowest y coordinate ymax is the highest y coordinate cellsize is the size of each cell
def Space.Grid.catchingUp | ( | self | ) |
Generates a JSON friendly dictionary with all the object's attributes and values. This function is intended as a update on the object's state, sent to receivers that are already able to identify the object.
def Space.Grid.getCellObjects | ( | self, | |
x, | |||
y | |||
) |
Grid.getCellObjects(x, y) return the list of GameObjects in the x,y cell
def Space.Grid.getGridPosition | ( | self, | |
pos | |||
) |
Grid.getGridPosition(pos) cell coordinates of a given 3d or 2d position pos
def Space.Grid.introduction | ( | self | ) |
Generates a JSON friendly dictionary with all the object's attributes and values. This function is intended as a first introduction of the object, to receivers that are unaware of its existence.