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__, __delattr__, __eq__, __ge__, __getattribute__, __gt__, __hash__, __instancecheck__, __le__, __lt__, __ne__, __repr__, __setattr__, __subclasscheck__, __subclasses__, mro

Inherited from object: __format__, __reduce__, __reduce_ex__, __sizeof__, __str__, __subclasshook__

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__

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__