C# Class SharpQuake.Client

显示文件 Open project: Memorix101/SharpQuake

Public Properties

Property Type Description
NumVisEdicts int

Public Methods

Method Description
AllocDlight ( int key ) : dlight_t

CL_AllocDlight

DecayLights ( ) : void

CL_DecayLights

Disconnect ( ) : void

CL_Disconnect Sends a disconnect message to the server This is also called on Host_Error, so it shouldn't cause any errors

Disconnect_f ( ) : void
EstablishConnection ( string host ) : void

CL_EstablishConnection

Init ( ) : void
NextDemo ( ) : void

CL_NextDemo Called to play the next demo in the demo loop

ReadFromServer ( ) : int
SendCmd ( ) : void
SendMove ( usercmd_t &cmd ) : void
StopPlayback ( ) : void

CL_StopPlayback Called when a demo file runs out, or the user starts a game

Private Methods

Method Description
AdjustAngles ( ) : void
BaseMove ( usercmd_t &cmd ) : void

CL_BaseMove Send the intended movement message to the server

ClearState ( ) : void

CL_ClearState

EntityNum ( int num ) : entity_t

CL_EntityNum This error checks and tracks the total number of entities

FinishTimeDemo ( ) : void

CL_FinishTimeDemo

GetMessage ( ) : int

CL_GetMessage Handles recording and playback of demos, on top of NET_ code

InitInput ( ) : void
InitTempEntities ( ) : void
KeepaliveMessage ( ) : void

CL_KeepaliveMessage When the client is taking a long time to load stuff, send keepalive messages so the server doesn't disconnect.

KeyState ( kbutton_t &key ) : float
LerpPoint ( ) : float

CL_LerpPoint Determines the fraction between the last two messages that the objects should be put at.

NewTempEntity ( ) : entity_t

CL_NewTempEntity

NewTranslation ( int slot ) : void
ParseBaseline ( entity_t ent ) : void

CL_ParseBaseline

ParseBeam ( model_t m ) : void

CL_ParseBeam

ParseClientData ( int bits ) : void

CL_ParseClientdata Server information pertaining to this client only

ParseServerInfo ( ) : void

CL_ParseServerInfo

ParseServerMessage ( ) : void

CL_ParseServerMessage

ParseStartSoundPacket ( ) : void
ParseStatic ( ) : void

CL_ParseStatic

ParseStaticSound ( ) : void

CL_ParseStaticSound

ParseTempEntity ( ) : void

CL_ParseTEnt

ParseUpdate ( int bits ) : void

CL_ParseUpdate Parse an entity update message from the server If an entities model or origin changes from frame to frame, it must be relinked. Other attributes can change without relinking.

PlayDemo_f ( ) : void
PrintEntities_f ( ) : void
Record_f ( ) : void

CL_Record_f record [cd track]

RelinkEntities ( ) : void

CL_RelinkEntities

ShowNet ( string s ) : void
SignonReply ( ) : void

CL_SignonReply An svc_signonnum has been received, perform a client side setup

Stop_f ( ) : void

CL_Stop_f stop recording a demo

TimeDemo_f ( ) : void

CL_TimeDemo_f timedemo [demoname]

UpdateTempEntities ( ) : void
WriteDemoMessage ( ) : void

CL_WriteDemoMessage Dumps the current net message, prefixed by the length and view angles

Method Details

AllocDlight() public static method

CL_AllocDlight
public static AllocDlight ( int key ) : dlight_t
key int
return dlight_t

DecayLights() public static method

CL_DecayLights
public static DecayLights ( ) : void
return void

Disconnect() public static method

CL_Disconnect Sends a disconnect message to the server This is also called on Host_Error, so it shouldn't cause any errors
public static Disconnect ( ) : void
return void

Disconnect_f() public static method

public static Disconnect_f ( ) : void
return void

EstablishConnection() public static method

CL_EstablishConnection
public static EstablishConnection ( string host ) : void
host string
return void

Init() public static method

public static Init ( ) : void
return void

NextDemo() public static method

CL_NextDemo Called to play the next demo in the demo loop
public static NextDemo ( ) : void
return void

ReadFromServer() public static method

public static ReadFromServer ( ) : int
return int

SendCmd() public static method

public static SendCmd ( ) : void
return void

SendMove() public static method

public static SendMove ( usercmd_t &cmd ) : void
cmd usercmd_t
return void

StopPlayback() public static method

CL_StopPlayback Called when a demo file runs out, or the user starts a game
public static StopPlayback ( ) : void
return void

Property Details

NumVisEdicts public_oe static_oe property

public static int NumVisEdicts
return int