From edf33b8a5bab51115062626a6fb6a0320b3694ba Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sat, 8 Nov 2008 08:26:24 +0000 Subject: removed the output directory for the docs. shouldn't be in here --- docs/output/index/Classes.html | 54 ------------------------------------ docs/output/index/Constants.html | 50 --------------------------------- docs/output/index/Functions.html | 42 ---------------------------- docs/output/index/Functions2.html | 46 ------------------------------- docs/output/index/Functions3.html | 46 ------------------------------- docs/output/index/Functions4.html | 46 ------------------------------- docs/output/index/Functions5.html | 34 ----------------------- docs/output/index/General.html | 54 ------------------------------------ docs/output/index/General2.html | 38 ------------------------- docs/output/index/General3.html | 58 --------------------------------------- docs/output/index/General4.html | 50 --------------------------------- docs/output/index/General5.html | 50 --------------------------------- docs/output/index/General6.html | 50 --------------------------------- docs/output/index/Variables.html | 50 --------------------------------- 14 files changed, 668 deletions(-) delete mode 100644 docs/output/index/Classes.html delete mode 100644 docs/output/index/Constants.html delete mode 100644 docs/output/index/Functions.html delete mode 100644 docs/output/index/Functions2.html delete mode 100644 docs/output/index/Functions3.html delete mode 100644 docs/output/index/Functions4.html delete mode 100644 docs/output/index/Functions5.html delete mode 100644 docs/output/index/General.html delete mode 100644 docs/output/index/General2.html delete mode 100644 docs/output/index/General3.html delete mode 100644 docs/output/index/General4.html delete mode 100644 docs/output/index/General5.html delete mode 100644 docs/output/index/General6.html delete mode 100644 docs/output/index/Variables.html (limited to 'docs/output/index') diff --git a/docs/output/index/Classes.html b/docs/output/index/Classes.html deleted file mode 100644 index 8215f94d..00000000 --- a/docs/output/index/Classes.html +++ /dev/null @@ -1,54 +0,0 @@ - - -Class Index - - - - - - - - - -
Class 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
C
 CLIENT_INFO
E
 Entity
G
 Game Controller
 Game World
I
 IMAGE_INFO
 INPUT_EVENT
S
 SERVER_INFO
 SERVER_INFO_PLAYER
 SNAP_ITEM
V
 VIDEO_MODE
- - - - - -
Basic entity class.
- - - -
Controls the main game logic.
Tracks all entities in the game.
- - - - - - - - - - - - - -
- - - - - - - - -
Close
- - - \ No newline at end of file diff --git a/docs/output/index/Constants.html b/docs/output/index/Constants.html deleted file mode 100644 index 83d765ff..00000000 --- a/docs/output/index/Constants.html +++ /dev/null @@ -1,50 +0,0 @@ - - -Constant Index - - - - - - - - - -
Constant 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
B
 BROWSESORT_GAMETYPE
 BROWSESORT_MAP
 BROWSESORT_NAME
 BROWSESORT_NUMPLAYERS
 BROWSESORT_PING
 BROWSESORT_PROGRESSION
C
 Client States
 CLIENTSTATE_CONNECTING
 CLIENTSTATE_LOADING
 CLIENTSTATE_OFFLINE
 CLIENTSTATE_ONLINE
 CLIENTSTATE_QUITING
I
 Image Formats
 IMG_ALPHA
 IMG_AUTO
 IMG_RGB
 IMG_RGBA
S
 Server Browser Sorting
T
 TEXLOAD_NORESAMPLE
 Texture Loading Flags
- -
Sort by game type.
Sort by map
Sort by name.
Sort after how many players there are on the server.
Sort by ping.
Sort by progression.
- - - -
The client is trying to connect to a server.
The client has connected to a server and is loading resources.
The client is offline.
The client is connected to a server and running the game.
The client is quiting.
- - - -
8-Bit uncompressed alpha
Lets the engine choose the format.
8-Bit uncompressed RGB
8-Bit uncompressed RGBA
- - - - - - - -
Prevents the texture from any resampling
- -
- - - - - - - - -
Close
- - - \ No newline at end of file diff --git a/docs/output/index/Functions.html b/docs/output/index/Functions.html deleted file mode 100644 index b04e2d4a..00000000 --- a/docs/output/index/Functions.html +++ /dev/null @@ -1,42 +0,0 @@ - - -Function Index - - - - - - - - - -
Function 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
C
 client_connect
 client_connection_problems
 client_direct_input
 client_disconnect
 client_error_string
 client_frametime
 client_get_input
 client_intratick
 client_latestversion
 client_localtime
 client_mapdownload_amount
 client_mapdownload_totalsize
 client_predintratick
 client_predtick
 client_prevtick
 client_quit
 client_rcon
 client_rcon_auth
 client_rcon_authed
 client_save_line
 client_send_msg
 client_serverbrowse_addfavorite
 client_serverbrowse_get
 client_serverbrowse_lan
 client_serverbrowse_num
 client_serverbrowse_num_requests
 client_serverbrowse_refresh
 client_serverbrowse_removefavorite
 client_serverbrowse_sorted_get
 client_serverbrowse_sorted_num
 client_serverbrowse_update
 client_state
 client_tick
 client_tickspeed
 client_ticktime
 closest_character, Game World
D
 destroy, Entity
 destroy_entity, Game World
F
 find_entities, Game World
