Vega strike Python Modules doc  0.5.1
Documentation of the " Modules " folder of Vega strike
 All Data Structures Namespaces Files Functions Variables
SetCredits Class Reference
Inheritance diagram for SetCredits:
Script

Public Member Functions

def __init__
 
def __call__
 
- Public Member Functions inherited from Script
def __init__
 
def __call__
 

Data Fields

 creds
 
- Data Fields inherited from Script
 nextscript
 

Detailed Description

Definition at line 596 of file campaign_lib.py.

Constructor & Destructor Documentation

def __init__ (   self,
  numcreds,
  nextscript = None 
)

Definition at line 597 of file campaign_lib.py.

598  def __init__(self,numcreds,nextscript=None):
599  Script.__init__(self,nextscript)
self.creds=numcreds

Member Function Documentation

def __call__ (   self,
  room,
  subnodes 
)

Definition at line 600 of file campaign_lib.py.

References HaveCredits.creds, AddCredits.creds, RemoveCredits.creds, and SetCredits.creds.

601  def __call__(self,room,subnodes):
602  Script.__call__(self,room,subnodes)
603  if VS.networked():
604  return True
605  un=VS.getPlayer()
606  if not un.isNull():
607  un.addCredits(self.creds-un.getCredits())
return True

Field Documentation

creds

Definition at line 599 of file campaign_lib.py.


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