extends |
CSQuery |
|---|---|
implements |
ProtocolInterface |
Implements the query protocol for Battlefield: Bad Company 2 servers. Handles server queries, player information retrieval, and game-specific data parsing.
| Methods | ||
|---|---|---|
public
|
__construct(?string $address = null, ?int $queryport = null)
|
# |
public
|
getNativeJoinURI(): false|string
|
# |
public
|
query_server(bool $getPlayers = true, bool $getRules = true): bool
|
# |
public
|
query(ServerAddress $addr): ServerInfo
|
# |
public
|
getProtocolName(): string
|
# |
public
|
getVersion(ServerInfo $info): string
|
# |
| Properties | |||
|---|---|---|---|
public
|
?string
|
$gameHost = null
|
# |
public
|
?int
|
$gamePort = null
|
# |
public
|
string
|
$name = 'Battlefield Bad Company 2'
|
# |
public
|
array<string>
|
$supportedGames = ['Battlefield Bad Company 2']
|
# |
public
|
string
|
$protocol = 'bc2'
|
# |
protected
|
int
|
$port_diff = 29321
|
# |
| Properties inherited from Clansuite\ServerQuery\CSQuery |
|---|
$address, $queryport, $hostport, $online, $gamename, $gameversion, $servertitle, $mapname, $maptitle, $gametype, $numplayers, $maxplayers, $steamAppID, $password, $nextmap, $players, $playerkeys, $playerteams, $maplist, $rules, $errstr, $response, $game_series_list, $debug, $udpClient |