List of all members.
Detailed Description
Constructor & Destructor Documentation
Cell.__init__(self, xb, xe, yb, ye)
Initialization function for a Cell Object
xb is xbegin
xe in xend
same for yb and ye
Member Function Documentation
Cell.addObject(obj)
adds a GameObject obj to the cell's gameobjects[].
Returns True for success and False for failure
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.
Cell.center(self)
Returns the (X, Y) coordinate of the Cell's center point
Cell.getObjects()
returns a list of game objects located in the Cell
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.
Cell.removeObject(obj)
removes a GameObject obj from the cell's gameobjects[].
The documentation for this class was generated from the following file: