SpaceNLasers
Public Member Functions | Public Attributes | List of all members
lib.Target.Target Class Reference

Base class for gamemode target AIs. More...

Inheritance diagram for lib.Target.Target:
Inheritance graph
[legend]
Collaboration diagram for lib.Target.Target:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, hwTarget)
 
def Hit (self, event)
 Called from game engine when this target has been hit. More...
 
def CollectSerialBuffer (self)
 Return a list of all buffered bus commands. More...
 
def Update (self, dt)
 Do game mode specific stuff. More...
 
def SetColor (self, color)
 Write new color command for target to the target queue. More...
 
def Effect (self, name, args)
 Put effect to the target queue. More...
 

Public Attributes

 hardwareTarget
 
 buffer
 

Detailed Description

Base class for gamemode target AIs.

Constructor & Destructor Documentation

def lib.Target.Target.__init__ (   self,
  hwTarget 
)

Member Function Documentation

def lib.Target.Target.CollectSerialBuffer (   self)

Return a list of all buffered bus commands.

def lib.Target.Target.Effect (   self,
  name,
  args 
)

Put effect to the target queue.

def lib.Target.Target.Hit (   self,
  event 
)

Called from game engine when this target has been hit.

Parameters
eventa TargetHitEvent
def lib.Target.Target.SetColor (   self,
  color 
)

Write new color command for target to the target queue.

def lib.Target.Target.Update (   self,
  dt 
)

Do game mode specific stuff.

Member Data Documentation

lib.Target.Target.buffer
lib.Target.Target.hardwareTarget

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