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

b3::extplugins::xlrstats::XlrstatsPlugin Class Reference

Inheritance diagram for b3::extplugins::xlrstats::XlrstatsPlugin:
b3::plugin::Plugin

List of all members.

Public Member Functions

def startup
def onLoadConfig
def getCmd
def onEvent
def dumpEvent
def win_prob
def get_PlayerStats
def get_PlayerAnon
def get_WeaponStats
def get_Bodypart
def get_MapStats
def get_WeaponUsage
def get_Opponent
def get_PlayerBody
def get_PlayerMaps
def get_ActionStats
def get_PlayerActions
def save_Stat
def check_Assists
def kill
def damage
def suicide
def teamkill
def join
def roundstart
def action
def cmd_xlrstats
def cmd_xlrtopstats
def doTopList
def cmd_xlrhide
def snapshot_month
def snapshot_week
def updateTableColumns
def showTables
def optimizeTables
def repairTables
def calculateKillBonus

Public Attributes

 query
 assist_timespan
 minPlayers
 webfrontUrl
 webfrontConfigNr
 minlevel
 defaultskill
 Kfactor_high
 Kfactor_low
 Kswitch_kills
 steepness
 suicide_penalty_percent
 tk_penalty_percent
 damage_assist_release
 prematch_maxtime
 playerstats_table
 weaponstats_table
 weaponusage_table
 bodyparts_table
 playerbody_table
 opponents_table
 mapstats_table
 playermaps_table
 actionstats_table
 playeractions_table
 history_monthly_table
 history_weekly_table
 kill_bonus
 assist_bonus

Static Public Attributes

 requiresConfigFile = True
string webfrontUrl = ''
int webfrontConfigNr = 0
int defaultskill = 1000
int minlevel = 1
 onemaponly = False
int Kfactor_high = 16
int Kfactor_low = 4
int Kswitch_kills = 100
int steepness = 600
float suicide_penalty_percent = 0.05
float tk_penalty_percent = 0.1
float kill_bonus = 1.5
float assist_bonus = 0.5
int assist_timespan = 2
int damage_assist_release = 10
int prematch_maxtime = 70
 announce = False
 keep_history = True
int minPlayers = 3
 last_map = None
 last_roundtime = None
string playerstats_table = 'xlr_playerstats'
string weaponstats_table = 'xlr_weaponstats'
string weaponusage_table = 'xlr_weaponusage'
string bodyparts_table = 'xlr_bodyparts'
string playerbody_table = 'xlr_playerbody'
string opponents_table = 'xlr_opponents'
string mapstats_table = 'xlr_mapstats'
string playermaps_table = 'xlr_playermaps'
string actionstats_table = 'xlr_actionstats'
string playeractions_table = 'xlr_playeractions'
string clients_table = 'clients'
string penalties_table = 'penalties'
string history_monthly_table = 'xlr_history_monthly'
string history_weekly_table = 'xlr_history_weekly'

Private Member Functions

def _addTableColumn
def _updateTableColumns

Private Attributes

 _adminPlugin
 _xlrstatstables
 _minKills
 _minRounds
 _maxDays

Static Private Attributes

 _world_clientid = None
list _ffa = ['dm', 'ffa', 'syc-ffa']
list _damage_able_games = ['cod']
 _damage_ability = False
 _cronTabWeek = None
 _cronTabMonth = None
 _cronTabKillBonus = None
int _minKills = 500
int _minRounds = 50
int _maxDays = 14
int _currentNrPlayers = 0
 _defaultTableNames = True

Member Function Documentation

