Connects to a server at the specified address.
void client_connect( const char * address )
Returns 1 if the client is connection problems.
int client_connection_problems()
TODO
void client_direct_input( int * input, int size )
Disconnects from the current server.
void client_disconnect()
TODO
const char *client_error_string()
Returns how long time the last frame took to process.
float client_frametime()
TODO
int *client_get_input( int tick )
Returns the current intratick.
float client_intratick()
Returns the clients local time.
float client_localtime()
TODO
int client_mapdownload_amount()
TODO
int client_mapdownload_totalsize()
Returns the current preticted intra tick.
float client_predintratick()
Returns the current predicted tick.
int client_predtick()
Tells to client to shutdown.
void client_quit()
Sends a command to the server to execute on it’s console.
void client_rcon( const char * cmd )
TODO
void client_rcon_auth( const char * name, const char * password )
TODO
int client_rcon_authed()
TODO
void client_save_line( const char * line )
TODO
int client_send_msg()
TODO
SERVER_INFO *client_serverbrowse_get( int index )
TODO
int client_serverbrowse_lan()
TODO
int client_serverbrowse_num()
TODO
int client_serverbrowse_num_requests()
Issues a refresh of the server browser.
void client_serverbrowse_refresh( int lan )
Returns server info from the sorted list.
SERVER_INFO *client_serverbrowse_sorted_get( int index )
Returns how many servers there are in the sorted list.
int client_serverbrowse_sorted_num()
TODO
void client_serverbrowse_update()
Returns the state of the client.
int client_state()
Returns the tick of the current snapshot.
int client_tick()
Returns how many ticks per second the client is doing.
int client_tickspeed()
TODO
float client_ticktime()
Finds the closest character to a specific point.
class CHARACTER *closest_character( vec2 pos, float radius, ENTITY * notthis )
Breaks into the debugger based on a test.
void dbg_assert( int test, const char * msg )
Breaks into the debugger.
void dbg_break()
Prints a debug message.
void dbg_msg( const char * sys, const char * fmt, ... )
Destorys the entity.
virtual void destroy()
Destroys an entity in the world.
void destroy_entity( ENTITY * entity )
Finds entities close to a position and returns them in a list.
int find_entities( vec2 pos, float radius, ENTITY ** ents, int max, int type = -1 )
Lists the files in a directory
typedef void ( * fs_listdir_callback )(const char *name, int is_dir, void *user)
Creates a directory
int fs_makedir( const char * path )
Fetches per user configuration directory.
int fs_storage_path( const char * appname, char * path, int max )