C# Class CrabBattleServer.GameServer

Mostra file Open project: tomoprime/CrabBattle Class Usage Examples

Public Properties

Property Type Description
healthMod int
players List
ticksPerSecond int

Public Methods

Method Description
AddNewPlayer ( NetIncomingMessage inc ) : void
CrabAction ( int actionId, float speed ) : void
GameServer ( int gameport, int maxplayers ) : System
HandleMessages ( object fromPlayer ) : void
RunGameLoop ( ) : void
SendConsoleMessage ( string message ) : void
SendConsoleMessage ( string message, NetConnection singleConn ) : void
SendLobbyMessage ( string username, string message ) : void
SendLobbyMessage ( string username, string message, NetConnection singleConn ) : void
SendMessageDebug ( string message ) : void
SendMessageDebug ( string message, NetConnection singleConn ) : void
SendStartGame ( NetConnection conn, string playername ) : void
StartGame ( PlayerObject player ) : void
StartServer ( ) : void
StopServer ( ) : void

Method Details

AddNewPlayer() public method

public AddNewPlayer ( NetIncomingMessage inc ) : void
inc Lidgren.Network.NetIncomingMessage
return void

CrabAction() public static method

public static CrabAction ( int actionId, float speed ) : void
actionId int
speed float
return void

GameServer() public method

public GameServer ( int gameport, int maxplayers ) : System
gameport int
maxplayers int
return System

HandleMessages() public method

public HandleMessages ( object fromPlayer ) : void
fromPlayer object
return void

RunGameLoop() public method

public RunGameLoop ( ) : void
return void

SendConsoleMessage() public method

public SendConsoleMessage ( string message ) : void
message string
return void

SendConsoleMessage() public method

public SendConsoleMessage ( string message, NetConnection singleConn ) : void
message string
singleConn Lidgren.Network.NetConnection
return void

SendLobbyMessage() public method

public SendLobbyMessage ( string username, string message ) : void
username string
message string
return void

SendLobbyMessage() public method

public SendLobbyMessage ( string username, string message, NetConnection singleConn ) : void
username string
message string
singleConn Lidgren.Network.NetConnection
return void

SendMessageDebug() public method

public SendMessageDebug ( string message ) : void
message string
return void

SendMessageDebug() public method

public SendMessageDebug ( string message, NetConnection singleConn ) : void
message string
singleConn Lidgren.Network.NetConnection
return void

SendStartGame() public method

public SendStartGame ( NetConnection conn, string playername ) : void
conn Lidgren.Network.NetConnection
playername string
return void

StartGame() public method

public StartGame ( PlayerObject player ) : void
player PlayerObject
return void

StartServer() public method

public StartServer ( ) : void
return void

StopServer() public method

public StopServer ( ) : void
return void

Property Details

healthMod public_oe static_oe property

public static int healthMod
return int

players public_oe static_oe property

public static List players
return List

ticksPerSecond public_oe property

public int ticksPerSecond
return int