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

b3::parsers::wop15::Wop15Parser Class Reference

Inheritance diagram for b3::parsers::wop15::Wop15Parser:
b3::parsers::q3a::abstractParser::AbstractParser b3::parser::Parser

List of all members.

Public Member Functions

def startup
def OnClientconnect
def OnClientuserinfochanged
def OnClientdisconnect
def OnInitgame
def OnSay
def OnSayteam
def OnTell
def OnDamage
def OnKill
def OnItem
def OnClientuserinfo
def say
def getLineParts
def parseUserInfo
def defineGameType
def joinPlayers
def queryClientUserInfoByCid
def getByCidOrJoinPlayer
def queueEvent

Public Attributes

 world_client

Static Public Attributes

string gameName = 'wop15'
 PunkBuster = None

Static Private Attributes

dictionary _settings = {}
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<team>[0-9]+)\s+(?P<ping>[0-9]+)\s+(?P<name>.*?)\s+(?P<last>[0-9]+)\s+(?P<ip>[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::wop15::Wop15Parser::defineGameType (   self,
  gameTypeInt 
)
def b3::parsers::wop15::Wop15Parser::getByCidOrJoinPlayer (   self,
  cid 
)
def b3::parsers::wop15::Wop15Parser::getLineParts (   self,
  line 
)
def b3::parsers::wop15::Wop15Parser::joinPlayers (   self)
def b3::parsers::wop15::Wop15Parser::OnClientconnect (   self,
  action,
  data,
  match = None 
)
def b3::parsers::wop15::Wop15Parser::OnClientdisconnect (   self,
  action,
  data,
  match = None 
)
def b3::parsers::wop15::Wop15Parser::OnClientuserinfo (   self,
  action,
  data,
  match = None 
)
def b3::parsers::wop15::Wop15Parser::OnClientuserinfochanged (   self,
  action,
  data,
  match = None 
)
def b3::parsers::wop15::Wop15Parser::OnDamage (   self,
  action,
  data,
  match = None 
)
def b3::parsers::wop15::Wop15Parser::OnInitgame (   self,
  action,
  data,
  match = None 
)
def b3::parsers::wop15::Wop15Parser::OnItem (   self,
  action,
  data,
  match = None 
)
def b3::parsers::wop15::Wop15Parser::OnKill (   self,
  action,
  data,
  match = None 
)
 0:   MOD_UNKNOWN, Unknown Means od Death, shouldn't occur at all
 1:   MOD_PUMPER, Pumper
 2:   MOD_GAUNTLET, Punchy
 3:   MOD_MACHINEGUN, Nipper
 4:   MOD_GRENADE, Balloony
 5:   MOD_GRENADE_SPLASH, Ballony Splashdamage
 6:   MOD_ROCKET, Betty
 7:   MOD_ROCKET_SPLASH, Betty Splashdamage
 8:   MOD_PLASMA, BubbleG
 9:   MOD_PLASMA_SPLASH, BubbleG Splashdamage
10:   MOD_RAILGUN, Splasher
11:   MOD_LIGHTNING, Boaster
12:   MOD_BFG, Imperius
13:   MOD_BFG_SPLASH, Imperius Splashdamage
14:   MOD_KILLERDUCKS, Killerducks
15:   MOD_WATER, Died in Water
16:   MOD_SLIME, Died in Slime
17:   MOD_LAVA, Died in Lava
18:   MOD_CRUSH, Killed by a Mover
19:   MOD_TELEFRAG, Killed by a Telefrag
20:   MOD_FALLING, Died due to falling damage, but there is no falling damage in WoP
21:   MOD_SUICIDE, Commited Suicide
22:   MOD_TARGET_LASER, Killed by a laser, which don't exist in WoP
23:   MOD_TRIGGER_HURT, Killed by a trigger_hurt
24:   MOD_GRAPPLE, Killed by grapple, not used in WoP

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

def b3::parsers::wop15::Wop15Parser::OnSay (   self,
  action,
  data,
  match = None 
)
\
if self.type == b3.COMMAND:
    # we really need the second line
    text = self.read()
    if text:
msg = string.split(text[:-1], '^7: ', 1)
if not len(msg) == 2:
    return None
else:

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

def b3::parsers::wop15::Wop15Parser::OnSayteam (   self,
  action,
  data,
  match = None 
)
def b3::parsers::wop15::Wop15Parser::OnTell (   self,
  action,
  data,
  match = None 
)
def b3::parsers::wop15::Wop15Parser::parseUserInfo (   self,
  info 
)
def b3::parsers::wop15::Wop15Parser::queryClientUserInfoByCid (   self,
  cid 
)
: dumpuser 2
userinfo 2
--------
ip                   192.168.10.1
syc_color            0
cl_voip              1
cg_predictItems      1
sex                  male
handicap             100
team_headmodel       padman
team_model           padman
headmodel            padman
model                padman
snaps                40
rate                 25000
name                 PadPlayer
cl_guid              98E40E6546546546546546546543D572
teamoverlay          1
cg_smoothClients     0

: dumpuser 4
Player 4 is not on the server

def b3::parsers::wop15::Wop15Parser::queueEvent (   self,
  event,
  expire = 10 
)
Queue an event for processing

Reimplemented from b3::parser::Parser.

def b3::parsers::wop15::Wop15Parser::say (   self,
  msg 
)
\
broadcast a message to all players

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

def b3::parsers::wop15::Wop15Parser::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::wop15::Wop15Parser::_eventMap [static, private]
Initial value:
{
        'warmup' : EVT_GAME_WARMUP,
        'shutdowngame' : EVT_GAME_ROUND_END
    }

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

tuple b3::parsers::wop15::Wop15Parser::_lineClear = re.compile(r'^(?:[0-9:]+\s?)?') [static, private]
Initial value:
(
        #Generated with : WOP version 1.5
        #ClientConnect: 0 014D28A78B194CDA9CED1344D47B903B 84.167.190.158
        re.compile(r'^(?P<action>[a-z]+):\s(?P<data>(?P<cid>[0-9]+)\s(?P<cl_guid>[0-9a-z]{32})\s+(?P<ip>[0-9.]+))$', re.IGNORECASE),
        #ClientConnect: 2  151.16.71.226
        re.compile(r'^(?P<action>[a-z]+):\s(?P<data>(?P<cid>[0-9]+)\s+(?P<ip>[0-9.]+))$', re.IGNORECASE),
        #Tell: $cid $target-cid $text"        #Tell: -1 $target-cid $text"
        re.compile(r'^(?P<action>Tell):\s*(?P<data>(?P<cid>[-]?[0-9]+)\s+(?P<tcid>[0-9]+)\s+(?P<text>.+))$', re.IGNORECASE),
        #Award: 2 gauntlet
        ## disabled because no cid
        #re.compile(r'^(?P<action>Award):\s*(?P<data>.+))$', re.IGNORECASE)

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

tuple b3::parsers::wop15::Wop15Parser::_reColor = re.compile(r'(\^.)|[\x00-\x20]|[\x7E-\xff]') [static, private]
tuple b3::parsers::wop15::Wop15Parser::_regPlayer = re.compile(r'^(?P<slot>[0-9]+)\s+(?P<score>[0-9-]+)\s+(?P<team>[0-9]+)\s+(?P<ping>[0-9]+)\s+(?P<name>.*?)\s+(?P<last>[0-9]+)\s+(?P<ip>[0-9.]+)\s+(?P<qport>[0-9]+)\s+(?P<rate>[0-9]+)$', re.I) [static, private]

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