- -
void client_connect(const char *address)
Connects to a server at the specified address.
int client_connection_problems()
Returns 1 if the client is connection problems.
void client_direct_input(int *input,
int size)
TODO
void client_disconnect()
Disconnects from the current server.
const char *client_error_string()
TODO
float client_frametime()
Returns how long time the last frame took to process.
int *client_get_input(int tick)
TODO
float client_intratick()
Returns the current intratick.
const char *client_latestversion()
Returns 0 if there’s no version difference
float client_localtime()
Returns the clients local time.
int client_mapdownload_amount()
TODO
int client_mapdownload_totalsize()
TODO
float client_predintratick()
Returns the current preticted intra tick.
int client_predtick()
Returns the current predicted tick.
int client_prevtick()
Returns the tick of the previous snapshot.
void client_quit()
Tells to client to shutdown.
void client_rcon(const char *cmd)
Sends a command to the server to execute on it’s console.
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
void client_serverbrowse_addfavorite(NETADDR addr)
Adds a server to the favorite list
SERVER_INFO *client_serverbrowse_get(int index)
TODO
int client_serverbrowse_lan()
TODO
int client_serverbrowse_num()
TODO
int client_serverbrowse_num_requests()
TODO
void client_serverbrowse_refresh(int type)
Issues a refresh of the server browser.
void client_serverbrowse_removefavorite(NETADDR addr)
Removes a server to the favorite list
SERVER_INFO *client_serverbrowse_sorted_get(int index)
Returns server info from the sorted list.
int client_serverbrowse_sorted_num()
Returns how many servers there are in the sorted list.
void client_serverbrowse_update()
TODO
int client_state()
Returns the state of the client.
int client_tick()
Returns the tick of the current snapshot.
int client_tickspeed()
Returns how many ticks per second the client is doing.
float client_ticktime()
TODO
class CHARACTER *closest_character(vec2 pos,
float radius,
ENTITY *notthis)
Finds the closest character to a specific point.
- - - -
virtual void destroy()
Destorys the entity.
void destroy_entity(ENTITY *entity)
Destroys an entity in the world.
- - - -
int find_entities(vec2 pos,  
float radius,  
ENTITY **ents,  
int max,  
int type =  -1)
Finds entities close to a position and returns them in a list.
- -
- - - - - - - - -
Close
- - - \ No newline at end of file diff --git a/docs/output/index/Functions2.html b/docs/output/index/Functions2.html deleted file mode 100644 index 06926d83..00000000 --- a/docs/output/index/Functions2.html +++ /dev/null @@ -1,46 +0,0 @@ - - -Function Index - - - - - - - - - -
Function 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
G
 gfx_blend_additive
 gfx_blend_none
 gfx_blend_normal
 gfx_clear
 gfx_clip_disable
 gfx_clip_enable
 gfx_get_video_modes
 gfx_getscreen
 gfx_lines_begin
 gfx_lines_draw
 gfx_lines_end
 gfx_load_png
 gfx_load_texture
 gfx_load_texture_raw
 gfx_mapscreen
 gfx_memory_usage
 gfx_minimize
 gfx_quads_begin
 gfx_quads_draw
 gfx_quads_draw_freeform
 gfx_quads_drawTL
 gfx_quads_end
 gfx_quads_setrotation
 gfx_quads_setsubset
 gfx_quads_setsubset_free
 gfx_quads_text
 gfx_screenaspect
 gfx_screenheight
 gfx_screenshot
 gfx_screenshot_direct
 gfx_screenwidth
 gfx_setcolor
 gfx_setcolorvertex
 gfx_text
 gfx_text_color
 gfx_text_set_default_font
 gfx_text_width
 gfx_texture_set
 gfx_unload_texture
H
 huffman_compress
 huffman_decompress
 huffman_init
I
 inp_clear_events, INPUT_EVENT
 inp_clear_key_states, INPUT_EVENT
 inp_get_event, INPUT_EVENT
 inp_key_code, INPUT_EVENT
 inp_key_down, INPUT_EVENT
 inp_key_name, INPUT_EVENT
 inp_key_pressed, INPUT_EVENT
 inp_key_presses, INPUT_EVENT
 inp_key_releases, INPUT_EVENT
 inp_key_state, INPUT_EVENT
 inp_key_was_pressed, INPUT_EVENT
 inp_mouse_doubleclick, INPUT_EVENT
 inp_mouse_relative, INPUT_EVENT
 inp_mouse_scroll, INPUT_EVENT
 inp_num_events, INPUT_EVENT
 insert_entity, Game World
 interserct_character, Game World
M
 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
 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
