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

Public Member Functions

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

Data Fields

 num
 

Detailed Description

Definition at line 139 of file campaign_lib.py.

Constructor & Destructor Documentation

def __init__ (   self,
  num = 0 
)

Definition at line 140 of file campaign_lib.py.

141  def __init__(self,num=0):
142  Condition.__init__(self)
143  self.num=num

Member Function Documentation

def __call__ (   self)

Definition at line 144 of file campaign_lib.py.

References debug.debug, CargoSpaceCondition.num, AtMostActiveMissionsCondition.num, and locale.str().

145  def __call__(self):
146  debug.debug('*** have active missions <= ?')
147  debug.debug('*** '+str(VS.numActiveMissions()-1)+' <= '+str(self.num))
148  isactive=((VS.numActiveMissions()-1)<=self.num)
149  debug.debug('*** '+str(isactive))
150  return isactive

Field Documentation

num

Definition at line 142 of file campaign_lib.py.


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