BigBrotherBot v1.6.1
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 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,
  map 
)
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,
  cid,
  _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,
  mapname 
)
Change levelname to real name 
def b3::parsers::bfbc2::Bfbc2Parser::getHardName (   self,
  mapname 
)
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,
  team 
)
convert BFBC2 team numbers to B3 team numbers

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

def b3::parsers::bfbc2::Bfbc2Parser::messagebig (   self,
  client,
  text 
)
def b3::parsers::bfbc2::Bfbc2Parser::OnPlayerSquadchange (   self,
  action,
  data 
)
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,
  action,
  data 
)
player.onTeamChange <soldier name: player name> <team: Team ID> <squad: Squad ID>
Effect: Player might have changed team
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,
  msg 
)
\
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:
(
        '3dSpotting',
        'adminPassword',
        'bannerUrl',
        'crossHair',
        'currentPlayerLimit',
        'friendlyFire',
        'gamePassword',
        'hardCore',
        'killCam',
        'maxPlayerLimit',
        'miniMap',
        'miniMapSpotting',
        'playerLimit',
        'punkBuster',
        'rankLimit',
        'ranked',
        'serverDescription',
        'teamBalance',
        'thirdPersonVehicleCameras'
    )

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