Net_GameServerQuery
[ class tree: Net_GameServerQuery ] [ index: Net_GameServerQuery ] [ all elements ]

Class: Net_GameServerQuery_GameData

Source Location: /Net_GameServerQuery-0.3.0/Net/GameServerQuery/GameData.php

Class Overview


API for accessing stored protocol and game information


Author(s):

Methods


Inherited Variables

Inherited Methods


Class Details

[line 40]
API for accessing stored protocol and game information

Provides an abstraction for accessing the stored protocol data and game information.



[ Top ]


Method Detail

__construct (Constructor)   [line 67]

Net_GameServerQuery_GameData __construct( )

Constructor
  • Access: public

[ Top ]

getGamePort   [line 181]

string getGamePort( string $game)

Return default query port used by a certain game
  • Return: The default query port used
  • Access: public

Parameters:

string   $game   —  The game

[ Top ]

getGameProtocol   [line 168]

string getGameProtocol( string $game)

Return protocol used by a certain game
  • Return: The game used
  • Access: public

Parameters:

string   $game   —  The game

[ Top ]

getGameTitle   [line 138]

string getGameTitle( string $game)

Get game name
  • Return: The game name
  • Access: public

Parameters:

string   $game   —  The game

[ Top ]

getProtocolNormals   [line 155]

array getProtocolNormals( [string $protocol = 0])

Return normal keys
  • Return: The normals
  • Access: public

Parameters:

string   $protocol   —  The protocol

[ Top ]

getProtocolPacket   [line 121]

array getProtocolPacket( string $protocol, string $type)

Return packet used by a certain protocol
  • Return: The packet used
  • Access: public

Parameters:

string   $protocol   —  The protocol
string   $type   —  The packet type

[ Top ]

is_game   [line 86]

bool is_game( string $game)

Test if game is registered
  • Access: public

Parameters:

string   $game   —  The game

[ Top ]

is_protocol   [line 103]

bool is_protocol( string $protocol)

Test if protocol is registered
  • Return: TRUE if the protocol is valid else FALSE
  • Access: public

Parameters:

string   $protocol   —  The protocol

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:39:46 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.