. */ namespace GameQ\Protocols; /** * Medal of honor: Allied Assault Protocol Class * * @package GameQ\Protocols * @author Bram * @author Austin Bischoff */ class Mohaa extends Gamespy { /** * String name of this protocol class * * @type string */ protected $name = 'mohaa'; /** * Longer string name of this protocol class * * @type string */ protected $name_long = "Medal of honor: Allied Assault"; /** * Normalize settings for this protocol * * @type array */ protected $normalize = [ 'general' => [ // target => source 'dedicated' => 'dedicated', 'gametype' => 'gametype', 'hostname' => 'hostname', 'mapname' => 'mapname', 'maxplayers' => 'maxplayers', 'numplayers' => 'numplayers', 'password' => 'password', ], // Individual 'player' => [ 'name' => 'player', 'score' => 'frags', 'ping' => 'ping', ], ]; /** * Query port is always the client port + 97 in MOHAA * * @param int $clientPort * * @return int */ public function findQueryPort($clientPort) { return $clientPort + 97; } }