. */ /** * Battlefield 2 Protocol Class * * @author Austin Bischoff */ class GameQ_Protocols_Bf2 extends GameQ_Protocols_Gamespy3 { protected $name = "bf2"; protected $name_long = "Battlefield 2"; protected $port = 29900; /** * Set the packet mode to multi, Gamespy v3 is by default a linear set of calls * * @var string */ protected $packet_mode = self::PACKET_MODE_MULTI; /** * Array of packets we want to look up. * Each key should correspond to a defined method in this or a parent class * * @var array */ protected $packets = array( self::PACKET_ALL => "\xFE\xFD\x00\x10\x20\x30\x40\xFF\xFF\xFF\x01", ); /** * Methods to be run when processing the response(s) * * @var array */ protected $process_methods = array( "process_all", ); }