BigBrotherBot v1.6.0
System Development Information for the BigBrotherBot project.
Public Member Functions | Static Public Attributes | Private Attributes | Static Private Attributes

b3::parsers::etpro::EtproParser Class Reference

Inheritance diagram for b3::parsers::etpro::EtproParser:
b3::parsers::q3a::abstractParser::AbstractParser b3::parser::Parser

List of all members.

Public Member Functions

def startup
def getLineParts
def OnClientconnect
def OnClientuserinfo
def OnKill
def OnClientbegin
def OnClientdisconnect
def OnInitgame
def OnQmm
def OnEtpro
def OnPrivMsg
def parseUserInfo
def message
def sayDead
def getTeam
def defineGameType
def getMaps
def getNextMap
def sync

Static Public Attributes

string gameName = 'etpro'
 IpsOnly = False
 IpCombi = False
 PunkBuster = None
string MOD_UNKNOWN = '0'
 kill mode constants: modNames[meansOfDeath]
string MOD_MACHINEGUN = '1'
string MOD_BROWNING = '2'
string MOD_MG42 = '3'
string MOD_GRENADE = '4'
string MOD_ROCKET = '5'
string MOD_KNIFE = '6'
string MOD_LUGER = '7'
string MOD_COLT = '8'
string MOD_MP40 = '9'
string MOD_THOMPSON = '10'
string MOD_STEN = '11'
string MOD_GARAND = '12'
string MOD_SNOOPERSCOPE = '13'
string MOD_SILENCER = '14'
string MOD_FG42 = '15'
string MOD_FG42SCOPE = '16'
string MOD_PANZERFAUST = '17'
string MOD_GRENADE_LAUNCHER = '18'
string MOD_FLAMETHROWER = '19'
string MOD_GRENADE_PINEAPPLE = '20'
string MOD_CROSS = '21'
string MOD_MAPMORTAR = '22'
string MOD_MAPMORTAR_SPLASH = '23'
string MOD_KICKED = '24'
string MOD_GRABBER = '25'
string MOD_DYNAMITE = '26'
string MOD_AIRSTRIKE = '27'
string MOD_SYRINGE = '28'
string MOD_AMMO = '29'
string MOD_ARTY = '30'
string MOD_WATER = '31'
string MOD_SLIME = '32'
string MOD_LAVA = '33'
string MOD_CRUSH = '34'
string MOD_TELEFRAG = '35'
string MOD_FALLING = '36'
string MOD_SUICIDE = '37'
string MOD_TARGET_LASER = '38'
string MOD_TRIGGER_HURT = '39'
string MOD_EXPLOSIVE = '40'
string MOD_CARBINE = '41'
string MOD_KAR98 = '42'
string MOD_GPG40 = '43'
string MOD_M7 = '44'
string MOD_LANDMINE = '45'
string MOD_SATCHEL = '46'
string MOD_TRIPMINE = '47'
string MOD_SMOKEBOMB = '48'
string MOD_MOBILE_MG42 = '49'
string MOD_SILENCED_COLT = '50'
string MOD_GARAND_SCOPE = '51'
string MOD_CRUSH_CONSTRUCTION = '52'
string MOD_CRUSH_CONSTRUCTIONDEATH = '53'
string MOD_CRUSH_CONSTRUCTIONDEATH_NOATTACKER = '54'
string MOD_K43 = '55'
string MOD_K43_SCOPE = '56'
string MOD_MORTAR = '57'
string MOD_AKIMBO_COLT = '58'
string MOD_AKIMBO_LUGER = '59'
string MOD_AKIMBO_SILENCEDCOLT = '60'
string MOD_AKIMBO_SILENCEDLUGER = '61'
string MOD_SMOKEGRENADE = '62'
string MOD_SWAP_PLACES = '63'
string MOD_SWITCHTEAM = '64'
tuple Suicides
 meansOfDeath to be considered suicides

Private Attributes

 _clientConnectID

Static Private Attributes

