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

Public Member Functions

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

Data Fields

 name
 
 value
 
- Data Fields inherited from Script
 nextscript
 

Detailed Description

Definition at line 393 of file campaign_lib.py.

Constructor & Destructor Documentation

def __init__ (   self,
  varname,
  varvalue,
  nextscript = None 
)

Definition at line 394 of file campaign_lib.py.

395  def __init__(self,varname,varvalue,nextscript=None):
396  Script.__init__(self,nextscript)
397  self.name=str(varname)
398  self.value=int(varvalue)

Member Function Documentation

def __call__ (   self,
  room,
  subnodes 
)

Definition at line 399 of file campaign_lib.py.

References debug.debug, SaveVariableCondition.name, FileDelegate.name, Netscape.name, Class.name, Konqueror.name, Folder.name, MiniFieldStorage.name, SetSaveVariable.name, FieldStorage.name, campaign_lib.setSaveValue(), SaveVariableCondition.value, _Stop.value, ErrorDuringImport.value, Boolean.value, DateTime.value, MiniFieldStorage.value, SetSaveVariable.value, and Morsel.value.

400  def __call__(self,room,subnodes):
401  Script.__call__(self,room,subnodes)
402  if VS.networked():
403  return True
404  debug.debug("*** Setting \'%s : %d\'"%(self.name,self.value))
405  setSaveValue(VS.getCurrentPlayer(),self.name,self.value)
406  return True

Field Documentation

name

Definition at line 396 of file campaign_lib.py.

value

Definition at line 397 of file campaign_lib.py.


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