From 12472ef7f405f5e8eb620059cbf95926a458538a Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Mon, 6 Oct 2008 18:05:01 +0000 Subject: major update. continued on ban support. added demo recording (client and server side). added demo player. added demo menu. demos have some quirks and file size optimizations havn't been done yet. some interface tweaks --- docs/output/index/General4.html | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) (limited to 'docs/output/index/General4.html') diff --git a/docs/output/index/General4.html b/docs/output/index/General4.html index 2ea0db43..30f043d7 100644 --- a/docs/output/index/General4.html +++ b/docs/output/index/General4.html @@ -11,9 +11,25 @@ if (browserType) {document.write("
");if (browserV -
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
M
 Map
 map_find_item
 map_get_data
 map_get_data_swapped
 map_get_item
 map_get_type
 map_is_loaded
 map_num_items
 map_unload_data
 mem_alloc
 mem_comp
 mem_copy
 mem_free
 mem_move
 mem_zero
 Memory
 Messaging
 modc_connected
 modc_console_init
 modc_entergame
 modc_init
 modc_message
 modc_net_version
 modc_newsnapshot
 modc_predict
 modc_rcon_line
 modc_render
 modc_save_config
 modc_shutdown
 modc_snap_input
 modc_statechange
 mods_client_direct_input
 mods_client_drop
 mods_client_enter
 mods_client_predicted_input
 mods_connected
 mods_console_init
 mods_init
 mods_message
 mods_net_version
 mods_postsnap
 mods_presnap
 mods_shutdown
 mods_snap
 mods_tick
 mods_version
 msg_pack_end
 msg_pack_int
 msg_pack_raw
 msg_pack_start
 msg_pack_string
 msg_unpack_error
 msg_unpack_int
 msg_unpack_raw
 msg_unpack_string
+
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 *map_find_item(int type,
int id)
Searches the map for an item.
void *map_get_data(int index)
Fetches a pointer to a raw data chunk in the map.
void *map_get_data_swapped(int index)
TODO
void *map_get_item(int index,
int *type,
int *id)
Gets an item from the loaded map from index.
void map_get_type(int type,
int *start,
int *num)
Gets the index range of an item type.
int map_is_loaded()
Checks if a map is loaded.
int map_num_items()
Checks the number of items in the loaded map.
void map_unload_data(int index)
TODO
void *mem_alloc_debug(const char *filename,
int line,
unsigned size,
unsigned alignment)
Allocates memory.
int mem_comp(const void *a,
const void *b,
int size)
Compares two blocks of memory
void mem_copy(void *dest,
const void *source,
unsigned size)
Copies a a memory block.
void mem_free(void *block)
Frees a block allocated through mem_alloc.
void mem_move(void *dest,
const void *source,
unsigned size)
Copies a a memory block
void mem_zero(void *block,
unsigned size)
Sets a complete memory block to 0
void modc_connected()
TODO
void modc_console_init()
TODO
void modc_entergame()
Called when the client has successfully connect to a server and loaded a map.
void modc_init()
Called when the client starts.
void modc_message(int msg)
TODO
const char *modc_net_version()
TODO
void modc_newsnapshot()
Called when the client progressed to a new snapshot.
void modc_predict()
TODO
void modc_rcon_line(const char *line)
TODO
void modc_render()
Called every frame to let the game render it self.
void modc_save_config()
TODO
void modc_shutdown()
Called when the client closes down.
int modc_snap_input(int *data)
TODO
void modc_statechange(int new_state,
int old_state)
Called every time client changes state.
void mods_client_direct_input(int cid,
void *input)
Called when the server recives new input from a client.
void mods_client_drop(int cid)
Called when a client drops from the server.
void mods_client_enter(int cid)
Called when a client has joined the game.
void mods_client_predicted_input(int cid,
void *input)
Called when the server applys the predicted input on the client.
void mods_connected(int client_id)
TODO
void mods_console_init()
TODO
void mods_init()
Called when the server is started.
void mods_message(int msg,
int client_id)
TODO
const char *mods_net_version()
TODO
void mods_postsnap()
Called after the server is done sending the snapshots.
void mods_presnap()
Called before the server starts to construct snapshots for the clients.
void mods_shutdown()
Called when the server quits.
void mods_snap(int cid)
Called to create the snapshot for a client.
void mods_tick()
Called with a regular interval to progress the gameplay.
const char *mods_version()
TODO
void msg_pack_end()
TODO
void msg_pack_int(int i)
TODO
void msg_pack_raw(const void *data,
int size)
TODO
void msg_pack_start(int msg,
int flags)
TODO
void msg_pack_string(const char *p,
int limit)
TODO
int msg_unpack_error()
TODO
int msg_unpack_int()
TODO
const unsigned char *msg_unpack_raw(int size)
TODO
const char *msg_unpack_string()
TODO
+
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
@@ -21,9 +37,9 @@ if (browserType) {document.write("
");if (browserV - -- cgit 1.4.1