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

b3::parsers::cod5::Cod5Parser Class Reference

Inheritance diagram for b3::parsers::cod5::Cod5Parser:
b3::parsers::cod2::Cod2Parser b3::parsers::cod2::Cod2Parser b3::parsers::cod::CodParser b3::parsers::cod::CodParser b3::parsers::cod::CodParser b3::parsers::cod::CodParser b3::parsers::q3a::abstractParser::AbstractParser b3::parsers::q3a::abstractParser::AbstractParser b3::parsers::q3a::abstractParser::AbstractParser b3::parsers::q3a::abstractParser::AbstractParser b3::parsers::q3a::abstractParser::AbstractParser b3::parsers::q3a::abstractParser::AbstractParser b3::parsers::q3a::abstractParser::AbstractParser b3::parsers::q3a::abstractParser::AbstractParser b3::parsers::cod7::Cod7Parser b3::parsers::cod7::Cod7Parser

List of all members.

Public Member Functions

def parseLine
def translateAction
def OnK
def OnJt
def sync
def parseLine
def translateAction
def OnK
def OnJt
def sync

Static Public Attributes

string gameName = 'cod5'
 IpsOnly = False

Static Private Attributes

int _guidLength = 9
tuple _actionMap

Member Function Documentation

def b3::parsers::cod5::Cod5Parser::OnJt (   self,
  action,
  data,
  match = None 
)
def b3::parsers::cod5::Cod5Parser::OnJt (   self,
  action,
  data,
  match = None 
)
def b3::parsers::cod5::Cod5Parser::OnK (   self,
  action,
  data,
  match = None 
)
def b3::parsers::cod5::Cod5Parser::OnK (   self,
  action,
  data,
  match = None 
)
def b3::parsers::cod5::Cod5Parser::parseLine (   self,
  line 
)
Parse a single line from the log file

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

Reimplemented in b3::parsers::cod7::Cod7Parser, and b3::parsers::cod7::Cod7Parser.

def b3::parsers::cod5::Cod5Parser::parseLine (   self,
  line 
)
Parse a single line from the log file

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

Reimplemented in b3::parsers::cod7::Cod7Parser, and b3::parsers::cod7::Cod7Parser.

def b3::parsers::cod5::Cod5Parser::sync (   self)
\
For all connected players returned by self.getPlayerList(), get the matching Client
object from self.clients (with self.clients.getByCID(cid) or similar methods) and
look for inconsistencies. If required call the client.disconnect() method to remove
a client from self.clients.
This is mainly useful for games where clients are identified by the slot number they
occupy. On map change, a player A on slot 1 can leave making room for player B who
connects on slot 1.

Reimplemented from b3::parsers::cod::CodParser.

def b3::parsers::cod5::Cod5Parser::sync (   self)
\
For all connected players returned by self.getPlayerList(), get the matching Client
object from self.clients (with self.clients.getByCID(cid) or similar methods) and
look for inconsistencies. If required call the client.disconnect() method to remove
a client from self.clients.
This is mainly useful for games where clients are identified by the slot number they
occupy. On map change, a player A on slot 1 can leave making room for player B who
connects on slot 1.

Reimplemented from b3::parsers::cod::CodParser.

def b3::parsers::cod5::Cod5Parser::translateAction (   self,
  action,
  data,
  match = None 
)
def b3::parsers::cod5::Cod5Parser::translateAction (   self,
  action,
  data,
  match = None 
)

Member Data Documentation

Initial value:
(
        'ad', # Actor Damage (dogs)
        'vd', # Vehicle Damage
        'bd', # Bomb Defused
        'bp', # Bomb Planted
        'fc', # Flag Captured
        'fr', # Flag Returned
        'ft', # Flag Taken
        'rc', # Radio Captured
        'rd'  # Radio Destroyed
    )

Reimplemented in b3::parsers::cod7::Cod7Parser.

int b3::parsers::cod5::Cod5Parser::_guidLength = 9 [static, private]

Reimplemented from b3::parsers::cod::CodParser.

Reimplemented in b3::parsers::cod7::Cod7Parser.

string b3::parsers::cod5::Cod5Parser::gameName = 'cod5' [static]

Reimplemented from b3::parsers::cod2::Cod2Parser.

Reimplemented in b3::parsers::cod7::Cod7Parser.


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