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

b3::parsers::cod4::Cod4Parser Class Reference

Inheritance diagram for b3::parsers::cod4::Cod4Parser:
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::cod6::Cod6Parser b3::parsers::cod6::Cod6Parser b3::parsers::cod8::Cod8Parser b3::parsers::cod8::Cod8Parser b3::parsers::cod8::Cod8Parser b3::parsers::cod8::Cod8Parser

List of all members.

Public Member Functions

def OnJt
def OnK
def unban
def sync
def authorizeClients
def OnJt
def OnK
def unban
def sync
def authorizeClients

Static Public Attributes

string gameName = 'cod4'
 IpsOnly = False

Static Private Attributes

int _guidLength = 32
tuple _regPlayer = re.compile(r"""^\s* (?P<slot>[0-9]+)\s+ (?P<score>[0-9-]+)\s+ (?P<ping>[0-9]+)\s+ (?P<guid>[0-9a-f]+)\s+ (?P<name>.*?)\s+ (?P<last>[0-9]+?)\s* (?P<ip>(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])):? (?P<port>-?[0-9]{1,5})\s* (?P<qport>-?[0-9]{1,5})\s+ (?P<rate>[0-9]+)$""", re.IGNORECASE | re.VERBOSE)

Member Function Documentation

def b3::parsers::cod4::Cod4Parser::authorizeClients (   self)
\
For all connected players, fill the client object with properties allowing to find 
the user in the database (usualy guid, or punkbuster id, ip) and call the 
Client.auth() method 

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

def b3::parsers::cod4::Cod4Parser::authorizeClients (   self)
\
For all connected players, fill the client object with properties allowing to find 
the user in the database (usualy guid, or punkbuster id, ip) and call the 
Client.auth() method 

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

def b3::parsers::cod4::Cod4Parser::OnJt (   self,
  action,
  data,
  match = None 
)
def b3::parsers::cod4::Cod4Parser::OnJt (   self,
  action,
  data,
  match = None 
)
def b3::parsers::cod4::Cod4Parser::OnK (   self,
  action,
  data,
  match = None 
)

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

def b3::parsers::cod4::Cod4Parser::OnK (   self,
  action,
  data,
  match = None 
)

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

def b3::parsers::cod4::Cod4Parser::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::cod4::Cod4Parser::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::cod4::Cod4Parser::unban (   self,
  client,
  reason = '',
  admin = None,
  silent = False,
  kwargs 
)
\
unban a given player on the game server

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

def b3::parsers::cod4::Cod4Parser::unban (   self,
  client,
  reason = '',
  admin = None,
  silent = False,
  kwargs 
)
\
unban a given player on the game server

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


Member Data Documentation

tuple b3::parsers::cod4::Cod4Parser::_regPlayer = re.compile(r"""^\s* (?P<slot>[0-9]+)\s+ (?P<score>[0-9-]+)\s+ (?P<ping>[0-9]+)\s+ (?P<guid>[0-9a-f]+)\s+ (?P<name>.*?)\s+ (?P<last>[0-9]+?)\s* (?P<ip>(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])):? (?P<port>-?[0-9]{1,5})\s* (?P<qport>-?[0-9]{1,5})\s+ (?P<rate>[0-9]+)$""", re.IGNORECASE | re.VERBOSE) [static, private]

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