Public Member Functions | |
def | __init__ |
def | introduction |
def | catchingUp |
Public Attributes | |
xmin | |
Lowest x coordinate in GameSpace. | |
xmax | |
Highest x coordinate in GameSpace. | |
ymin | |
Lowest y coordinate in GameSpace. | |
ymax | |
Highest y coordinate in GameSpace. | |
zmin | |
Lowest z coordinate in GameSpace. | |
zmax | |
Highest z coordinate in GameSpace. | |
origin | |
3D origin of GameSpace | |
grid | |
An object of Class Grid. |
Class that defines the game's 3d coordinate system
def Space.GameSpace.__init__ | ( | self, | |
xmin, | |||
xmax, | |||
ymin, | |||
ymax, | |||
zmin, | |||
zmax, | |||
origin = (0, 0 , |
|||
cellsize = 0.0 |
|||
) |
GameSpace.__init__(xmin, xmax, ymin, ymax, zmin, zmax, origin, cellsize = 0.0 ) Initialization Function for a GameSpace 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 zmin is the lowest z coordinate zmax is the highest z coordinate origin is a tuple (x,y,z) that sets the systems origin cellsize is the size of a cell in a grid to be superimposed over the floor. a zero size indicates there will be no grid
def Space.GameSpace.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.GameSpace.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.