C# Class ManateesAgainstCards.Network.Server

Show file Open project: DatZach/HumanityAgainstCards

Public Properties

Property Type Description
AllowLateJoins bool
Password string
PointCap int
SecondsPerTurn int
State States

Public Methods

Method Description
DeclareWinner ( ushort id ) : void
GenerateId ( ) : ushort
Greet ( ) : void
Initialize ( int port ) : void
LoadCards ( ) : void
SendMessage ( this connection, Packet packet, NetDeliveryMethod method = NetDeliveryMethod.ReliableOrdered ) : NetSendResult
SendMessageToAll ( Packet packet, NetDeliveryMethod method = NetDeliveryMethod.ReliableOrdered, bool>.Func condition = null ) : void
SendMessageToAllExcept ( Packet packet, ushort id, NetDeliveryMethod method = NetDeliveryMethod.ReliableOrdered ) : void
Shutdown ( ) : void
StartMatch ( bool cooldown ) : void
UpdateNetwork ( ) : void

Private Methods

Method Description
HandleGame ( ) : void
Server ( ) : System

Method Details

DeclareWinner() public static method

public static DeclareWinner ( ushort id ) : void
id ushort
return void

GenerateId() public static method

public static GenerateId ( ) : ushort
return ushort

Greet() public static method

public static Greet ( ) : void
return void

Initialize() public static method

public static Initialize ( int port ) : void
port int
return void

LoadCards() public static method

public static LoadCards ( ) : void
return void

SendMessage() public static method

public static SendMessage ( this connection, Packet packet, NetDeliveryMethod method = NetDeliveryMethod.ReliableOrdered ) : NetSendResult
connection this
packet Packet
method NetDeliveryMethod
return NetSendResult

SendMessageToAll() public static method

public static SendMessageToAll ( Packet packet, NetDeliveryMethod method = NetDeliveryMethod.ReliableOrdered, bool>.Func condition = null ) : void
packet Packet
method NetDeliveryMethod
condition bool>.Func
return void

SendMessageToAllExcept() public static method

public static SendMessageToAllExcept ( Packet packet, ushort id, NetDeliveryMethod method = NetDeliveryMethod.ReliableOrdered ) : void
packet Packet
id ushort
method NetDeliveryMethod
return void

Shutdown() public static method

public static Shutdown ( ) : void
return void

StartMatch() public static method

public static StartMatch ( bool cooldown ) : void
cooldown bool
return void

UpdateNetwork() public static method

public static UpdateNetwork ( ) : void
return void

Property Details

AllowLateJoins public static property

public static bool AllowLateJoins
return bool

Password public static property

public static string Password
return string

PointCap public static property

public static int PointCap
return int

SecondsPerTurn public static property

public static int SecondsPerTurn
return int

State public static property

public static States State
return States