dictionary _settings = {}
string _empty_name_default = 'EmptyNameDefault'
dictionary _commands = {}
dictionary _eventMap
tuple _lineClear = re.compile(r'^(?:[0-9:.]+\s?)?')
tuple _lineFormats
tuple _regPlayer = re.compile(r'^(?P<slot>[0-9]+)\s+(?P<score>[0-9-]+)\s+(?P<ping>[0-9]+)\s+(?P<name>.*?)\s+(?P<last>[0-9]+)\s+(?P<ip>[0-9.]+):(?P<port>[0-9-]+)\s+(?P<qport>[0-9]+)\s+(?P<rate>[0-9]+)$', re.I)
tuple _reColor = re.compile(r'(\^.)|[\x00-\x20]|[\x7E-\xff]')

Member Function Documentation

def b3::parsers::etpro::EtproParser::defineGameType (   self,
  gameTypeInt 
)
def b3::parsers::etpro::EtproParser::getLineParts (   self,
  line 
)
def b3::parsers::etpro::EtproParser::getMaps (   self)
\
return the available maps/levels name

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

def b3::parsers::etpro::EtproParser::getNextMap (   self)
def b3::parsers::etpro::EtproParser::getTeam (   self,
  team 
)
def b3::parsers::etpro::EtproParser::message (   self,
  client,
  text 
)
\
display a message to a given player

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

def b3::parsers::etpro::EtproParser::OnClientbegin (   self,
  action,
  data,
  match = None 
)
def b3::parsers::etpro::EtproParser::OnClientconnect (   self,
  action,
  data,
  match = None 
)
def b3::parsers::etpro::EtproParser::OnClientdisconnect (   self,
  action,
  data,
  match = None 
)
def b3::parsers::etpro::EtproParser::OnClientuserinfo (   self,
  action,
  data,
  match = None 
)
def b3::parsers::etpro::EtproParser::OnEtpro (   self,
  action,
  data,
  match = None 
)
def b3::parsers::etpro::EtproParser::OnInitgame (   self,
  action,
  data,
  match = None 
)
def b3::parsers::etpro::EtproParser::OnKill (   self,
  action,
  data,
  match = None 
)
def b3::parsers::etpro::EtproParser::OnPrivMsg (   self,
  origin,
  target,
  text 
)
def b3::parsers::etpro::EtproParser::OnQmm (   self,
  action,
  data,
  match = None 
)
def b3::parsers::etpro::EtproParser::parseUserInfo (   self,
  info 
)
def b3::parsers::etpro::EtproParser::sayDead (   self,
  msg 
)
def b3::parsers::etpro::EtproParser::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.

def b3::parsers::etpro::EtproParser::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::q3a::abstractParser::AbstractParser.


Member Data Documentation

dictionary b3::parsers::etpro::EtproParser::_commands = {} [static, private]
string b3::parsers::etpro::EtproParser::_empty_name_default = 'EmptyNameDefault' [static, private]
dictionary b3::parsers::etpro::EtproParser::_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::etpro::EtproParser::_lineClear = re.compile(r'^(?:[0-9:.]+\s?)?') [static, private]
tuple b3::parsers::etpro::EtproParser::_reColor = re.compile(r'(\^.)|[\x00-\x20]|[\x7E-\xff]') [static, private]
tuple b3::parsers::etpro::EtproParser::_regPlayer = re.compile(r'^(?P<slot>[0-9]+)\s+(?P<score>[0-9-]+)\s+(?P<ping>[0-9]+)\s+(?P<name>.*?)\s+(?P<last>[0-9]+)\s+(?P<ip>[0-9.]+):(?P<port>[0-9-]+)\s+(?P<qport>[0-9]+)\s+(?P<rate>[0-9]+)$', re.I) [static, private]
dictionary b3::parsers::etpro::EtproParser::_settings = {} [static, private]
string b3::parsers::etpro::EtproParser::gameName = 'etpro' [static]

kill mode constants: modNames[meansOfDeath]

Initial value:
(
        MOD_WATER,
        MOD_SLIME,
        MOD_LAVA,
        MOD_CRUSH,
        MOD_TELEFRAG,
        MOD_FALLING,
        MOD_SUICIDE,
        MOD_TARGET_LASER,
        MOD_TRIGGER_HURT,
        MOD_LANDMINE,
        MOD_TRIPMINE
    )

meansOfDeath to be considered suicides


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