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

Public Member Functions

def checkValidity
 
- Public Member Functions inherited from Argument
def __init__
 
def set
 
def isValid
 
def checkValidity
 
def warn
 
def printwarnings
 

Static Public Attributes

string NAME = "ShipFactionPair"
 
- Static Public Attributes inherited from Argument
string NAME = "Argument"
 

Additional Inherited Members

- Data Fields inherited from Argument
 warnings
 
 value
 
 nextarg
 

Detailed Description

Definition at line 262 of file verify_missions.py.

Member Function Documentation

def checkValidity (   self)

Definition at line 266 of file verify_missions.py.

References locale.str(), SaveVariableCondition.value, _Stop.value, Argument.value, ErrorDuringImport.value, Boolean.value, DateTime.value, MiniFieldStorage.value, SetSaveVariable.value, Morsel.value, GUIRadioButton.value, Argument.warn(), and Traverser.warn().

267  def checkValidity(self):
268  if not isinstance(self.value,tuple):
269  self.warn("is not a tuple")
270  return False
271  if len(self.value) != 2:
272  self.warn("%s does not have a length of 2")
273  return False
274  if self.value[0] not in faction_ships.stattable.keys():
275  self.warn("%s is not a valid shiptype")%str(self.value[0])
276  return False
277  if self.value[1] not in VS._factions:
278  self.warn("%s is not a valid faction")%str(self.value[1])
279  return False
280  return True

Field Documentation

string NAME = "ShipFactionPair"
static

Definition at line 264 of file verify_missions.py.


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