1 | <?php |
||
28 | class Mohaa extends Gamespy |
||
29 | { |
||
30 | /** |
||
31 | * String name of this protocol class |
||
32 | * |
||
33 | * @type string |
||
34 | */ |
||
35 | protected $name = 'mohaa'; |
||
36 | |||
37 | /** |
||
38 | * Longer string name of this protocol class |
||
39 | * |
||
40 | * @type string |
||
41 | */ |
||
42 | protected $name_long = "Medal of honor: Allied Assault"; |
||
43 | |||
44 | /** |
||
45 | * Normalize settings for this protocol |
||
46 | * |
||
47 | * @type array |
||
48 | */ |
||
49 | protected $normalize = [ |
||
50 | 'general' => [ |
||
51 | // target => source |
||
52 | 'dedicated' => 'dedicated', |
||
53 | 'gametype' => 'gametype', |
||
54 | 'hostname' => 'hostname', |
||
55 | 'mapname' => 'mapname', |
||
56 | 'maxplayers' => 'maxplayers', |
||
57 | 'numplayers' => 'numplayers', |
||
58 | 'password' => 'password', |
||
59 | ], |
||
60 | // Individual |
||
61 | 'player' => [ |
||
62 | 'name' => 'player', |
||
63 | 'score' => 'frags', |
||
64 | 'ping' => 'ping', |
||
65 | ], |
||
66 | ]; |
||
67 | |||
68 | /** |
||
69 | * Query port is always the client port + 97 in MOHAA |
||
70 | * |
||
71 | * @param int $clientPort |
||
72 | * |
||
73 | * @return int |
||
74 | */ |
||
75 | 4 | public function findQueryPort($clientPort) |
|
79 | } |
||
80 |