- -
void gfx_blend_additive()
Set the active blending mode to additive (src, one).
void gfx_blend_none()
Disables blending
void gfx_blend_normal()
Set the active blending mode to normal (src, 1-src).
void gfx_clear(float r,
float g,
float b)
Clears the screen with the specified color.
void gfx_clip_disable()
TODO
void gfx_clip_enable(int x,
int y,
int w,
int h)
TODO
int gfx_get_video_modes(VIDEO_MODE *list,
int maxcount)
Fetches a list of all the available video modes.
void gfx_getscreen(float *tl_x,
float *tl_y,
float *br_x,
float *br_y)
TODO
void gfx_lines_begin()
TODO
void gfx_lines_draw(float x0,
float y0,
float x1,
float y1)
TODO
void gfx_lines_end()
TODO
int gfx_load_png(IMAGE_INFO *img,
const char *filename)
Loads a PNG image from disk.
int gfx_load_texture(const char *filename,
int store_format,
int flags)
Loads a texture from a file.
int gfx_load_texture_raw(int w,
int h,
int format,
const void *data,
int store_format,
int flags)
Loads a texture from memory.
void gfx_mapscreen(float tl_x,
float tl_y,
float br_x,
float br_y)
Specifies the coordinate system for the screen.
int gfx_memory_usage()
TODO
void gfx_minimize()
Minimizes the window.
void gfx_quads_begin()
Begins a quad drawing session.
void gfx_quads_draw(float x,
float y,
float w,
float h)
Draws a quad by specifying the center point.
void gfx_quads_draw_freeform(float x0,
float y0,
float x1,
float y1,
float x2,
float y2,
float x3,
float y3)
Draws a quad by specifying the corner points.
void gfx_quads_drawTL(float x,
float y,
float width,
float height)
Draws a quad by specifying the top-left point.
void gfx_quads_end()
Ends a quad session.
void gfx_quads_setrotation(float angle)
Sets the rotation to use when drawing a quad.
void gfx_quads_setsubset(float tl_u,
float tl_v,
float br_u,
float br_v)
Sets the uv coordinates to use.
void gfx_quads_setsubset_free(float x0,
float y0,
float x1,
float y1,
float x2,
float y2,
float x3,
float y3)
TODO
void gfx_quads_text(float x,
float y,
float size,
const char *text)
TODO
float gfx_screenaspect()
Returns the aspect ratio between width and height.
int gfx_screenheight()
Returns the screen height.
void gfx_screenshot()
TODO
void gfx_screenshot_direct(const char *filename)
TODO
int gfx_screenwidth()
Returns the screen width.
void gfx_setcolor(float r,
float g,
float b,
float a)
Sets the color of all the vertices.
void gfx_setcolorvertex(int i,
float r,
float g,
float b,
float a)
Sets the color of a vertex.
void gfx_text(void *font,
float x,
float y,
float size,
const char *text,
int max_width)
TODO
void gfx_text_color(float r,
float g,
float b,
float a)
TODO
void gfx_text_set_default_font(void *font)
TODO
float gfx_text_width(void *font,
float size,
const char *text,
int length)
TODO
void gfx_texture_set(int id)
Sets the active texture.
int gfx_unload_texture(int id)
Unloads a texture.
- - - -
int huffman_compress(HUFFMAN_STATE *huff,
const void *input,
int input_size,
void *output,
int output_size)
Compresses a buffer and outputs a compressed buffer.
int huffman_decompress(HUFFMAN_STATE *huff,
const void *input,
int input_size,
void *output,
int output_size)
Decompresses a buffer
void huffman_init(HUFFMAN_STATE *huff,
const unsigned *frequencies)
Inits the compressor/decompressor.
- - - -
void inp_clear_events()
TODO
void inp_clear_key_states()
TODO
INPUT_EVENT inp_get_event(int index)
TODO
int inp_key_code(const char *key_name)
TODO
int inp_key_down(int key)
TODO
const char *inp_key_name(int k)
TODO
int inp_key_pressed(int key)
Checks if a key is pressed.
int inp_key_presses(int key)
TODO
int inp_key_releases(int key)
TODO
int inp_key_state(int key)
TODO
int inp_key_was_pressed(int key)
TODO
int inp_mouse_doubleclick()
TODO
void inp_mouse_relative(int *x,
int *y)
Fetches the mouse movements.
int inp_mouse_scroll()
TODO
int inp_num_events()
TODO
void insert_entity(ENTITY *entity)
Adds an entity to the world.
Finds the closest character that intersects the line.
- - - -
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 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
- -
- - - - - - - - -
Close
- - - \ No newline at end of file diff --git a/docs/output/index/Functions3.html b/docs/output/index/Functions3.html deleted file mode 100644 index a8b83786..00000000 --- a/docs/output/index/Functions3.html +++ /dev/null @@ -1,46 +0,0 @@ - - -Function Index - - - - - - - - - -
Function 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
O
 on_character_death, Game Controller
 on_character_spawn, Game Controller
 on_entity, Game Controller
R
 remove_entity, Game World
 reset, Entity
S
 server_clientname
 server_getclientinfo
 server_kick
 server_latestinput
 server_send_msg
 server_setbrowseinfo
 server_setclientname
 server_setclientscore
 server_tick
 server_tickspeed
 snap
 snap_find_item
 snap_free_id
 snap_get_item
 snap_input
 snap_invalidate_item
 snap_new_id
 snap_new_item
 snap_num_items
 snap_set_staticsize
 snd_load_wv
 snd_play
 snd_play_at
 snd_set_channel
 snd_set_listener_pos
 snd_stop
T
 tick
 tick_defered, Entity
