C# Class SharpQuake.Host

Host_functions
Show file Open project: Memorix101/SharpQuake

Public Properties

Property Type Description
CurrentSkill int
FrameTime double
HostClient client_t
NoClipAngleHack bool
RealTime double

Public Methods

Method Description
ClearMemory ( ) : void

Host_ClearMemory

ClientCommands ( string fmt ) : void

Host_ClientCommands Send text over to the client to be executed

EndGame ( string message ) : void

Host_EndGame

Error ( string error ) : void

Host_Error This shuts down both the client and server

Frame ( double time ) : void
Init ( quakeparms_t parms ) : void
ServerFrame ( ) : void

Host_ServerFrame

Shutdown ( ) : void

Host_Shutdown

ShutdownServer ( bool crash ) : void

Host_ShutdownServer This only happens at the end of a game, not between levels

Private Methods

Method Description
FilterTime ( double time ) : bool

Host_FilterTime Returns false if the time is too short to run a frame

FindMaxClients ( ) : void

Host_FindMaxClients

GetConsoleCommands ( ) : void
InitLocal ( ) : void
InitVCR ( quakeparms_t parms ) : void
InternalFrame ( double time ) : void
WriteConfiguration ( ) : void

Host_WriteConfiguration Writes key bindings and archived cvars to config.cfg

Method Details

ClearMemory() public static method

Host_ClearMemory
public static ClearMemory ( ) : void
return void

ClientCommands() public static method

Host_ClientCommands Send text over to the client to be executed
public static ClientCommands ( string fmt ) : void
fmt string
return void

EndGame() public static method

Host_EndGame
public static EndGame ( string message ) : void
message string
return void

Error() public static method

Host_Error This shuts down both the client and server
public static Error ( string error ) : void
error string
return void

Frame() public static method

public static Frame ( double time ) : void
time double
return void

Init() public static method

public static Init ( quakeparms_t parms ) : void
parms quakeparms_t
return void

ServerFrame() public static method

Host_ServerFrame
public static ServerFrame ( ) : void
return void

Shutdown() public static method

Host_Shutdown
public static Shutdown ( ) : void
return void

ShutdownServer() public static method

Host_ShutdownServer This only happens at the end of a game, not between levels
public static ShutdownServer ( bool crash ) : void
crash bool
return void

Property Details

CurrentSkill public static property

public static int CurrentSkill
return int

FrameTime public static property

public static double FrameTime
return double

HostClient public static property

public static client_t,SharpQuake HostClient
return client_t

NoClipAngleHack public static property

public static bool NoClipAngleHack
return bool

RealTime public static property

public static double RealTime
return double