C# Class LazerTagHostLibrary.HostGun

Afficher le fichier Open project: afaucher/LazerTagHost Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public AddListener ( HostChangedListener listener ) : void
listener HostChangedListener
Résultat void

DelayGame() public méthode

public DelayGame ( int seconds ) : void
seconds int
Résultat void

DropPlayer() public méthode

public DropPlayer ( int team_index, int player_index ) : bool
team_index int
player_index int
Résultat bool

DynamicHostMode() public méthode

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
Résultat void

EndGame() public méthode

public EndGame ( ) : void
Résultat void

GetCountdown() public méthode

public GetCountdown ( ) : string
Résultat string

GetGameState() public méthode

public GetGameState ( ) : HostingState
Résultat HostingState

GetGameStateText() public méthode

public GetGameStateText ( ) : string
Résultat string

HostGun() public méthode

public HostGun ( string device, HostChangedListener l ) : System
device string
l HostChangedListener
Résultat System

Init2TeamHostMode() public méthode

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
Résultat void

Init3TeamHostMode() public méthode

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
Résultat void

InitCustomHostMode() public méthode

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
Résultat void

IsTeamGame() public méthode

public IsTeamGame ( ) : bool
Résultat bool

IsZoneGame() public méthode

public IsZoneGame ( ) : bool
Résultat bool

LookupPlayer() public méthode

public LookupPlayer ( int team_number, int player_number ) : Player
team_number int
player_number int
Résultat Player

Next() public méthode

public Next ( ) : void
Résultat void

Pause() public méthode

public Pause ( ) : void
Résultat void

RunRankTests() public méthode

public RunRankTests ( ) : void
Résultat void

SetDevice() public méthode

public SetDevice ( string device ) : bool
device string
Résultat bool

SetGameStartCountdownTime() public méthode

public SetGameStartCountdownTime ( int game_start_countdown_seconds ) : void
game_start_countdown_seconds int
Résultat void

SetPlayerName() public méthode

public SetPlayerName ( int team_index, int player_index, string name ) : bool
team_index int
player_index int
name string
Résultat bool

StartGameNow() public méthode

public StartGameNow ( ) : bool
Résultat bool

StartServer() public méthode

public StartServer ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void