- -
virtual int on_character_death(class CHARACTER *victim,
class PLAYER *killer,
int weapon)
Called when a character in the world dies.
virtual void on_character_spawn(class CHARACTER *chr)
Called when a character spawns into the game world.
virtual bool on_entity(int index,
vec2 pos)
Called when the map is loaded to process an entity in the map.
- - - -
void remove_entity(ENTITY *entity)
Removes an entity from the world.
virtual void reset()
Called when the game resets the map.
- - - -
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.
- - - -
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.
- -
- - - - - - - - -
Close
- - - \ No newline at end of file diff --git a/docs/output/index/Functions4.html b/docs/output/index/Functions4.html deleted file mode 100644 index 604872de..00000000 --- a/docs/output/index/Functions4.html +++ /dev/null @@ -1,46 +0,0 @@ - - -Function Index - - - - - - - - - -
Function 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
N
 net_addr_comp
 net_addr_str
 net_errno
 net_host_lookup
 net_init
 net_tcp_accept
 net_tcp_close
 net_tcp_connect
 net_tcp_connect_non_blocking
 net_tcp_create
 net_tcp_listen
 net_tcp_recv
 net_tcp_send
 net_tcp_set_non_blocking
 net_udp_close
 net_udp_create
 net_udp_recv
 net_udp_send
 net_would_block
O
 on_character_death, Game Controller
 on_character_spawn, Game Controller
 on_entity, Game Controller
R
 remove_entity, Game World
 reset, Entity
S
 server_clientname
 server_getclientinfo
 server_kick
 server_latestinput
 server_send_msg
 server_setbrowseinfo
 server_setclientname
 server_setclientscore
 server_tick
 server_tickspeed
 snap
 snap_find_item
 snap_free_id
 snap_get_item
 snap_input
 snap_invalidate_item
 snap_new_id
 snap_new_item
 snap_num_items
 snap_set_staticsize
 snd_load_wv
 snd_play
 snd_play_at
 snd_set_channel
 snd_set_listener_pos
 snd_stop
 str_append
 str_comp_nocase
 str_copy
 str_find_nocase
 str_format
 str_hex
 str_sanitize
 str_sanitize_strong
- -
int net_addr_comp(const NETADDR *a,
const NETADDR *b)
Compares two network addresses.
int net_addr_str(const NETADDR *addr,
char *string,
int max_length)
Turns a network address into a representive string.
int net_errno()
DOCTODO: serp
int net_host_lookup(const char *hostname,
NETADDR *addr,
int types)
Does a hostname lookup by name and fills out the passed NETADDR struct with the recieved details.
int net_init()
Initiates network functionallity.
int net_tcp_accept(NETSOCKET sock,
NETSOCKET *new_sock,
NETADDR *addr)
Polls a listning socket for a new connection.
int net_tcp_close(NETSOCKET sock)
Closes a TCP socket.
int net_tcp_connect(NETSOCKET sock,
const NETADDR *addr)
Connects one socket to another.
int net_tcp_connect_non_blocking(NETSOCKET sock,
const NETADDR *a)
DOCTODO: serp
NETSOCKET net_tcp_create(const NETADDR *a)
Creates a TCP socket.
int net_tcp_listen(NETSOCKET sock,
int backlog)
Makes the socket start listening for new connections.
int net_tcp_recv(NETSOCKET sock,
void *data,
int maxsize)
Recvives data from a TCP stream.
int net_tcp_send(NETSOCKET sock,
const void *data,
int size)
Sends data to a TCP stream.
int net_tcp_set_non_blocking(NETSOCKET sock)
DOCTODO: serp
int net_udp_close(NETSOCKET sock)
Closes an UDP socket.
NETSOCKET net_udp_create(NETADDR bindaddr)
Creates a UDP socket and binds it to a port.
int net_udp_recv(NETSOCKET sock,
NETADDR *addr,
void *data,
int maxsize)
Recives a packet over an UDP socket.
int net_udp_send(NETSOCKET sock,
const NETADDR *addr,
const void *data,
int size)
Sends a packet over an UDP socket.
int net_would_block()
DOCTODO: serp
- - - -
virtual int on_character_death(class CHARACTER *victim,
class PLAYER *killer,
int weapon)
Called when a character in the world dies.
virtual void on_character_spawn(class CHARACTER *chr)
Called when a character spawns into the game world.
virtual bool on_entity(int index,
vec2 pos)
Called when the map is loaded to process an entity in the map.
- - - -
void remove_entity(ENTITY *entity)
Removes an entity from the world.
virtual void reset()
Called when the game resets the map.
- - - -
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()
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.
void str_append(char *dst,
const char *src,
int dst_size)
Appends a string to another.
int str_comp_nocase(const char *a,
const char *b)
Compares to strings case insensitive.
void str_copy(char *dst,
const char *src,
int dst_size)
Copies a string to another.
const char *str_find_nocase(const char *haystack,
const char *needle)
Finds a string inside another string case insensitive.
void str_format(char *buffer,
int buffer_size,
const char *format,
 ...)
Performs printf formating into a buffer.
void str_hex(char *dst,
int dst_size,
const void *data,
int data_size)
Takes a datablock and generates a hexstring of it.
void str_sanitize(char *str)
Replaces all characters below 32 and above 127 with whitespace with exception to \r, \n and \r.
void str_sanitize_strong(char *str)
Replaces all characters below 32 and above 127 with whitespace.
- -
- - - - - - - - -
Close
- - - \ No newline at end of file diff --git a/docs/output/index/Functions5.html b/docs/output/index/Functions5.html deleted file mode 100644 index 4200ebe5..00000000 --- a/docs/output/index/Functions5.html +++ /dev/null @@ -1,34 +0,0 @@ - - -Function Index - - - - - - - - - -
Function 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
T
 thread_create
 thread_destoy
 thread_sleep
 thread_wait
 thread_yeild
 tick
 tick_defered, Entity
 time_freq
 time_get
 time_timestamp
