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

Public Member Functions

def __init__ (self, code, shotCode)
 
def SetCurrentState (self, stateCode)
 parse state from bus More...
 
def Update (self, dt)
 virtual weapon logic (cooloff etc.) More...
 
def ShootsThisFrame (self)
 Return whether shot is fired this round. More...
 

Public Attributes

 code
 
 shotCode
 
 player
 
 cooloff
 
 heat
 
 primaryWasReleased
 
 primaryPressed
 

Constructor & Destructor Documentation

def lib.Weapon.Weapon.__init__ (   self,
  code,
  shotCode 
)

Member Function Documentation

def lib.Weapon.Weapon.SetCurrentState (   self,
  stateCode 
)

parse state from bus

def lib.Weapon.Weapon.ShootsThisFrame (   self)

Return whether shot is fired this round.

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

virtual weapon logic (cooloff etc.)

Member Data Documentation

lib.Weapon.Weapon.code
lib.Weapon.Weapon.cooloff
lib.Weapon.Weapon.heat
lib.Weapon.Weapon.player
lib.Weapon.Weapon.primaryPressed
lib.Weapon.Weapon.primaryWasReleased
lib.Weapon.Weapon.shotCode

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