Source for file QuakeWorld.php
Documentation is available at QuakeWorld.php
// +----------------------------------------------------------------------+
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2004 The PHP Group |
// +----------------------------------------------------------------------+
// | This source file is subject to version 3.0 of the PHP license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available through the world-wide-web at the following url: |
// | http://www.php.net/license/3_0.txt. |
// | If you did not receive a copy of the PHP license and are unable to |
// | obtain it through the world-wide-web, please send a note to |
// | license@php.net so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// | Authors: Aidan Lister <aidan@php.net> |
// | Tom Buskens <ortega@php.net> |
// +----------------------------------------------------------------------+
// $Id: QuakeWorld.php,v 1.9 2004/09/14 11:20:49 ortega Exp $
require_once 'Net\GameServerQuery\Protocol.php';
* @package Net_GameServerQuery
* @author Aidan Lister <aidan@php.net>
* @version $Revision: 1.9 $
if (!$this->_match("\xFF\xFF\xFF\xFFn")) {
throw new Exception ('Parsing error');
while ($this->_match('\\([^\\]+)\\([^\\]+)')) {
throw new Exceptions ('Parsing error');
// Define player variables
$vars = array ('id', 'score', 'time', 'ping', 'name', 'skin', 'color_top', 'color_bottom');
while ($this->_match('(-?\d+) (-?\d+) (-?\d+) (-?\d+) \"(.*)\" \"(.*)\" (-?\d+) (-?\d+)')) {
for ($i = 0; $i !== 8; $i++ ) {
Documentation generated on Mon, 11 Mar 2019 13:58:55 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|