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

b3::parsers::et::EtParser Class Reference

Inheritance diagram for b3::parsers::et::EtParser:
b3::parsers::q3a::abstractParser::AbstractParser b3::parser::Parser

List of all members.

Public Member Functions

def startup
def message
def OnConnectinfo
def OnClientuserinfochangedguid
def OnGib
def OnKill
def OnSayteamc
def OnSayc

Static Public Attributes

string gameName = 'et'
 privateMsg = False
 PunkBuster = None

Static Private Attributes

dictionary _settings = {}
dictionary _commands = {}
dictionary _eventMap
tuple _lineClear = re.compile(r'^(?:[0-9:.]+\s?)?')
tuple _lineFormats

Member Function Documentation

def b3::parsers::et::EtParser::message (   self,
  client,
  text 
)
\
display a message to a given player

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

def b3::parsers::et::EtParser::OnClientuserinfochangedguid (   self,
  action,
  data,
  match = None 
)
def b3::parsers::et::EtParser::OnConnectinfo (   self,
  action,
  data,
  match = None 
)
def b3::parsers::et::EtParser::OnGib (   self,
  action,
  data,
  match = None 
)
def b3::parsers::et::EtParser::OnKill (   self,
  action,
  data,
  match = None 
)
def b3::parsers::et::EtParser::OnSayc (   self,
  action,
  data,
  match = None 
)
def b3::parsers::et::EtParser::OnSayteamc (   self,
  action,
  data,
  match = None 
)
def b3::parsers::et::EtParser::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::q3a::abstractParser::AbstractParser.


Member Data Documentation

dictionary b3::parsers::et::EtParser::_commands = {} [static, private]
dictionary b3::parsers::et::EtParser::_eventMap [static, private]
Initial value:
{
        'warmup' : b3.events.EVT_GAME_WARMUP,
        'restartgame' : b3.events.EVT_GAME_ROUND_END
    }

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

tuple b3::parsers::et::EtParser::_lineClear = re.compile(r'^(?:[0-9:.]+\s?)?') [static, private]
tuple b3::parsers::et::EtParser::_lineFormats [static, private]
Initial value:
(
        #1579:03ConnectInfo: 0: E24F9B2702B9E4A1223E905BF597FA92: ^w[^2AS^w]^2Lead: 3: 3: 24.153.180.106:2794
        re.compile(r'^(?P<action>[a-z]+):\s*(?P<data>(?P<cid>[0-9]+):\s*(?P<pbid>[0-9A-Z]{32}):\s*(?P<name>[^:]+):\s*(?P<num1>[0-9]+):\s*(?P<num2>[0-9]+):\s*(?P<ip>[0-9.]+):(?P<port>[0-9]+))$', re.IGNORECASE),
        #1536:17sayc: 0: ^w[^2AS^w]^2Lead:  sorry...
        #1536:34sayteamc: 17: ^1[^7DP^1]^4Timekiller: ^4ammo ^2here !!!!!
        re.compile(r'^(?P<action>[a-z]+):\s*(?P<data>(?P<cid>[0-9]+):\s*(?P<name>.+):\s+(?P<text>.*))$', re.IGNORECASE),
        #1536:37Kill: 1 18 9: ^1klaus killed ^1[pura]fox.nl by MOD_MP40
        re.compile(r'^(?P<action>[a-z]+):\s*(?P<data>(?P<cid>[0-9]+)\s(?P<acid>[0-9]+)\s(?P<aweap>[0-9]+):\s*(?P<text>.*))$', re.IGNORECASE),
        re.compile(r'^(?P<action>[a-z]+):\s*(?P<data>(?P<cid>[0-9]+):\s*(?P<text>.*))$', re.IGNORECASE),
        re.compile(r'^(?P<action>[a-z]+):\s*(?P<data>(?P<cid>[0-9]+)\s(?P<text>.*))$', re.IGNORECASE),
        re.compile(r'^(?P<action>[a-z]+):\s*(?P<data>.*)$', re.IGNORECASE)
    )

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

dictionary b3::parsers::et::EtParser::_settings = {} [static, private]

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