C# 클래스 CrabBattleServer.GameServer

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

공개 프로퍼티들

프로퍼티 타입 설명
healthMod int
players List
ticksPerSecond int

공개 메소드들

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

메소드 상세

AddNewPlayer() 공개 메소드

public AddNewPlayer ( NetIncomingMessage inc ) : void
inc Lidgren.Network.NetIncomingMessage
리턴 void

CrabAction() 공개 정적인 메소드

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

GameServer() 공개 메소드

public GameServer ( int gameport, int maxplayers ) : System
gameport int
maxplayers int
리턴 System

HandleMessages() 공개 메소드

public HandleMessages ( object fromPlayer ) : void
fromPlayer object
리턴 void

RunGameLoop() 공개 메소드

public RunGameLoop ( ) : void
리턴 void

SendConsoleMessage() 공개 메소드

public SendConsoleMessage ( string message ) : void
message string
리턴 void

SendConsoleMessage() 공개 메소드

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

SendLobbyMessage() 공개 메소드

public SendLobbyMessage ( string username, string message ) : void
username string
message string
리턴 void

SendLobbyMessage() 공개 메소드

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

SendMessageDebug() 공개 메소드

public SendMessageDebug ( string message ) : void
message string
리턴 void

SendMessageDebug() 공개 메소드

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

SendStartGame() 공개 메소드

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

StartGame() 공개 메소드

public StartGame ( PlayerObject player ) : void
player PlayerObject
리턴 void

StartServer() 공개 메소드

public StartServer ( ) : void
리턴 void

StopServer() 공개 메소드

public StopServer ( ) : void
리턴 void

프로퍼티 상세

healthMod 공개적으로 정적으로 프로퍼티

public static int healthMod
리턴 int

players 공개적으로 정적으로 프로퍼티

public static List players
리턴 List

ticksPerSecond 공개적으로 프로퍼티

public int ticksPerSecond
리턴 int