C# Class LazerTagHostLibrary.HostGun

Mostra file Open project: afaucher/LazerTagHost Class Usage Examples

Public Methods

Method Description
AddListener ( HostChangedListener listener ) : void
DelayGame ( int seconds ) : void
DropPlayer ( int team_index, int player_index ) : bool
DynamicHostMode ( CommandCode game_type, byte game_time_minutes, byte tags, byte reloads, byte sheilds, byte mega, bool team_tag, bool medic_mode, byte number_of_teams ) : void
EndGame ( ) : void
GetCountdown ( ) : string
GetGameState ( ) : HostingState
GetGameStateText ( ) : string
HostGun ( string device, HostChangedListener l ) : System
Init2TeamHostMode ( byte game_time_minutes, byte tags, byte reloads, byte sheilds, byte mega, bool team_tag, bool medic_mode ) : void
Init3TeamHostMode ( byte game_time_minutes, byte tags, byte reloads, byte sheilds, byte mega, bool team_tag, bool medic_mode ) : void
InitCustomHostMode ( byte game_time_minutes, byte tags, byte reloads, byte sheilds, byte mega, bool team_tag, bool medic_mode ) : void
IsTeamGame ( ) : bool
IsZoneGame ( ) : bool
LookupPlayer ( int team_number, int player_number ) : Player
Next ( ) : void
Pause ( ) : void
RunRankTests ( ) : void
SetDevice ( string device ) : bool
SetGameStartCountdownTime ( int game_start_countdown_seconds ) : void
SetPlayerName ( int team_index, int player_index, string name ) : bool
StartGameNow ( ) : bool
StartServer ( ) : void
Update ( ) : void

Private Methods

Method Description
AssertUnknownBits ( String name, IRPacket data, byte mask ) : void
AssignTeamAndPlayer ( int team_request, Player dest_player ) : bool
BaseGameSet ( byte game_time_minutes, byte tags, byte reloads, byte sheilds, byte mega, bool team_tag, bool medic_mode ) : void
ChangeState ( System.DateTime now, HostingState state ) : bool
DecimalHexToDecimal ( int d ) : int
DecimalToDecimalHex ( byte d ) : byte
GetCommandCodeName ( CommandCode code ) : string
HostDebugWriteLine ( string line ) : void
PlayerTeamNumberSplit ( int team_player_id, int &player_number, int &team_number ) : void
PrintScoreReport ( ) : void
ProcessCommandSequence ( ) : bool
ProcessMessage ( string command, string parameters ) : bool
ProcessPacket ( IRPacket type, UInt16 data, UInt16 number_of_bits ) : bool
ProcessPlayerHitByTeamReport ( ) : bool
ProcessPlayerReportScore ( ) : bool
RankPlayers ( ) : void
SendPlayerJoin ( byte game_id ) : void
SerializeCommandSequence ( List &packets ) : string
Shoot ( int team_number, int player_number, int damage, bool hosted ) : void
TransmitBytes ( UInt16 data, UInt16 number_of_bits ) : void
TransmitLTTOBytes ( UInt16 data, UInt16 number_of_bits ) : void
TransmitPacket2 ( UInt16 &values ) : void

Method Details

AddListener() public method

public AddListener ( HostChangedListener listener ) : void
listener HostChangedListener
return void

DelayGame() public method

public DelayGame ( int seconds ) : void
seconds int
return void

DropPlayer() public method

public DropPlayer ( int team_index, int player_index ) : bool
team_index int
player_index int
return bool

DynamicHostMode() public method

public DynamicHostMode ( CommandCode game_type, byte game_time_minutes, byte tags, byte reloads, byte sheilds, byte mega, bool team_tag, bool medic_mode, byte number_of_teams ) : void
game_type CommandCode
game_time_minutes byte
tags byte
reloads byte
sheilds byte
mega byte
team_tag bool
medic_mode bool
number_of_teams byte
return void

EndGame() public method

public EndGame ( ) : void
return void

GetCountdown() public method

public GetCountdown ( ) : string
return string

GetGameState() public method

public GetGameState ( ) : HostingState
return HostingState

GetGameStateText() public method

public GetGameStateText ( ) : string
return string

HostGun() public method

public HostGun ( string device, HostChangedListener l ) : System
device string
l HostChangedListener
return System

Init2TeamHostMode() public method

public Init2TeamHostMode ( byte game_time_minutes, byte tags, byte reloads, byte sheilds, byte mega, bool team_tag, bool medic_mode ) : void
game_time_minutes byte
tags byte
reloads byte
sheilds byte
mega byte
team_tag bool
medic_mode bool
return void

Init3TeamHostMode() public method

public Init3TeamHostMode ( byte game_time_minutes, byte tags, byte reloads, byte sheilds, byte mega, bool team_tag, bool medic_mode ) : void
game_time_minutes byte
tags byte
reloads byte
sheilds byte
mega byte
team_tag bool
medic_mode bool
return void

InitCustomHostMode() public method

public InitCustomHostMode ( byte game_time_minutes, byte tags, byte reloads, byte sheilds, byte mega, bool team_tag, bool medic_mode ) : void
game_time_minutes byte
tags byte
reloads byte
sheilds byte
mega byte
team_tag bool
medic_mode bool
return void

IsTeamGame() public method

public IsTeamGame ( ) : bool
return bool

IsZoneGame() public method

public IsZoneGame ( ) : bool
return bool

LookupPlayer() public method

public LookupPlayer ( int team_number, int player_number ) : Player
team_number int
player_number int
return Player

Next() public method

public Next ( ) : void
return void

Pause() public method

public Pause ( ) : void
return void

RunRankTests() public method

public RunRankTests ( ) : void
return void

SetDevice() public method

public SetDevice ( string device ) : bool
device string
return bool

SetGameStartCountdownTime() public method

public SetGameStartCountdownTime ( int game_start_countdown_seconds ) : void
game_start_countdown_seconds int
return void

SetPlayerName() public method

public SetPlayerName ( int team_index, int player_index, string name ) : bool
team_index int
player_index int
name string
return bool

StartGameNow() public method

public StartGameNow ( ) : bool
return bool

StartServer() public method

public StartServer ( ) : void
return void

Update() public method

public Update ( ) : void
return void