- -
void *thread_create(void (*threadfunc)(void *),
void *user)
Creates a new thread.
Destroys a thread.
void thread_sleep(int milliseconds)
Suspends the current thread for a given period.
void thread_wait(void *thread)
Waits for a thread to be done or destroyed.
Yeild the current threads execution slice.
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.
int64 time_freq()
Returns the frequency of the high resolution timer.
int64 time_get()
Fetches a sample from a high resolution timer.
unsigned time_timestamp()
Retrives the current time as a UNIX timestamp
- -
- - - - - - - - -
Close
- - - \ No newline at end of file diff --git a/docs/output/index/General.html b/docs/output/index/General.html deleted file mode 100644 index ff43c120..00000000 --- a/docs/output/index/General.html +++ /dev/null @@ -1,54 +0,0 @@ - - -Index - - - - - - - - - -
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
A
 Actions
B
 BROWSESORT_GAMETYPE
 BROWSESORT_MAP
 BROWSESORT_NAME
 BROWSESORT_NUMPLAYERS
 BROWSESORT_PING
 BROWSESORT_PROGRESSION
C
 Client Hooks
 Client Interface
 Client Side
 Client States
 client_connect
 client_connection_problems
 client_direct_input
 client_disconnect
 client_error_string
 client_frametime
 client_get_input
 CLIENT_INFO
 client_intratick
 client_latestversion
 client_localtime
 client_mapdownload_amount
 client_mapdownload_totalsize
 client_predintratick
 client_predtick
 client_prevtick
 client_quit
 client_rcon
 client_rcon_auth
 client_rcon_authed
 client_save_line
 client_send_msg
 client_serverbrowse_addfavorite
 client_serverbrowse_get
 client_serverbrowse_lan
 client_serverbrowse_num
 client_serverbrowse_num_requests
 client_serverbrowse_refresh
 client_serverbrowse_removefavorite
 client_serverbrowse_sorted_get
 client_serverbrowse_sorted_num
 client_serverbrowse_update
 client_state
 client_tick
 client_tickspeed
 client_ticktime
 CLIENTSTATE_CONNECTING
 CLIENTSTATE_LOADING
 CLIENTSTATE_OFFLINE
 CLIENTSTATE_ONLINE
 CLIENTSTATE_QUITING
 closest_character, Game World
 Compression
 Constants
 Creating
D
 data, IMAGE_INFO
 Definitions
 destroy, Entity
 destroy_entity, Game World
E
 e_huffman.h
 Engine Interface
 Entity
F
 find_entities, Game World
 format, IMAGE_INFO
 Functions
- - - - - -
Sort by game type.
Sort by map
Sort by name.
Sort after how many players there are on the server.
Sort by ping.
Sort by progression.
- - - -
void client_connect(const char *address)
Connects to a server at the specified address.
int client_connection_problems()
Returns 1 if the client is connection problems.
void client_direct_input(int *input,
int size)
TODO
void client_disconnect()
Disconnects from the current server.
const char *client_error_string()
TODO
float client_frametime()
Returns how long time the last frame took to process.
int *client_get_input(int tick)
TODO
float client_intratick()
Returns the current intratick.
const char *client_latestversion()
Returns 0 if there’s no version difference
float client_localtime()
Returns the clients local time.
int client_mapdownload_amount()
TODO
int client_mapdownload_totalsize()
TODO
float client_predintratick()
Returns the current preticted intra tick.
int client_predtick()
Returns the current predicted tick.
int client_prevtick()
Returns the tick of the previous snapshot.
void client_quit()
Tells to client to shutdown.
void client_rcon(const char *cmd)
Sends a command to the server to execute on it’s console.
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
void client_serverbrowse_addfavorite(NETADDR addr)
Adds a server to the favorite list
SERVER_INFO *client_serverbrowse_get(int index)
TODO
int client_serverbrowse_lan()
TODO
int client_serverbrowse_num()
TODO
int client_serverbrowse_num_requests()
TODO
void client_serverbrowse_refresh(int type)
Issues a refresh of the server browser.
void client_serverbrowse_removefavorite(NETADDR addr)
Removes a server to the favorite list
SERVER_INFO *client_serverbrowse_sorted_get(int index)
Returns server info from the sorted list.
int client_serverbrowse_sorted_num()
Returns how many servers there are in the sorted list.
void client_serverbrowse_update()
TODO
int client_state()
Returns the state of the client.
int client_tick()
Returns the tick of the current snapshot.
int client_tickspeed()
Returns how many ticks per second the client is doing.
float client_ticktime()
TODO
The client is trying to connect to a server.
The client has connected to a server and is loading resources.
The client is offline.
The client is connected to a server and running the game.
The client is quiting.
class CHARACTER *closest_character(vec2 pos,
float radius,
ENTITY *notthis)
Finds the closest character to a specific point.
After a snapshot have been created, compression is applyed to reduce the bandwidth.
Items can be added when mods_snap is called using the snap_new_item function to insert an item to the snapshot.
- - - -
void *data
Pointer to the image data.
virtual void destroy()
Destorys the entity.
void destroy_entity(ENTITY *entity)
Destroys an entity in the world.
- - - -
Basic entity class.
- - - -
int find_entities(vec2 pos,  
float radius,  
ENTITY **ents,  
int max,  
int type =  -1)
Finds entities close to a position and returns them in a list.
int format
Contains the format of the image.
- -
- - - - - - - - -
Close
- - - \ No newline at end of file diff --git a/docs/output/index/General2.html b/docs/output/index/General2.html deleted file mode 100644 index 4ad11a5d..00000000 --- a/docs/output/index/General2.html +++ /dev/null @@ -1,38 +0,0 @@ - - -Index - - - - - - - - - -
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
G
 Game Controller
 Game World
 gfx_blend_additive
 gfx_blend_none
 gfx_blend_normal
 gfx_clear
 gfx_clip_disable
 gfx_clip_enable
 gfx_get_video_modes
 gfx_getscreen
 gfx_lines_begin
 gfx_lines_draw
 gfx_lines_end
 gfx_load_png
 gfx_load_texture
 gfx_load_texture_raw
 gfx_mapscreen
 gfx_memory_usage
 gfx_minimize
 gfx_quads_begin
 gfx_quads_draw
 gfx_quads_draw_freeform
 gfx_quads_drawTL
 gfx_quads_end
 gfx_quads_setrotation
 gfx_quads_setsubset
 gfx_quads_setsubset_free
 gfx_quads_text
 gfx_screenaspect
 gfx_screenheight
 gfx_screenshot
 gfx_screenshot_direct
 gfx_screenwidth
 gfx_setcolor
 gfx_setcolorvertex
 gfx_text
 gfx_text_color
 gfx_text_set_default_font
 gfx_text_width
 gfx_texture_set
 gfx_unload_texture
 Graphics
