extends |
Gamespy3 |
|---|
Class Battlefield 2
| Methods inherited from GameQ\Protocols\Gamespy3 |
|---|
challengeParseAndApply(), processResponse(), cleanPackets(), processDetails(), processPlayersAndTeams() |
| Methods inherited from GameQ\Protocol |
|---|
__construct(), __toString(), portDiff(), findQueryPort(), joinLink(), name(), nameLong(), state(), getProtocol(), transport(), options(), getPacket(), packetResponse(), hasChallenge(), challengeApply(), getNormalize(), beforeSend(), |
| Properties | |||
|---|---|---|---|
protected
|
string
|
$name = 'bf2'
|
# |
protected
|
string
|
$name_long = "Battlefield 2"
|
# |
protected
|
int
|
$port_diff = 13333
|
# |
protected
|
string
|
$join_link = "bf2://%s:%d"
|
# |
protected
|
array
|
$packets = [self::PACKET_ALL => "\xFE\xFD\x00\x10\x20\x30\x40\xFF\xFF\xFF\x01"]
|
# |
protected
|
array
|
$normalize = [
'general' => [
'dedicated' => 'dedicated',
'gametype' => 'gametype',
'hostname' => 'hostname',
'mapname' => 'mapname',
'maxplayers' => 'maxplayers',
'numplayers' => 'numplayers',
'password' => 'password',
],
'player' => [
'name' => 'player',
'kills' => 'score',
'deaths' => 'deaths',
'ping' => 'ping',
'score' => 'score',
],
'team' => ['name' => 'team', 'score' => 'score'],
]
|
# |
| Properties inherited from GameQ\Protocols\Gamespy3 |
|---|
$protocol, $packetSplit |
| Properties inherited from GameQ\Protocol |
|---|
$transport, $responses, $process_methods, $packets_response, $result, $options, $state, |