C# Class LazerTagHostLibrary.PacketPacker

Exibir arquivo Open project: afaucher/LazerTagHost Class Usage Examples

Public Methods

Method Description
PacketPacker ( ) : System
packGameDefinition ( HostGun game_type, UInt16 game_id, int game_time_minutes, int tags, int reloads, int sheild, int mega, bool extended_tagging, bool unlimited_ammo, bool unlimited_mega, bool friendly_fire, bool medic_mode, bool rapid_tags, bool hunters_hunted, bool hunters_hunted_direction, bool zones, bool bases_are_teams, bool tagged_players_are_disabled, bool base_areas_revive_players, bool base_areas_are_hospitals, bool base_areas_fire_at_players, int number_of_teams_in_game, char game_type_name ) : System.UInt16[]
packHostedTag ( int team, int player, int dmg ) : System.UInt16[]
packPlayerBeacon ( int team, bool hit_flag, int hit_count ) : System.UInt16[]
packTextMessage ( String message ) : System.UInt16[]
packUnhostedTag ( int dmg ) : System.UInt16[]
packZoneBeacon ( ) : System.UInt16[]

Private Methods

Method Description
DecimalHexToDecimal ( int d ) : int
DecimalToDecimalHex ( byte d ) : byte

Method Details

PacketPacker() public method

public PacketPacker ( ) : System
return System

packGameDefinition() public static method

public static packGameDefinition ( HostGun game_type, UInt16 game_id, int game_time_minutes, int tags, int reloads, int sheild, int mega, bool extended_tagging, bool unlimited_ammo, bool unlimited_mega, bool friendly_fire, bool medic_mode, bool rapid_tags, bool hunters_hunted, bool hunters_hunted_direction, bool zones, bool bases_are_teams, bool tagged_players_are_disabled, bool base_areas_revive_players, bool base_areas_are_hospitals, bool base_areas_fire_at_players, int number_of_teams_in_game, char game_type_name ) : System.UInt16[]
game_type HostGun
game_id System.UInt16
game_time_minutes int
tags int
reloads int
sheild int
mega int
extended_tagging bool
unlimited_ammo bool
unlimited_mega bool
friendly_fire bool
medic_mode bool
rapid_tags bool
hunters_hunted bool
hunters_hunted_direction bool
zones bool
bases_are_teams bool
tagged_players_are_disabled bool
base_areas_revive_players bool
base_areas_are_hospitals bool
base_areas_fire_at_players bool
number_of_teams_in_game int
game_type_name char
return System.UInt16[]

packHostedTag() public static method

public static packHostedTag ( int team, int player, int dmg ) : System.UInt16[]
team int
player int
dmg int
return System.UInt16[]

packPlayerBeacon() public static method

public static packPlayerBeacon ( int team, bool hit_flag, int hit_count ) : System.UInt16[]
team int
hit_flag bool
hit_count int
return System.UInt16[]

packTextMessage() public static method

public static packTextMessage ( String message ) : System.UInt16[]
message String
return System.UInt16[]

packUnhostedTag() public static method

public static packUnhostedTag ( int dmg ) : System.UInt16[]
dmg int
return System.UInt16[]

packZoneBeacon() public static method

public static packZoneBeacon ( ) : System.UInt16[]
return System.UInt16[]