SpaceNLasers
Public Member Functions | Public Attributes | List of all members
lib.GameEngine.GameEngine Class Reference
Inheritance diagram for lib.GameEngine.GameEngine:
Inheritance graph
[legend]
Collaboration diagram for lib.GameEngine.GameEngine:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, gameHotLine, hwconfig, menugod, beamer)
 
def Effect (self, name)
 Starts a global effect Global effects are: fog, stroboscope etc. More...
 
def LogEvent (self, event)
 Log an Event for later analysis. More...
 
def AddBusError (self, e)
 
def Run (self)
 Start the game engine and loop-run games started from MenuGod. More...
 
def RunGame
 Run a specific game. More...
 

Public Attributes

 gameHotLine
 
 busErrorLog
 
 soundManager
 
 sound
 
 beamer
 
 menugod
 
 eventLog
 
 globalConfig
 
 weapons
 
 effects
 
 hardwareTargets
 
 targetGroupIDs
 

Constructor & Destructor Documentation

def lib.GameEngine.GameEngine.__init__ (   self,
  gameHotLine,
  hwconfig,
  menugod,
  beamer 
)
Parameters
gameHotLineSerialHalfDuplex object for bus communication
hwconfigfilename of hardware configuration
menugodwhich menugod host to connect to. empty string for server mode, None for testing FakeMenuGod
beamersimilar connection for non-controlling connection. None disables beamer output

Member Function Documentation

def lib.GameEngine.GameEngine.AddBusError (   self,
  e 
)
def lib.GameEngine.GameEngine.Effect (   self,
  name 
)

Starts a global effect Global effects are: fog, stroboscope etc.

def lib.GameEngine.GameEngine.LogEvent (   self,
  event 
)

Log an Event for later analysis.

def lib.GameEngine.GameEngine.Run (   self)

Start the game engine and loop-run games started from MenuGod.

def lib.GameEngine.GameEngine.RunGame (   self,
  gamestart,
  lobbymode = False 
)

Run a specific game.

Parameters
gamestartDictionary as retrieved from MenuGod.CheckNewGameStart
lobbymodeIf set to True, a gamestart message will be expected from Menugod. If False (default), the game aborts on all messages received.

Member Data Documentation

lib.GameEngine.GameEngine.beamer
lib.GameEngine.GameEngine.busErrorLog
lib.GameEngine.GameEngine.effects
lib.GameEngine.GameEngine.eventLog
lib.GameEngine.GameEngine.gameHotLine
lib.GameEngine.GameEngine.globalConfig
lib.GameEngine.GameEngine.hardwareTargets
lib.GameEngine.GameEngine.menugod
lib.GameEngine.GameEngine.sound
lib.GameEngine.GameEngine.soundManager
lib.GameEngine.GameEngine.targetGroupIDs
lib.GameEngine.GameEngine.weapons

The documentation for this class was generated from the following file: