My Project
 All Classes Namespaces Functions Variables
Public Member Functions | Public Attributes
Space.Cell Class Reference

List of all members.

Public Member Functions

def __init__
def center
def addObject
def removeObject
def getObjects
def introduction
def catchingUp

Public Attributes

 xb
 x begin, lowest x coordinate that is in the cell
 xe
 x end, highest x coordinate that is in the cell
 yb
 y begin, lowest y coordinate that is in the cell
 ye
 y end, highest y coordinate that is in the cell
 gameobjects
 List of GameObjects (GameObject) currently in the Cell.

Detailed Description

a Grid object's cell

Constructor & Destructor Documentation

def Space.Cell.__init__ (   self,
  xb,
  xe,
  yb,
  ye 
)
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

def Space.Cell.addObject (   self,
  obj 
)
Cell.addObject(obj)
adds a GameObject obj to the cell's gameobjects[].
Returns True for success and False for failure
def Space.Cell.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.Cell.center (   self)
Cell.center(self)
Returns the (X, Y) coordinate of the Cell's center point
def Space.Cell.getObjects (   self)
Cell.getObjects()
returns a list of game objects located in the Cell
def Space.Cell.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.
def Space.Cell.removeObject (   self,
  obj 
)
Cell.removeObject(obj)
removes a GameObject obj from the cell's gameobjects[].

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables