Removes an entity from the world.
void remove_entity( ENTITY * entity )
Called when the game resets the map.
virtual void reset()
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( const char * 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 )
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()
Contains the width of the image
int width