BigBrotherBot v1.7.0
System Development Information for the BigBrotherBot project.

b3::parsers::bfbc2::Bfbc2Parser Class Reference

Inheritance diagram for b3::parsers::bfbc2::Bfbc2Parser:
b3::parsers::frostbite::abstractParser::AbstractParser b3::parser::Parser

List of all members.

Public Member Functions

def startup
def pluginsStarted
def saybigqueuelistener
def checkVersion
def OnPlayerTeamchange
def OnPlayerSquadchange
def getEasyName
def getHardName
def getTeam
def getClient
def getServerVars
def messagebig
def saybig
def rotateMap
def changeMap

Static Public Attributes

string gameName = 'bfbc2'
tuple saybigqueue = Queue.Queue()
 saybigqueuelistener = None

Static Private Attributes

tuple _gameServerVars

Member Function Documentation

def b3::parsers::bfbc2::Bfbc2Parser::changeMap (   self,
Change to the given map

1) determine the level name
    If map is of the form 'Levels/MP_001' and 'Levels/MP_001' is a supported
    level for the current game mod, then this level is loaded.
    In other cases, this method assumes it is given a 'easy map name' (like
    'Port Valdez') and it will do its best to find the level name that seems
    to be for 'Port Valdez' within the supported levels.

    If no match is found, then instead of loading the map, this method 
    returns a list of candidate map names
2) if we got a level name
    if the level is not in the current rotation list, then add it to 
    the map list and load it

Reimplemented from b3::parser::Parser.

def b3::parsers::bfbc2::Bfbc2Parser::checkVersion (   self)
def b3::parsers::bfbc2::Bfbc2Parser::getClient (   self,
  _guid = None 
Get a connected client from storage or create it
B3 CID   <--> ingame character name
B3 GUID  <--> EA_guid

Reimplemented from b3::parsers::frostbite::abstractParser::AbstractParser.

def b3::parsers::bfbc2::Bfbc2Parser::getEasyName (   self,
Change levelname to real name 
def b3::parsers::bfbc2::Bfbc2Parser::getHardName (   self,
Change real name to level name 
def b3::parsers::bfbc2::Bfbc2Parser::getServerVars (   self)
Update the game property from server fresh data

Reimplemented from b3::parsers::frostbite::abstractParser::AbstractParser.

def b3::parsers::bfbc2::Bfbc2Parser::getTeam (   self,
convert BFBC2 team numbers to B3 team numbers

Reimplemented from b3::parsers::frostbite::abstractParser::AbstractParser.

def b3::parsers::bfbc2::Bfbc2Parser::messagebig (   self,
def b3::parsers::bfbc2::Bfbc2Parser::OnPlayerSquadchange (   self,
player.onSquadChange <soldier name: player name> <team: Team ID> <squad: Squad ID>    

Effect: Player might have changed squad
def b3::parsers::bfbc2::Bfbc2Parser::OnPlayerTeamchange (   self,
player.onTeamChange <soldier name: player name> <team: Team ID> <squad: Squad ID>
Effect: Player might have changed team
def b3::parsers::bfbc2::Bfbc2Parser::pluginsStarted (   self)
Called after the parser loaded and started all plugins. 
Overwrite this in parsers to take actions once plugins are ready

Reimplemented from b3::parser::Parser.

def b3::parsers::bfbc2::Bfbc2Parser::rotateMap (   self)
Load the next map (not level). If the current game mod plays each level twice
to get teams the chance to play both sides, then this rotate a second
time to really switch to the next map

Reimplemented from b3::parser::Parser.

def b3::parsers::bfbc2::Bfbc2Parser::saybig (   self,
broadcast a message to all players in a way that will catch their attention.

Reimplemented from b3::parser::Parser.

def b3::parsers::bfbc2::Bfbc2Parser::startup (   self)
Called after the parser is created before run(). Overwrite this
for anything you need to initialize you parser with.

Reimplemented from b3::parsers::frostbite::abstractParser::AbstractParser.

Member Data Documentation

Initial value:

Reimplemented from b3::parsers::frostbite::abstractParser::AbstractParser.

tuple b3::parsers::bfbc2::Bfbc2Parser::saybigqueue = Queue.Queue() [static]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Properties