C# Класс LazerTagHostLibrary.HostGun

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

AddListener() публичный Метод

public AddListener ( HostChangedListener listener ) : void
listener HostChangedListener
Результат void

DelayGame() публичный Метод

public DelayGame ( int seconds ) : void
seconds int
Результат void

DropPlayer() публичный Метод

public DropPlayer ( int team_index, int player_index ) : bool
team_index int
player_index int
Результат bool

DynamicHostMode() публичный Метод

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
Результат void

EndGame() публичный Метод

public EndGame ( ) : void
Результат void

GetCountdown() публичный Метод

public GetCountdown ( ) : string
Результат string

GetGameState() публичный Метод

public GetGameState ( ) : HostingState
Результат HostingState

GetGameStateText() публичный Метод

public GetGameStateText ( ) : string
Результат string

HostGun() публичный Метод

public HostGun ( string device, HostChangedListener l ) : System
device string
l HostChangedListener
Результат System

Init2TeamHostMode() публичный Метод

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
Результат void

Init3TeamHostMode() публичный Метод

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
Результат void

InitCustomHostMode() публичный Метод

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
Результат void

IsTeamGame() публичный Метод

public IsTeamGame ( ) : bool
Результат bool

IsZoneGame() публичный Метод

public IsZoneGame ( ) : bool
Результат bool

LookupPlayer() публичный Метод

public LookupPlayer ( int team_number, int player_number ) : Player
team_number int
player_number int
Результат Player

Next() публичный Метод

public Next ( ) : void
Результат void

Pause() публичный Метод

public Pause ( ) : void
Результат void

RunRankTests() публичный Метод

public RunRankTests ( ) : void
Результат void

SetDevice() публичный Метод

public SetDevice ( string device ) : bool
device string
Результат bool

SetGameStartCountdownTime() публичный Метод

public SetGameStartCountdownTime ( int game_start_countdown_seconds ) : void
game_start_countdown_seconds int
Результат void

SetPlayerName() публичный Метод

public SetPlayerName ( int team_index, int player_index, string name ) : bool
team_index int
player_index int
name string
Результат bool

StartGameNow() публичный Метод

public StartGameNow ( ) : bool
Результат bool

StartServer() публичный Метод

public StartServer ( ) : void
Результат void

Update() публичный Метод

public Update ( ) : void
Результат void