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

Public Member Functions

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

Data Fields

 creds
 

Detailed Description

Definition at line 42 of file campaign_lib.py.

Constructor & Destructor Documentation

def __init__ (   self,
  numcreds 
)

Definition at line 43 of file campaign_lib.py.

43 
44  def __init__(self,numcreds):
45  Condition.__init__(self)
self.creds=numcreds

Member Function Documentation

def __call__ (   self)

Definition at line 46 of file campaign_lib.py.

References HaveCredits.creds, debug.debug, and locale.str().

46 
47  def __call__(self):
48  un=VS.getPlayer()
49  if not un.isNull():
50  cc=un.getCredits()
51  ret= (cc>=self.creds)
52  debug.debug("Have at least "+str(self.creds)+" credits? "+str(cc)+" >= it? "+str(ret))
53  return ret
54  return False

Field Documentation

creds

Definition at line 45 of file campaign_lib.py.


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