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

Public Member Functions

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

Additional Inherited Members

- Data Fields inherited from Script
 nextscript
 

Detailed Description

Definition at line 624 of file campaign_lib.py.

Constructor & Destructor Documentation

def __init__ (   self,
  nextscript = None 
)

Definition at line 625 of file campaign_lib.py.

626  def __init__(self,nextscript=None):
Script.__init__(self,nextscript)

Member Function Documentation

def __call__ (   self,
  room,
  subnodes 
)

Definition at line 627 of file campaign_lib.py.

628  def __call__(self,room,subnodes):
629  Script.__call__(self,room,subnodes)
630  if VS.networked():
631  return True
632  cp=VS.getCurrentPlayer()
633  un=VS.getPlayerX(cp)
634  if not un.isNull():
635  key="credits_stack"
636  length=Director.getSaveDataLength(cp,key)
637  un.addCredits(Director.getSaveData(cp,key,length-1))
638  Director.eraseSaveData(cp,key,length-1);
639  return True

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