H
 height, IMAGE_INFO
 huffman_compress
 huffman_decompress
 huffman_init
- -
Controls the main game logic.
Tracks all entities in the game.
void gfx_blend_additive()
Set the active blending mode to additive (src, one).
void gfx_blend_none()
Disables blending
void gfx_blend_normal()
Set the active blending mode to normal (src, 1-src).
void gfx_clear(float r,
float g,
float b)
Clears the screen with the specified color.
void gfx_clip_disable()
TODO
void gfx_clip_enable(int x,
int y,
int w,
int h)
TODO
int gfx_get_video_modes(VIDEO_MODE *list,
int maxcount)
Fetches a list of all the available video modes.
void gfx_getscreen(float *tl_x,
float *tl_y,
float *br_x,
float *br_y)
TODO
void gfx_lines_begin()
TODO
void gfx_lines_draw(float x0,
float y0,
float x1,
float y1)
TODO
void gfx_lines_end()
TODO
int gfx_load_png(IMAGE_INFO *img,
const char *filename)
Loads a PNG image from disk.
int gfx_load_texture(const char *filename,
int store_format,
int flags)
Loads a texture from a file.
int gfx_load_texture_raw(int w,
int h,
int format,
const void *data,
int store_format,
int flags)
Loads a texture from memory.
void gfx_mapscreen(float tl_x,
float tl_y,
float br_x,
float br_y)
Specifies the coordinate system for the screen.
int gfx_memory_usage()
TODO
void gfx_minimize()
Minimizes the window.
void gfx_quads_begin()
Begins a quad drawing session.
void gfx_quads_draw(float x,
float y,
float w,
float h)
Draws a quad by specifying the center point.
void gfx_quads_draw_freeform(float x0,
float y0,
float x1,
float y1,
float x2,
float y2,
float x3,
float y3)
Draws a quad by specifying the corner points.
void gfx_quads_drawTL(float x,
float y,
float width,
float height)
Draws a quad by specifying the top-left point.
void gfx_quads_end()
Ends a quad session.
void gfx_quads_setrotation(float angle)
Sets the rotation to use when drawing a quad.
void gfx_quads_setsubset(float tl_u,
float tl_v,
float br_u,
float br_v)
Sets the uv coordinates to use.
void gfx_quads_setsubset_free(float x0,
float y0,
float x1,
float y1,
float x2,
float y2,
float x3,
float y3)
TODO
void gfx_quads_text(float x,
float y,
float size,
const char *text)
TODO
float gfx_screenaspect()
Returns the aspect ratio between width and height.
int gfx_screenheight()
Returns the screen height.
void gfx_screenshot()
TODO
void gfx_screenshot_direct(const char *filename)
TODO
int gfx_screenwidth()
Returns the screen width.
void gfx_setcolor(float r,
float g,
float b,
float a)
Sets the color of all the vertices.
void gfx_setcolorvertex(int i,
float r,
float g,
float b,
float a)
Sets the color of a vertex.
void gfx_text(void *font,
float x,
float y,
float size,
const char *text,
int max_width)
TODO
void gfx_text_color(float r,
float g,
float b,
float a)
TODO
void gfx_text_set_default_font(void *font)
TODO
float gfx_text_width(void *font,
float size,
const char *text,
int length)
TODO
void gfx_texture_set(int id)
Sets the active texture.
int gfx_unload_texture(int id)
Unloads a texture.
- - - -
int height
Contains the height of the image
int huffman_compress(HUFFMAN_STATE *huff,
const void *input,
int input_size,
void *output,
int output_size)
Compresses a buffer and outputs a compressed buffer.
int huffman_decompress(HUFFMAN_STATE *huff,
const void *input,
int input_size,
void *output,
int output_size)
Decompresses a buffer
void huffman_init(HUFFMAN_STATE *huff,
const unsigned *frequencies)
Inits the compressor/decompressor.
- -
- - - - - - - - -
Close
- - - \ No newline at end of file diff --git a/docs/output/index/General3.html b/docs/output/index/General3.html deleted file mode 100644 index 097c75ef..00000000 --- a/docs/output/index/General3.html +++ /dev/null @@ -1,58 +0,0 @@ - - -Index - - - - - - - - - -
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
I
 Image Formats
 IMAGE_INFO
 IMG_ALPHA
 IMG_AUTO
 IMG_RGB
 IMG_RGBA
 In depth
 Init
 inp_clear_events, INPUT_EVENT
 inp_clear_key_states, INPUT_EVENT
 inp_get_event, INPUT_EVENT
 inp_key_code, INPUT_EVENT
 inp_key_down, INPUT_EVENT
 inp_key_name, INPUT_EVENT
 inp_key_pressed, INPUT_EVENT
 inp_key_presses, INPUT_EVENT
 inp_key_releases, INPUT_EVENT
 inp_key_state, INPUT_EVENT
 inp_key_was_pressed, INPUT_EVENT
 inp_mouse_doubleclick, INPUT_EVENT
 inp_mouse_relative, INPUT_EVENT
 inp_mouse_scroll, INPUT_EVENT
 inp_num_events, INPUT_EVENT
 Input
 INPUT_EVENT
 insert_entity, Game World
 Inspection
 interserct_character, Game World
 Interval
