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

b3::fake::FakeConsole Class Reference

Inheritance diagram for b3::fake::FakeConsole:
b3::parser::Parser b3::parser::Parser

List of all members.

Public Member Functions

def __init__
def run
def queueEvent
def shutdown
def getPlugin
def sync
def getNextMap
def getPlayerScores
def say
def saybig
def write
def writelines
def authorizeClients
def ban
def tempban
def unban
def kick
def message
def getCvar
def setCvar
def __init__
def run
def queueEvent
def shutdown
def getPlugin
def sync
def getNextMap
def getPlayerScores
def say
def saybig
def write
def writelines
def authorizeClients
def ban
def tempban
def unban
def kick
def message
def getCvar
def setCvar

Public Attributes

 log
 config
 storage
 clients
 game
 cvars
 PunkBuster
 working
 exitcode

Static Public Attributes

tuple Events = b3.events.eventManagerb3.events.Events()
 screen = stdout
 noVerbose = False
 input = None

Private Member Functions

def _handleEvent
def _handleEvent

Private Attributes

 _timeStart
 _handlers

Constructor & Destructor Documentation

def b3::fake::FakeConsole::__init__ (   self,
  config 
)

Reimplemented from b3::parser::Parser.

def b3::fake::FakeConsole::__init__ (   self,
  config 
)

Reimplemented from b3::parser::Parser.


Member Function Documentation

def b3::fake::FakeConsole::_handleEvent (   self,
  event 
) [private]
NO QUEUE, NO THREAD for faking speed up
def b3::fake::FakeConsole::_handleEvent (   self,
  event 
) [private]
NO QUEUE, NO THREAD for faking speed up
def b3::fake::FakeConsole::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::parser::Parser.

def b3::fake::FakeConsole::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::parser::Parser.

def b3::fake::FakeConsole::ban (   self,
  client,
  reason,
  admin,
  silent 
)
permban a client
def b3::fake::FakeConsole::ban (   self,
  client,
  reason,
  admin,
  silent 
)
permban a client
def b3::fake::FakeConsole::getCvar (   self,
  key 
)
def b3::fake::FakeConsole::getCvar (   self,
  key 
)
def b3::fake::FakeConsole::getNextMap (   self)
\
return the next map/level name to be played

Reimplemented from b3::parser::Parser.

def b3::fake::FakeConsole::getNextMap (   self)
\
return the next map/level name to be played

Reimplemented from b3::parser::Parser.

def b3::fake::FakeConsole::getPlayerScores (   self)
\
returns a dict having players' id for keys and players' scores for values

Reimplemented from b3::parser::Parser.

def b3::fake::FakeConsole::getPlayerScores (   self)
\
returns a dict having players' id for keys and players' scores for values

Reimplemented from b3::parser::Parser.

def b3::fake::FakeConsole::getPlugin (   self,
  plugin 
)
Get a reference to a loaded plugin

Reimplemented from b3::parser::Parser.

def b3::fake::FakeConsole::getPlugin (   self,
  plugin 
)
Get a reference to a loaded plugin

Reimplemented from b3::parser::Parser.

def b3::fake::FakeConsole::kick (   self,
  client,
  reason = '',
  admin = None,
  silent = False,
  kwargs 
)
\
kick a given player

Reimplemented from b3::parser::Parser.

def b3::fake::FakeConsole::kick (   self,
  client,
  reason = '',
  admin = None,
  silent = False,
  kwargs 
)
\
kick a given player

Reimplemented from b3::parser::Parser.

def b3::fake::FakeConsole::message (   self,
  client,
  text 
)
\
display a message to a given player

Reimplemented from b3::parser::Parser.

def b3::fake::FakeConsole::message (   self,
  client,
  text 
)
\
display a message to a given player

Reimplemented from b3::parser::Parser.

def b3::fake::FakeConsole::queueEvent (   self,
  event,
  expire = 10 
)
Queue an event for processing. NO QUEUE, NO THREAD for faking speed up

Reimplemented from b3::parser::Parser.

def b3::fake::FakeConsole::queueEvent (   self,
  event,
  expire = 10 
)
Queue an event for processing. NO QUEUE, NO THREAD for faking speed up

Reimplemented from b3::parser::Parser.

def b3::fake::FakeConsole::run (   self)
Main worker thread for B3

Reimplemented from b3::parser::Parser.

def b3::fake::FakeConsole::run (   self)
Main worker thread for B3

Reimplemented from b3::parser::Parser.

def b3::fake::FakeConsole::say (   self,
  msg 
)
send text to the server

Reimplemented from b3::parser::Parser.

def b3::fake::FakeConsole::say (   self,
  msg 
)
send text to the server

Reimplemented from b3::parser::Parser.

def b3::fake::FakeConsole::saybig (   self,
  msg 
)
send bigtext to the server

Reimplemented from b3::parser::Parser.

def b3::fake::FakeConsole::saybig (   self,
  msg 
)
send bigtext to the server

Reimplemented from b3::parser::Parser.

def b3::fake::FakeConsole::setCvar (   self,
  key,
  value 
)
def b3::fake::FakeConsole::setCvar (   self,
  key,
  value 
)
def b3::fake::FakeConsole::shutdown (   self)
Shutdown B3 - needed to be changed in FakeConsole due to no thread for dispatching events

Reimplemented from b3::parser::Parser.

def b3::fake::FakeConsole::shutdown (   self)
Shutdown B3 - needed to be changed in FakeConsole due to no thread for dispatching events

Reimplemented from b3::parser::Parser.

def b3::fake::FakeConsole::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::parser::Parser.

def b3::fake::FakeConsole::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::parser::Parser.

def b3::fake::FakeConsole::tempban (   self,
  client,
  reason,
  duration,
  admin,
  silent 
)
tempban a client
def b3::fake::FakeConsole::tempban (   self,
  client,
  reason,
  duration,
  admin,
  silent 
)
tempban a client
def b3::fake::FakeConsole::unban (   self,
  client,
  reason = '',
  admin = None,
  silent = False,
  kwargs 
)
unban a client

Reimplemented from b3::parser::Parser.

def b3::fake::FakeConsole::unban (   self,
  client,
  reason = '',
  admin = None,
  silent = False,
  kwargs 
)
unban a client

Reimplemented from b3::parser::Parser.

def b3::fake::FakeConsole::write (   self,
  msg,
  maxRetries = 0 
)
send text to the console

Reimplemented from b3::parser::Parser.

def b3::fake::FakeConsole::write (   self,
  msg,
  maxRetries = 0 
)
send text to the console

Reimplemented from b3::parser::Parser.

def b3::fake::FakeConsole::writelines (   self,
  msg 
)
Write a sequence of messages to Rcon/Console. Optimized for speed

Reimplemented from b3::parser::Parser.

def b3::fake::FakeConsole::writelines (   self,
  msg 
)
Write a sequence of messages to Rcon/Console. Optimized for speed

Reimplemented from b3::parser::Parser.


Member Data Documentation

tuple b3::fake::FakeConsole::Events = b3.events.eventManagerb3.events.Events() [static]

Reimplemented from b3::parser::Parser.

Reimplemented from b3::parser::Parser.

b3::fake::FakeConsole::screen = stdout [static]

Reimplemented from b3::parser::Parser.


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