Package horizons :: Package world :: Module ground :: Class GroundClass
[hide private]
[frames] | no frames]

Type GroundClass

source code

object --+    
         |    
      type --+
             |
            GroundClass

Instance Methods [hide private]
the object's type
__init__(self, db, id, shape)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
a new object with type S, a subtype of T
__new__(self, db, id, shape) source code
 
_loadObject(cls, db)
Loads the ground object from the db (animations, etc)
source code
    Inherited from type
 
__call__(x, ...)
x(...)
 
__delattr__(...)
x.__delattr__('name') <==> del x.name
 
__eq__(x, y)
x==y
 
__ge__(x, y)
x>=y
 
__getattribute__(...)
x.__getattribute__('name') <==> x.name
 
__gt__(x, y)
x>y
 
__hash__(x)
hash(x)
bool
__instancecheck__()
check if an object is an instance
 
__le__(x, y)
x<=y
 
__lt__(x, y)
x<y
 
__ne__(x, y)
x!=y
 
__repr__(x)
repr(x)
 
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
bool
__subclasscheck__()
check if a class is a subclass
list of immediate subclasses
__subclasses__()
list
mro()
return a type's method resolution order
    Inherited from object
 
__format__(...)
default object formatter
 
__reduce__(...)
helper for pickle
 
__reduce_ex__(...)
helper for pickle
int
__sizeof__()
size of object in memory, in bytes
 
__str__(x)
str(x)
 
__subclasshook__(...)
Abstract classes can override this to customize issubclass().
Class Variables [hide private]
  log = logging.getLogger('world')
Properties [hide private]
    Inherited from type
  __abstractmethods__
  __base__
  __bases__
  __basicsize__
  __dictoffset__
  __flags__
  __itemsize__
  __mro__
  __name__
  __weakrefoffset__
    Inherited from object
  __class__
the object's class
Method Details [hide private]

__init__(self, db, id, shape)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • id - id in db for this specific ground class
  • db - DbReader instance to get data from
  • id - ground id.
Returns: the object's type
Overrides: object.__init__

__new__(self, db, id, shape)

source code 
Parameters:
  • id - ground id.
  • shape - ground shape (straight, curve_in, curve_out).
Returns: a new object with type S, a subtype of T
Overrides: object.__new__