. */ namespace GameQ\Protocols; /** * Class Battlefield 1942 * * @package GameQ\Protocols * @author Austin Bischoff */ class Bf1942 extends Gamespy { /** * String name of this protocol class * * @type string */ protected $name = 'bf1942'; /** * Longer string name of this protocol class * * @type string */ protected $name_long = "Battlefield 1942"; /** * query_port = client_port + 8433 * 23000 = 14567 + 8433 * * @type int */ protected $port_diff = 8433; /** * The client join link * * @type string */ protected $join_link = "bf1942://%s:%d"; /** * Normalize settings for this protocol * * @type array */ protected $normalize = [ // General 'general' => [ // target => source 'dedicated' => 'dedicated', 'gametype' => 'gametype', 'hostname' => 'hostname', 'mapname' => 'mapname', 'maxplayers' => 'maxplayers', 'numplayers' => 'numplayers', 'password' => 'password', ], // Individual 'player' => [ 'name' => 'playername', 'kills' => 'kills', 'deaths' => 'deaths', 'ping' => 'ping', 'score' => 'score', ], 'team' => [ 'name' => 'teamname', ], ]; }