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

Public Member Functions

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

Data Fields

 conds
 

Detailed Description

Definition at line 163 of file campaign_lib.py.

Constructor & Destructor Documentation

def __init__ (   self,
  conds,
  cond2 = None 
)

Definition at line 164 of file campaign_lib.py.

165  def __init__(self,conds,cond2=None):
166  Condition.__init__(self)
167  if cond2:
168  self.conds=[conds,cond2]
169  else:
170  self.conds=conds

Member Function Documentation

def __call__ (   self)

Definition at line 171 of file campaign_lib.py.

References OrCondition.conds.

172  def __call__(self):
173  for c in self.conds:
174  if c():
175  return True
176  return False

Field Documentation

conds

Definition at line 167 of file campaign_lib.py.


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