L
 Lines
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
 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
N
 Network(Server)
O
 on_character_death, Game Controller
 on_character_spawn, Game Controller
 on_entity, Game Controller
 Other
 Overview
P
 pos, Entity
 Prediction
 proximity_radius, Entity
Q
 Quads
- -
8-Bit uncompressed alpha
Lets the engine choose the format.
8-Bit uncompressed RGB
8-Bit uncompressed RGBA
void inp_clear_events()
TODO
void inp_clear_key_states()
TODO
INPUT_EVENT inp_get_event(int index)
TODO
int inp_key_code(const char *key_name)
TODO
int inp_key_down(int key)
TODO
const char *inp_key_name(int k)
TODO
int inp_key_pressed(int key)
Checks if a key is pressed.
int inp_key_presses(int key)
TODO
int inp_key_releases(int key)
TODO
int inp_key_state(int key)
TODO
int inp_key_was_pressed(int key)
TODO
int inp_mouse_doubleclick()
TODO
void inp_mouse_relative(int *x,
int *y)
Fetches the mouse movements.
int inp_mouse_scroll()
TODO
int inp_num_events()
TODO
void insert_entity(ENTITY *entity)
Adds an entity to the world.
modc_newsnapshot is called when a new snapshot has arrived for processing.
Finds the closest character that intersects the line.
The interval for how often a client recives a snapshot changes during the course of the connection.
- - - - - - - -
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 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
- - - - - - - -
virtual int on_character_death(class CHARACTER *victim,
class PLAYER *killer,
int weapon)
Called when a character in the world dies.
virtual void on_character_spawn(class CHARACTER *chr)
Called when a character spawns into the game world.
virtual bool on_entity(int index,
vec2 pos)
Called when the map is loaded to process an entity in the map.
- - - -
vec2 pos
Contains the current posititon of the entity.
The engine calls modc_predict when reprediction is required.
float proximity_radius
Contains the physical size of the entity.
- - - - - -
- - - - - - - - -
Close
- - - \ No newline at end of file diff --git a/docs/output/index/General4.html b/docs/output/index/General4.html deleted file mode 100644 index 30f043d7..00000000 --- a/docs/output/index/General4.html +++ /dev/null @@ -1,50 +0,0 @@ - - -Index - - - - - - - - - -
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
- - - \ No newline at end of file diff --git a/docs/output/index/General5.html b/docs/output/index/General5.html deleted file mode 100644 index 7c356e9e..00000000 --- a/docs/output/index/General5.html +++ /dev/null @@ -1,50 +0,0 @@ - - -Index - - - - - - - - - -
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
N
 net_addr_comp
 net_addr_str
 net_errno
 net_host_lookup
 net_init
 net_tcp_accept
 net_tcp_close
 net_tcp_connect
 net_tcp_connect_non_blocking
 net_tcp_create
 net_tcp_listen
 net_tcp_recv
 net_tcp_send
 net_tcp_set_non_blocking
 net_udp_close
 net_udp_create
 net_udp_recv
 net_udp_send
 net_would_block
 Network General
 Network TCP
 Network UDP
 Network(Server)
O
 on_character_death, Game Controller
 on_character_spawn, Game Controller
 on_entity, Game Controller
 OS Abstraction
 Other
 Overview
P
 pos, Entity
 Prediction
 proximity_radius, Entity
Q
 Quads
R
 Reinit
 remove_entity, Game World
 Rendering
 reset, Entity
 Running
