Won.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. namespace GameQ\Protocols;
  19. /**
  20. * World Opponent Network (WON) class
  21. *
  22. * Pre-cursor to the A2S (source) protocol system
  23. *
  24. * @author Nikolay Ipanyuk <[email protected]>
  25. * @author Austin Bischoff <[email protected]>
  26. *
  27. * @package GameQ\Protocols
  28. */
  29. class Won extends Source
  30. {
  31. /**
  32. * Array of packets we want to look up.
  33. * Each key should correspond to a defined method in this or a parent class
  34. *
  35. * @type array
  36. */
  37. protected $packets = [
  38. self::PACKET_DETAILS => "\xFF\xFF\xFF\xFFdetails\x00",
  39. self::PACKET_PLAYERS => "\xFF\xFF\xFF\xFFplayers",
  40. self::PACKET_RULES => "\xFF\xFF\xFF\xFFrules",
  41. ];
  42. /**
  43. * The query protocol used to make the call
  44. *
  45. * @type string
  46. */
  47. protected $protocol = 'won';
  48. /**
  49. * String name of this protocol class
  50. *
  51. * @type string
  52. */
  53. protected $name = 'won';
  54. /**
  55. * Longer string name of this protocol class
  56. *
  57. * @type string
  58. */
  59. protected $name_long = "World Opponent Network";
  60. }