1: | <?php |
2: | /** |
3: | * This file is part of GameQ. |
4: | * |
5: | * GameQ is free software; you can redistribute it and/or modify |
6: | * it under the terms of the GNU Lesser General Public License as published by |
7: | * the Free Software Foundation; either version 3 of the License, or |
8: | * (at your option) any later version. |
9: | * |
10: | * GameQ is distributed in the hope that it will be useful, |
11: | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12: | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13: | * GNU Lesser General Public License for more details. |
14: | * |
15: | * You should have received a copy of the GNU Lesser General Public License |
16: | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
17: | */ |
18: | |
19: | namespace GameQ\Protocols; |
20: | |
21: | /** |
22: | * World Opponent Network (WON) class |
23: | * |
24: | * Pre-cursor to the A2S (source) protocol system |
25: | * |
26: | * @author Nikolay Ipanyuk <rostov114@gmail.com> |
27: | * @author Austin Bischoff <austin@codebeard.com> |
28: | * |
29: | * @package GameQ\Protocols |
30: | */ |
31: | class Won extends Source |
32: | { |
33: | /** |
34: | * Array of packets we want to look up. |
35: | * Each key should correspond to a defined method in this or a parent class |
36: | * |
37: | * @var array |
38: | */ |
39: | protected $packets = [ |
40: | self::PACKET_DETAILS => "\xFF\xFF\xFF\xFFdetails\x00", |
41: | self::PACKET_PLAYERS => "\xFF\xFF\xFF\xFFplayers", |
42: | self::PACKET_RULES => "\xFF\xFF\xFF\xFFrules", |
43: | ]; |
44: | |
45: | /** |
46: | * The query protocol used to make the call |
47: | * |
48: | * @var string |
49: | */ |
50: | protected $protocol = 'won'; |
51: | |
52: | /** |
53: | * String name of this protocol class |
54: | * |
55: | * @var string |
56: | */ |
57: | protected $name = 'won'; |
58: | |
59: | /** |
60: | * Longer string name of this protocol class |
61: | * |
62: | * @var string |
63: | */ |
64: | protected $name_long = "World Opponent Network"; |
65: | } |
66: |