Module MySpecialLists :: Class MY_SingleElementList
[hide private]
[frames] | no frames]

Class MY_SingleElementList

source code

object --+
         |
        MY_SingleElementList

singleton class which holds lists for all ingame stairs, items, hurdles and bullets

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
setStairIndexList(self, scene)
sets the stair list filled with their indices, to get a random/specific stair later
source code
 
setItemIndexList(self, scene)
sets the item list, filled with their indices, to get a random/specific item later
source code
 
setMerchList(self, scene)
creates a list of all merchandise items
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
a new object with type S, a subtype of T
__new__(self, *args, **kargs) source code
Class Variables [hide private]
  __instance = None
Instance Variables [hide private]
List [Blender scene indices, KX_GameObject] itemList
the list that conatins all items that exists for the game (NOT in the game)
List of KX_GameObject merchList
the list that conatins all merch items that exists for the game (NOT in the game, so there is a static length per game of this list )
List of KX_GameObject merchObjectList
the list that conatins all merch objects that are used in the game (because linked objects appear twice, so this was a simple workaround to get a faultless game, sorry)
List of Blender scene indices stairList
the list that conatins all stairs and patforms that exists for the game (NOT in the game)
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__new__(self, *args, **kargs)
Static Method

source code 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__
(inherited documentation)

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

setStairIndexList(self, scene)

source code 

sets the stair list filled with their indices, to get a random/specific stair later

Parameters:
  • scene (KX_Scene) - the blender scene object which holds all objects

setItemIndexList(self, scene)

source code 

sets the item list, filled with their indices, to get a random/specific item later

Parameters:
  • scene (KX_Scene) - the blender scene object which holds all objects

setMerchList(self, scene)

source code 

creates a list of all merchandise items

Parameters:
  • scene (KX_Scene) - the blender scene object which holds all objects