def b3::extplugins::xlrstats::XlrstatsPlugin::_addTableColumn (   self,
  c1,
  t1,
  specs 
) [private]
def b3::extplugins::xlrstats::XlrstatsPlugin::_updateTableColumns (   self) [private]
def b3::extplugins::xlrstats::XlrstatsPlugin::action (   self,
  client,
  data 
)
def b3::extplugins::xlrstats::XlrstatsPlugin::calculateKillBonus (   self)
def b3::extplugins::xlrstats::XlrstatsPlugin::check_Assists (   self,
  client,
  target,
  data,
  etype = None 
)
def b3::extplugins::xlrstats::XlrstatsPlugin::cmd_xlrhide (   self,
  data,
  client,
  cmd = None 
)
\
<player> <on/off> - Hide/unhide a player from the stats
def b3::extplugins::xlrstats::XlrstatsPlugin::cmd_xlrstats (   self,
  data,
  client,
  cmd = None 
)
\
[<name>] - list a players XLR stats
def b3::extplugins::xlrstats::XlrstatsPlugin::cmd_xlrtopstats (   self,
  data,
  client,
  cmd = None,
  ext = False 
)
\
[<#>] - list the top # players of the last 14 days.
def b3::extplugins::xlrstats::XlrstatsPlugin::damage (   self,
  client,
  target,
  data 
)
def b3::extplugins::xlrstats::XlrstatsPlugin::doTopList (   self,
  data,
  client,
  cmd = None,
  ext = False 
)
def b3::extplugins::xlrstats::XlrstatsPlugin::dumpEvent (   self,
  event 
)
def b3::extplugins::xlrstats::XlrstatsPlugin::get_ActionStats (   self,
  name 
)
def b3::extplugins::xlrstats::XlrstatsPlugin::get_Bodypart (   self,
  name 
)
def b3::extplugins::xlrstats::XlrstatsPlugin::get_MapStats (   self,
  name 
)
def b3::extplugins::xlrstats::XlrstatsPlugin::get_Opponent (   self,
  killerid,
  targetid 
)
def b3::extplugins::xlrstats::XlrstatsPlugin::get_PlayerActions (   self,
  playerid,
  actionid 
)
def b3::extplugins::xlrstats::XlrstatsPlugin::get_PlayerAnon (   self)
def b3::extplugins::xlrstats::XlrstatsPlugin::get_PlayerBody (   self,
  playerid,
  bodypartid 
)
def b3::extplugins::xlrstats::XlrstatsPlugin::get_PlayerMaps (   self,
  playerid,
  mapid 
)
def b3::extplugins::xlrstats::XlrstatsPlugin::get_PlayerStats (   self,
  client = None 
)
def b3::extplugins::xlrstats::XlrstatsPlugin::get_WeaponStats (   self,
  name 
)
def b3::extplugins::xlrstats::XlrstatsPlugin::get_WeaponUsage (   self,
  weaponid,
  playerid 
)
def b3::extplugins::xlrstats::XlrstatsPlugin::getCmd (   self,
  cmd 
)
def b3::extplugins::xlrstats::XlrstatsPlugin::join (   self,
  client 
)
def b3::extplugins::xlrstats::XlrstatsPlugin::kill (   self,
  client,
  target,
  data 
)
def b3::extplugins::xlrstats::XlrstatsPlugin::onEvent (   self,
  event 
)
\
Called by B3 when a registered event is encountered. You must overwrite
this to intercept events.

Reimplemented from b3::plugin::Plugin.

def b3::extplugins::xlrstats::XlrstatsPlugin::onLoadConfig (   self)
\
This is called after loadConfig(). Any plugin private variables loaded
from the config need to be reset here.

Reimplemented from b3::plugin::Plugin.

def b3::extplugins::xlrstats::XlrstatsPlugin::optimizeTables (   self,
  t = None 
)
def b3::extplugins::xlrstats::XlrstatsPlugin::repairTables (   self,
  t = None 
)
def b3::extplugins::xlrstats::XlrstatsPlugin::roundstart (   self)
def b3::extplugins::xlrstats::XlrstatsPlugin::save_Stat (   self,
  stat 
)
def b3::extplugins::xlrstats::XlrstatsPlugin::showTables (   self,
  xlrstats = False 
)
def b3::extplugins::xlrstats::XlrstatsPlugin::snapshot_month (   self)
def b3::extplugins::xlrstats::XlrstatsPlugin::snapshot_week (   self)
def b3::extplugins::xlrstats::XlrstatsPlugin::startup (   self)
\
Depreciated. Use onStartup().

Reimplemented from b3::plugin::Plugin.

def b3::extplugins::xlrstats::XlrstatsPlugin::suicide (   self,
  client,
  target,
  data 
)
def b3::extplugins::xlrstats::XlrstatsPlugin::teamkill (   self,
  client,
  target,
  data 
)
def b3::extplugins::xlrstats::XlrstatsPlugin::updateTableColumns (   self)
Todo:
: add mysql condition
def b3::extplugins::xlrstats::XlrstatsPlugin::win_prob (   self,
  player_skill,
  opponent_skill 
)

Member Data Documentation

list b3::extplugins::xlrstats::XlrstatsPlugin::_ffa = ['dm', 'ffa', 'syc-ffa'] [static, private]
string b3::extplugins::xlrstats::XlrstatsPlugin::history_monthly_table = 'xlr_history_monthly' [static]

Reimplemented from b3::plugin::Plugin.


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