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

tests::parsers::test_iourt41::Test_parser_API_implementation Class Reference

Inheritance diagram for tests::parsers::test_iourt41::Test_parser_API_implementation:
tests::parsers::test_iourt41::Iourt41TestCase tests::parsers::test_iourt41::Iourt41TestCase

List of all members.

Public Member Functions

def test_getPlayerList
def test_authorizeClients
def test_sync
def test_say
def test_saybig
def test_message
def test_kick
def test_ban
def test_unban
def test_tempban
def test_getMap
def test_getMaps
def test_rotateMap
def test_changeMap
def test_changeMap_2
def test_getPlayerPings
def test_getPlayerScores
def test_inflictCustomPenalty
def test_getPlayerList
def test_authorizeClients
def test_sync
def test_say
def test_saybig
def test_message
def test_kick
def test_ban
def test_unban
def test_tempban
def test_getMap
def test_getMaps
def test_rotateMap
def test_changeMap
def test_changeMap_2
def test_getPlayerPings
def test_getPlayerScores
def test_inflictCustomPenalty

Detailed Description

Test case that is responsible for testing all methods of the b3.parser.Parser class API that
have to override because they have to talk to their targeted game server in their specific way

Member Function Documentation

def tests::parsers::test_iourt41::Test_parser_API_implementation::test_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
def tests::parsers::test_iourt41::Test_parser_API_implementation::test_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
def tests::parsers::test_iourt41::Test_parser_API_implementation::test_ban (   self)
\
ban a given player on the game server and in case of success
fire the event ('EVT_CLIENT_BAN', data={'reason': reason,
'admin': admin}, client=target)
def tests::parsers::test_iourt41::Test_parser_API_implementation::test_ban (   self)
\
ban a given player on the game server and in case of success
fire the event ('EVT_CLIENT_BAN', data={'reason': reason,
'admin': admin}, client=target)
def tests::parsers::test_iourt41::Test_parser_API_implementation::test_changeMap (   self,
  sleep_mock 
)
\
load a given map/level
return a list of suggested map names in cases it fails to recognize the map that was provided
def tests::parsers::test_iourt41::Test_parser_API_implementation::test_changeMap (   self,
  sleep_mock 
)
\
load a given map/level
return a list of suggested map names in cases it fails to recognize the map that was provided
def tests::parsers::test_iourt41::Test_parser_API_implementation::test_changeMap_2 (   self,
  sleep_mock 
)
\
see http://forum.bigbrotherbot.net/urt/!map-x-bug/msg37759/#msg37759
def tests::parsers::test_iourt41::Test_parser_API_implementation::test_changeMap_2 (   self,
  sleep_mock 
)
\
see http://forum.bigbrotherbot.net/urt/!map-x-bug/msg37759/#msg37759
def tests::parsers::test_iourt41::Test_parser_API_implementation::test_getMap (   self)
\
return the current map/level name
def tests::parsers::test_iourt41::Test_parser_API_implementation::test_getMap (   self)
\
return the current map/level name
def tests::parsers::test_iourt41::Test_parser_API_implementation::test_getMaps (   self)
\
return the available maps/levels name
def tests::parsers::test_iourt41::Test_parser_API_implementation::test_getMaps (   self)
\
return the available maps/levels name
def tests::parsers::test_iourt41::Test_parser_API_implementation::test_getPlayerList (   self)
\
Query the game server for connected players.
return a dict having players' id for keys and players' data as another dict for values
def tests::parsers::test_iourt41::Test_parser_API_implementation::test_getPlayerList (   self)
\
Query the game server for connected players.
return a dict having players' id for keys and players' data as another dict for values
def tests::parsers::test_iourt41::Test_parser_API_implementation::test_getPlayerPings (   self)
\
returns a dict having players' id for keys and players' ping for values
def tests::parsers::test_iourt41::Test_parser_API_implementation::test_getPlayerPings (   self)
\
returns a dict having players' id for keys and players' ping for values
def tests::parsers::test_iourt41::Test_parser_API_implementation::test_getPlayerScores (   self)
\
returns a dict having players' id for keys and players' scores for values
def tests::parsers::test_iourt41::Test_parser_API_implementation::test_getPlayerScores (   self)
\
returns a dict having players' id for keys and players' scores for values
def tests::parsers::test_iourt41::Test_parser_API_implementation::test_inflictCustomPenalty (   self)
Called if b3.admin.penalizeClient() does not know a given penalty type.
Overwrite this to add customized penalties for your game like 'slap', 'nuke',
'mute', 'kill' or anything you want.
/!\ This method must return True if the penalty was inflicted.
def tests::parsers::test_iourt41::Test_parser_API_implementation::test_inflictCustomPenalty (   self)
Called if b3.admin.penalizeClient() does not know a given penalty type.
Overwrite this to add customized penalties for your game like 'slap', 'nuke',
'mute', 'kill' or anything you want.
/!\ This method must return True if the penalty was inflicted.
def tests::parsers::test_iourt41::Test_parser_API_implementation::test_kick (   self)
\
kick a given player
def tests::parsers::test_iourt41::Test_parser_API_implementation::test_kick (   self)
\
kick a given player
def tests::parsers::test_iourt41::Test_parser_API_implementation::test_message (   self)
\
display a message to a given player
def tests::parsers::test_iourt41::Test_parser_API_implementation::test_message (   self)
\
display a message to a given player
def tests::parsers::test_iourt41::Test_parser_API_implementation::test_rotateMap (   self)
\
load the next map/level
def tests::parsers::test_iourt41::Test_parser_API_implementation::test_rotateMap (   self)
\
load the next map/level
def tests::parsers::test_iourt41::Test_parser_API_implementation::test_say (   self)
\
broadcast a message to all players
def tests::parsers::test_iourt41::Test_parser_API_implementation::test_say (   self)
\
broadcast a message to all players
def tests::parsers::test_iourt41::Test_parser_API_implementation::test_saybig (   self)
\
broadcast a message to all players in a way that will catch their attention.
def tests::parsers::test_iourt41::Test_parser_API_implementation::test_saybig (   self)
\
broadcast a message to all players in a way that will catch their attention.
def tests::parsers::test_iourt41::Test_parser_API_implementation::test_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.
def tests::parsers::test_iourt41::Test_parser_API_implementation::test_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.
def tests::parsers::test_iourt41::Test_parser_API_implementation::test_tempban (   self)
\
tempban a given player on the game server and in case of success
fire the event ('EVT_CLIENT_BAN_TEMP', data={'reason': reason,
'duration': duration, 'admin': admin}, client=target)
def tests::parsers::test_iourt41::Test_parser_API_implementation::test_tempban (   self)
\
tempban a given player on the game server and in case of success
fire the event ('EVT_CLIENT_BAN_TEMP', data={'reason': reason,
'duration': duration, 'admin': admin}, client=target)
def tests::parsers::test_iourt41::Test_parser_API_implementation::test_unban (   self)
\
unban a given player on the game server
def tests::parsers::test_iourt41::Test_parser_API_implementation::test_unban (   self)
\
unban a given player on the game server

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