Vega strike Python Modules doc
0.5.1
Documentation of the " Modules " folder of Vega strike
|
Public Member Functions | |
def | __init__ |
def | getFactionData |
def | translateKeyToDictionary |
def | makeNewsKeyList |
def | getNewsList |
def | getBestMatch |
Data Fields | |
faction_dict | |
news_dict | |
Each instance of this class acts as an accessor to the faction specific information stored for the purpose of translating news stories.
Definition at line 141 of file dynamic_news.py.
def __init__ | ( | self) |
Definition at line 145 of file dynamic_news.py.
def getBestMatch | ( | self, | |
stories, | |||
varlist | |||
) |
From the provided list of stories, return the item who's \"scale\" most closely matches that of the given event (minimise variance).
Definition at line 227 of file dynamic_news.py.
References debug.error, and locale.str().
def getFactionData | ( | self, | |
faction, | |||
variable | |||
) |
Return the variable information stored for this faction.
Definition at line 150 of file dynamic_news.py.
References debug.error, and DynamicNewsData.faction_dict.
def getNewsList | ( | self, | |
key_list, | |||
get_neutral = False |
|||
) |
Searches the item dictionary to find matching items for this given event.
Definition at line 214 of file dynamic_news.py.
References DynamicNewsData.news_dict.
def makeNewsKeyList | ( | self, | |
news_list, | |||
news_faction, | |||
pov | |||
) |
Creates a list of the structure used to store each news event.
Definition at line 203 of file dynamic_news.py.
References DynamicNewsData.translateKeyToDictionary().
def translateKeyToDictionary | ( | self, | |
variable | |||
) |
Translates the information from the stored values to those used to lookup items in the item dictionary.
Definition at line 164 of file dynamic_news.py.
faction_dict |
Definition at line 147 of file dynamic_news.py.
news_dict |
Definition at line 148 of file dynamic_news.py.