- -
int net_addr_comp(const NETADDR *a,
const NETADDR *b)
Compares two network addresses.
int net_addr_str(const NETADDR *addr,
char *string,
int max_length)
Turns a network address into a representive string.
int net_errno()
DOCTODO: serp
int net_host_lookup(const char *hostname,
NETADDR *addr,
int types)
Does a hostname lookup by name and fills out the passed NETADDR struct with the recieved details.
int net_init()
Initiates network functionallity.
int net_tcp_accept(NETSOCKET sock,
NETSOCKET *new_sock,
NETADDR *addr)
Polls a listning socket for a new connection.
int net_tcp_close(NETSOCKET sock)
Closes a TCP socket.
int net_tcp_connect(NETSOCKET sock,
const NETADDR *addr)
Connects one socket to another.
int net_tcp_connect_non_blocking(NETSOCKET sock,
const NETADDR *a)
DOCTODO: serp
NETSOCKET net_tcp_create(const NETADDR *a)
Creates a TCP socket.
int net_tcp_listen(NETSOCKET sock,
int backlog)
Makes the socket start listening for new connections.
int net_tcp_recv(NETSOCKET sock,
void *data,
int maxsize)
Recvives data from a TCP stream.
int net_tcp_send(NETSOCKET sock,
const void *data,
int size)
Sends data to a TCP stream.
int net_tcp_set_non_blocking(NETSOCKET sock)
DOCTODO: serp
int net_udp_close(NETSOCKET sock)
Closes an UDP socket.
NETSOCKET net_udp_create(NETADDR bindaddr)
Creates a UDP socket and binds it to a port.
int net_udp_recv(NETSOCKET sock,
NETADDR *addr,
void *data,
int maxsize)
Recives a packet over an UDP socket.
int net_udp_send(NETSOCKET sock,
const NETADDR *addr,
const void *data,
int size)
Sends a packet over an UDP socket.
int net_would_block()
DOCTODO: serp
- - - -
virtual int on_character_death(class CHARACTER *victim,
class PLAYER *killer,
int weapon)
Called when a character in the world dies.
virtual void on_character_spawn(class CHARACTER *chr)
Called when a character spawns into the game world.
virtual bool on_entity(int index,
vec2 pos)
Called when the map is loaded to process an entity in the map.
- - - -
vec2 pos
Contains the current posititon of the entity.
The engine calls modc_predict when reprediction is required.
float proximity_radius
Contains the physical size of the entity.
- - - - - - - -
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.
- -
- - - - - - - - -
Close
- - - \ No newline at end of file diff --git a/docs/output/index/General6.html b/docs/output/index/General6.html deleted file mode 100644 index 8349d76a..00000000 --- a/docs/output/index/General6.html +++ /dev/null @@ -1,50 +0,0 @@ - - -Index - - - - - - - - - -
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
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
 str_append
 str_comp_nocase
 str_copy
 str_find_nocase
 str_format
 str_hex
 str_sanitize
 str_sanitize_strong
 Strings
 Structure
 Structures
T
 TEXLOAD_NORESAMPLE
 Text
 Texture Loading Flags
 thread_create
 thread_destoy
 thread_sleep
 thread_wait
 thread_yeild
 Threads
 tick
 tick_defered, Entity
 Time
 Time on the client
 time_freq
 time_get
 time_timestamp
 Timer
U
 Undocumented
V
 Variables
 VIDEO_MODE
W
 width, IMAGE_INFO
- -
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()
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.
void str_append(char *dst,
const char *src,
int dst_size)
Appends a string to another.
int str_comp_nocase(const char *a,
const char *b)
Compares to strings case insensitive.
void str_copy(char *dst,
const char *src,
int dst_size)
Copies a string to another.
const char *str_find_nocase(const char *haystack,
const char *needle)
Finds a string inside another string case insensitive.
void str_format(char *buffer,
int buffer_size,
const char *format,
 ...)
Performs printf formating into a buffer.
void str_hex(char *dst,
int dst_size,
const void *data,
int data_size)
Takes a datablock and generates a hexstring of it.
void str_sanitize(char *str)
Replaces all characters below 32 and above 127 with whitespace with exception to \r, \n and \r.
void str_sanitize_strong(char *str)
Replaces all characters below 32 and above 127 with whitespace.
A snapshot contains a series of items.
- - - -
Prevents the texture from any resampling
void *thread_create(void (*threadfunc)(void *),
void *user)
Creates a new thread.
Destroys a thread.
void thread_sleep(int milliseconds)
Suspends the current thread for a given period.
void thread_wait(void *thread)
Waits for a thread to be done or destroyed.
Yeild the current threads execution slice.
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
int64 time_freq()
Returns the frequency of the high resolution timer.
int64 time_get()
Fetches a sample from a high resolution timer.
unsigned time_timestamp()
Retrives the current time as a UNIX timestamp
- - - - - - - - - - - -
int width
Contains the width of the image
- -
- - - - - - - - -
Close
- - - \ No newline at end of file diff --git a/docs/output/index/Variables.html b/docs/output/index/Variables.html deleted file mode 100644 index 75bcc2b5..00000000 --- a/docs/output/index/Variables.html +++ /dev/null @@ -1,50 +0,0 @@ - - -Variable Index - - - - - - - - - -
Variable 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
D
 data, IMAGE_INFO
F
 format, IMAGE_INFO
H
 height, IMAGE_INFO
P
 pos, Entity
 proximity_radius, Entity
W
 width, IMAGE_INFO
- -
void *data
Pointer to the image data.
- - - -
int format
Contains the format of the image.
- - - -
int height
Contains the height of the image
- - - -
vec2 pos
Contains the current posititon of the entity.
float proximity_radius
Contains the physical size of the entity.
- - - -
int width
Contains the width of the image
- -
- - - - - - - - -
Close
- - - \ No newline at end of file -- cgit 1.4.1