C# 클래스 LazerTagHostLibrary.HostGun

파일 보기 프로젝트 열기: afaucher/LazerTagHost 1 사용 예제들

공개 메소드들

메소드 설명
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