TODO
const char *server_clientname( int client_id )
TODO
int server_getclientinfo( int client_id, CLIENT_INFO * info )
TODO
void server_kick( int client_id, const char * reason )
TODO
int *server_latestinput( int client_id, int * size )
TODO
int server_send_msg( int client_id )
TODO
void server_setbrowseinfo( int game_type, int progression )
TODO
void server_setclientname( int client_id, const char * name )
TODO
void server_setclientscore( int client_id, int score )
TODO
int server_tick()
TODO
int server_tickspeed()
Called when a new snapshot is being generated for a specific client.
virtual void snap( int snapping_client )
Calls snap on all the entities in the world to create the snapshot.
void snap( int snapping_client )
Searches a snapshot for an item.
void *snap_find_item( int snapid, int type, int id )
TODO
void snap_free_id( int id )
Gets an item from a snapshot.
void *snap_get_item( int snapid, int index, SNAP_ITEM * item )
Sets the input data to send to the server.
void snap_input( void * data, int size )
Marks an item as invalid byt setting type and id to 0xffffffff.
void snap_invalidate_item( int snapid, int index )
TODO
int snap_new_id()
Creates a new item that should be sent.
void *snap_new_item( int type, int id, int size )
Check the number of items in a snapshot.
int snap_num_items( int snapid )
Tells the engine how big a specific item always will be.
void snap_set_staticsize( int type, int size )
Loads a wavpack compressed sound.
int snd_load_wv( const char * filename )
Plays a sound.
int snd_play( int cid, int sid, int flags )
Plays a sound at a specified postition.
int snd_play_at( int cid, int sid, int flags, float x, float y )
Sets the parameters for a sound channel.
void snd_set_channel( int cid, float vol, float pan )
Sets the listener posititon.
void snd_set_listener_pos( float x, float y )
Stops a currenly playing sound.
void snd_stop( int id )
Appends a string to another.
void str_append( char * dst, const char * src, int dst_size )
Compares to strings case insensitive.
int str_comp_nocase( const char * a, const char * b )
Copies a string to another.
void str_copy( char * dst, const char * src, int dst_size )
Finds a string inside another string case insensitive.
const char *str_find_nocase( const char * haystack, const char * needle )
Performs printf formating into a buffer.
void str_format( char * buffer, int buffer_size, const char * format, ... )
Takes a datablock and generates a hexstring of it.
void str_hex( char * dst, int dst_size, const void * data, int data_size )
Replaces all characters below 32 and above 127 with whitespace with exception to \r, \n and \r.
void str_sanitize( char * str )
Replaces all characters below 32 and above 127 with whitespace.
void str_sanitize_strong( char * str )
Creates a new thread.
void *thread_create( void (*threadfunc)(void *), void * user )
Suspends the current thread for a given period.
void thread_sleep( int milliseconds )
Waits for a thread to be done or destroyed.
void thread_wait( void * thread )
Called progress the entity to the next tick.
virtual void tick()
Calls tick on all the entities in the world to progress the world to the next tick.
void tick()
Called after all entities tick() function has been called.
virtual void tick_defered()
Returns the frequency of the high resolution timer.
int64 time_freq()
Fetches a sample from a high resolution timer.
int64 time_get()
Retrives the current time as a UNIX timestamp
unsigned time_timestamp()
Contains the width of the image
int width