Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
R
 Reinit
 remove_entity, Game World
 Rendering
 reset, Entity
 Running
S
 Server Browser
 Server Browser Sorting
 Server Hooks
 Server Interface
 Server Operation
 Server Side
 server_clientname
 server_getclientinfo
 SERVER_INFO
 SERVER_INFO_PLAYER
 server_kick
 server_latestinput
 server_send_msg
 server_setbrowseinfo
 server_setclientname
 server_setclientscore
 server_tick
 server_tickspeed
 Shutdown
 snap
 snap_find_item
 snap_free_id
 snap_get_item
 snap_input
 snap_invalidate_item
 SNAP_ITEM
 snap_new_id
 snap_new_item
 snap_num_items
 snap_set_staticsize
 Snapshots
 snd_load_wv
 snd_play
 snd_play_at
 snd_set_channel
 snd_set_listener_pos
 snd_stop
 Sound
 Structure
 Structures
T
 TEXLOAD_NORESAMPLE
 Text
 Texture Loading Flags
 tick
 tick_defered, Entity
 Time
 Time on the client
V
 Variables
 VIDEO_MODE
W
 width, IMAGE_INFO
void remove_entity(ENTITY *entity)
Removes an entity from the world.
DOCTODO
virtual void reset()
Called when the game resets the map.
Here is an graph over how the server operates on each refresh.
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()
TODO
virtual void snap(int snapping_client)
Called when a new snapshot is being generated for a specific client.
void snap(int snapping_client)
Calls snap on all the entities in the world to create the snapshot.
void *snap_find_item(int snapid,
int type,
int id)
Searches a snapshot for an item.
void snap_free_id(int id)
TODO
void *snap_get_item(int snapid,
int index,
SNAP_ITEM *item)
Gets an item from a snapshot.
void snap_input(void *data,
int size)
Sets the input data to send to the server.
void snap_invalidate_item(int snapid,
int index)
Marks an item as invalid byt setting type and id to 0xffffffff.
int snap_new_id()
TODO
void *snap_new_item(int type,
int id,
int size)
Creates a new item that should be sent.
int snap_num_items(int snapid)
Check the number of items in a snapshot.
void snap_set_staticsize(int type,
int size)
Tells the engine how big a specific item always will be.
int snd_load_wv(const char *filename)
Loads a wavpack compressed sound.
int snd_play(int cid,
int sid,
int flags)
Plays a sound.
int snd_play_at(int cid,
int sid,
int flags,
float x,
float y)
Plays a sound at a specified postition.
void snd_set_channel(int cid,
float vol,
float pan)
Sets the parameters for a sound channel.
void snd_set_listener_pos(float x,
float y)
Sets the listener posititon.
void snd_stop(int id)
Stops a currenly playing sound.
A snapshot contains a series of items.
Prevents the texture from any resampling
virtual void tick()
Called progress the entity to the next tick.
void tick()
Calls tick on all the entities in the world to progress the world to the next tick.
virtual void tick_defered()
Called after all entities tick() function has been called.
tick, intratick predtick, predintratick
int width
Contains the width of the image
Close