extends |
Protocol |
---|
Frontlines Fuel of War Protocol Class Handles processing ffow servers Class is incomplete due to lack of players to test against. http://wiki.hlsw.net/index.php/FFOW_Protocol
Methods | ||
---|---|---|
public
|
challengeParseAndApply(Buffer $challenge_buffer): bool
|
# |
public
|
processResponse(): mixed
|
# |
protected
|
processInfo(Buffer $buffer): array
|
# |
protected
|
processRules(Buffer $buffer): array
|
# |
protected
|
processPlayers(Buffer $buffer): array
|
# |
Methods inherited from GameQ\Protocol |
---|
__construct(), __toString(), portDiff(), findQueryPort(), joinLink(), name(), nameLong(), state(), getProtocol(), transport(), options(), getPacket(), packetResponse(), hasChallenge(), challengeApply(), getNormalize(), beforeSend(), |
Properties | |||
---|---|---|---|
protected
|
array
|
$packets = [
self::PACKET_CHALLENGE => "\xFF\xFF\xFF\xFF\x57",
self::PACKET_RULES => "\xFF\xFF\xFF\xFF\x56%s",
self::PACKET_PLAYERS => "\xFF\xFF\xFF\xFF\x55%s",
self::PACKET_INFO => "\xFF\xFF\xFF\xFF\x46\x4C\x53\x51",
]
|
# |
protected
|
array
|
$responses = [
"\xFF\xFF\xFF\xFF\x49\x02" => 'processInfo',
"\xFF\xFF\xFF\xFF\x45\x00" => 'processRules',
"\xFF\xFF\xFF\xFF\x44\x00" => 'processPlayers',
]
|
# |
protected
|
string
|
$protocol = 'ffow'
|
# |
protected
|
string
|
$name = 'ffow'
|
# |
protected
|
string
|
$name_long = "Frontlines Fuel of War"
|
# |
protected
|
int
|
$port_diff = 2
|
# |
protected
|
array
|
$normalize = [
'general' => [
'gametype' => 'gamemode',
'hostname' => 'servername',
'mapname' => 'mapname',
'maxplayers' => 'max_players',
'mod' => 'modname',
'numplayers' => 'num_players',
'password' => 'password',
],
'player' => ['name' => 'name', 'ping' => 'ping', 'score' => 'frags'],
]
|
# |
Properties inherited from GameQ\Protocol |
---|
$transport, $process_methods, $packets_response, $result, $options, $state, $join_link |