R:/projects/actioncube/_svn/trunk/ac/source/src/protos.h File Reference

This graph shows which files directly or indirectly include this file:


Classes

struct  color
struct  keym
struct  mitem
struct  mdirlist
struct  gmenu
struct  serverinfo
struct  packetqueue
struct  Texture
struct  votedisplayinfo
struct  font
struct  font::charinfo
struct  demoheader
struct  log

Defines

#define VIRTH   1800
#define FONTH   (curfont->defaulth)
#define PIXELTAB   (8*curfont->defaultw)
#define PT_DECAL_MASK   ((1<<PT_DECAL)|(1<<PT_BULLETHOLE)|(1<<PT_STAIN))
#define DHDR_DESCCHARS   80

Enumerations

enum  { CROSSHAIR_DEFAULT = 0, CROSSHAIR_TEAMMATE, CROSSHAIR_SCOPE, CROSSHAIR_NUM }
enum  { NOT_INITING = 0, INIT_LOAD, INIT_RESET }
enum  { CHANGE_GFX = 1<<0, CHANGE_SOUND = 1<<1 }
enum  { HUDMSG_INFO = 0, HUDMSG_TIMER, HUDMSG_TYPE = 0xFF, HUDMSG_OVERWRITE = 1<<8 }
enum  {
  PT_PART = 0, PT_FIREBALL, PT_SHOTLINE, PT_DECAL,
  PT_BULLETHOLE, PT_BLOOD, PT_STAIN, PT_FLASH,
  PT_HUDFLASH
}

Functions

int variable (const char *name, int min, int cur, int max, int *storage, void(*fun)(), bool persist)
float fvariable (const char *name, float min, float cur, float max, float *storage, void(*fun)(), bool persist)
char * svariable (const char *name, const char *cur, char **storage, void(*fun)(), bool persist)
void setvar (const char *name, int i, bool dofunc=false)
void setfvar (const char *name, float f, bool dofunc=false)
void setsvar (const char *name, const char *str, bool dofunc=false)
int getvar (const char *name)
bool identexists (const char *name)
bool addcommand (const char *name, void(*fun)(), int narg)
int execute (const char *p)
char * executeret (const char *p)
void intret (int v)
const char * floatstr (float v)
void floatret (float v)
void result (const char *s)
void exec (const char *cfgfile)
bool execfile (const char *cfgfile)
void resetcomplete ()
void complete (char *s)
void push (const char *name, const char *action)
void pop (const char *name)
void alias (const char *name, const char *action)
const char * getalias (const char *name)
void writecfg ()
void deletecfg ()
void identnames (vector< const char * > &names, bool builtinonly)
void changescriptcontext (int newcontext)
void explodelist (const char *s, vector< char * > &elems)
char * indexlist (const char *s, int pos)
char * parseword (const char *&p)
void pushscontext (int newcontext)
int popscontext ()
int curscontext ()
void keypress (int code, bool isdown, int cooked, SDLMod mod=KMOD_NONE)
int rendercommand (int x, int y, int w)
void renderconsole ()
char * getcurcommand ()
char * addreleaseaction (const char *s)
void writebinds (FILE *f)
void pasteconsole (char *dst)
void conoutf (const char *s,...)
bool bindkey (keym *km, const char *action)
keym * findbinda (const char *action)
bool bindc (int code, const char *action)
void rendermenu ()
bool menuvisible ()
void menureset (void *menu)
void menumanual (void *menu, char *text, char *action=NULL, color *bgcolor=NULL, const char *desc=NULL)
void menutitle (void *menu, const char *title=NULL)
void menuheader (void *menu, char *header=NULL, char *footer=NULL)
bool menukey (int code, bool isdown, int unicode, SDLMod mod=KMOD_NONE)
void * addmenu (const char *name, const char *title=NULL, bool allowinput=true, void(__cdecl *refreshfunc)(void *, bool)=NULL, bool(__cdecl *keyfunc)(void *, int, bool, int)=NULL, bool hotkeys=false, bool forwardkeys=false)
void rendermenumdl ()
void menuset (void *m, bool save=true)
void menuselect (void *menu, int sel)
void showmenu (const char *name, bool top=true)
void closemenu (const char *name)
void addchange (const char *desc, int type)
void clearchanges (int type)
void refreshapplymenu (void *menu, bool init)
void addserver (const char *servername, const char *serverport)
char * getservername (int n)
bool resolverwait (const char *name, ENetAddress *address)
int connectwithtimeout (ENetSocket sock, const char *hostname, ENetAddress &remoteaddress)
void writeservercfg ()
void refreshservers (void *menu, bool init)
bool serverskey (void *menu, int code, bool isdown, int unicode)
serverinfo * getconnectedserverinfo ()
void pingservers ()
void updatefrommaster (int force)
void resetcamera ()
void gl_checkextensions ()
void gl_init (int w, int h, int bpp, int depth, int fsaa)
void cleangl ()
void enablepolygonoffset (GLenum type)
void disablepolygonoffset (GLenum type, bool restore=true)
void line (int x1, int y1, float z1, int x2, int y2, float z2)
void line (int x1, int y1, int x2, int y2, color *c=NULL)
void box (block &b, float z1, float z2, float z3, float z4)
void dot (int x, int y, float z)
void linestyle (float width, int r, int g, int b)
void blendbox (int x1, int y1, int x2, int y2, bool border, int tex=-1, color *c=NULL)
void quad (GLuint tex, float x, float y, float s, float tx, float ty, float tsx, float tsy=0)
void quad (GLuint tex, vec &c1, vec &c2, float tx, float ty, float tsx, float tsy)
void circle (GLuint tex, float x, float y, float r, float tx, float ty, float tr, int subdiv=32)
void setperspective (float fovy, float aspect, float nearplane, float farplane)
void sethudgunperspective (bool on)
void gl_drawframe (int w, int h, float changelod, float curfps)
void clearminimap ()
void rendercursor (int x, int y, int w)
void renderaboveheadicon (playerent *p)
void drawscope ()
float dynfov ()
void damageblend (int n)
void drawcrosshair (playerent *p, int n, struct color *c=NULL, float size=-1.0f)
bool addshadowbox (const vec &bbmin, const vec &bbmax, const vec &extrude, const glmatrixf &mat)
void drawstencilshadows ()
void scaletexture (uchar *src, uint sw, uint sh, uint bpp, uchar *dst, uint dw, uint dh)
void createtexture (int tnum, int w, int h, void *pixels, int clamp, bool mipmap, GLenum format)
Texture * textureload (const char *name, int clamp=0)
Texture * lookuptexture (int tex, Texture *failtex=notexture)
bool reloadtexture (Texture &t)
bool reloadtexture (const char *name)
void reloadtextures ()
static Texture * lookupworldtexture (int tex)
void draw_envbox (int fogdist)
void inittmus ()
void resettmu (int n)
void scaletmu (int n, int rgbscale, int alphascale=0)
void colortmu (int n, float r=0, float g=0, float b=0, float a=0)
void setuptmu (int n, const char *rgbfunc=NULL, const char *alphafunc=NULL)
void mipstats (int a, int b, int c)
void render_flat (int tex, int x, int y, int size, int h, sqr *l1, sqr *l2, sqr *l3, sqr *l4, bool isceil)
void render_flatdelta (int wtex, int x, int y, int size, float h1, float h2, float h3, float h4, sqr *l1, sqr *l2, sqr *l3, sqr *l4, bool isceil)
void render_square (int wtex, float floor1, float floor2, float ceil1, float ceil2, int x1, int y1, int x2, int y2, int size, sqr *l1, sqr *l2, bool topleft)
void render_tris (int x, int y, int size, bool topleft, sqr *h1, sqr *h2, sqr *s, sqr *t, sqr *u, sqr *v)
void resetcubes ()
void setupstrips ()
void renderstripssky ()
void renderstrips ()
void rendershadow (int x, int y, int xs, int ys, const vec &texgenS, const vec &texgenT)
void setwatercolor (const char *r="", const char *g="", const char *b="", const char *a="")
void calcwaterscissor ()
void addwaterquad (int x, int y, int size)
int renderwater (float hf, GLuint reflecttex, GLuint refracttex)
void resetwater ()
void abortconnect ()
void disconnect (int onlyclean=0, int async=0)
void cleanupclient ()
void toserver (char *text)
void addmsg (int type, const char *fmt=NULL,...)
bool multiplayer (bool msg=true)
bool allowedittoggle ()
void sendpackettoserv (int chan, ENetPacket *packet)
void gets2c ()
void c2sinfo (playerent *d)
void c2skeepalive ()
void neterr (const char *s)
int getclientnum ()
void changemapserv (char *name, int mode, bool download=false)
void changeteam (int team, bool respawn=true)
void getmap ()
void newteam (char *name)
bool securemapcheck (char *map, bool msg=true)
void sendintro ()
void getdemo (int i)
void listdemos ()
void updateworld (int curtime, int lastmillis)
void resetmap ()
void startmap (const char *name, bool reset=true)
void changemap (const char *name)
void initclient ()
void deathstate (playerent *pl)
void spawnplayer (playerent *d)
void dodamage (int damage, playerent *pl, playerent *actor, bool gib=false, bool local=true)
void dokill (playerent *pl, playerent *act, bool gib=false)
playerent * newplayerent ()
botent * newbotent ()
void freebotent (botent *d)
char * getclientmap ()
void zapplayer (playerent *&d)
playerent * getclient (int cn)
playerent * newclient (int cn)
void timeupdate (int timeremain)
void respawnself ()
void setskin (playerent *pl, uint skin)
void callvote (int type, char *arg1=NULL, char *arg2=NULL)
void addsleep (int msec, const char *cmd)
void resetsleep ()
void flagpickup (int fln)
void tryflagdrop (bool manual=false)
void flagreturn (int fln)
void flagscore (int fln)
void flagstolen (int flag, int act)
void flagdropped (int flag, float x, float y, float z)
void flaginbase (int flag)
void flagidle (int flag)
void flagmsg (int flag, int message, int actor, int flagtime)
void arenarespawn ()
bool tryrespawn ()
void findplayerstart (playerent *d, bool mapcenter=false, int arenaspawn=-1)
void serveropcommand (int cmd, int arg1)
void refreshsopmenu (void *menu, bool init)
char * colorname (playerent *d, int num=0, char *name=NULL, const char *prefix="")
char * colorping (int ping)
void togglespect ()
playerent * updatefollowplayer (int shiftdirection=0)
void spectate (int mode)
votedisplayinfo * newvotedisplayinfo (playerent *owner, int type, char *arg1, char *arg2)
void callvotesuc ()
void callvoteerr (int e)
void displayvote (votedisplayinfo *v)
void voteresult (int v)
void votecount (int v)
void clearvote ()
void showscores (int on)
void renderscores (void *menu, bool init)
const char * asciiscores (bool destjpg=false)
void consolescores ()
void setupworld (int factor)
bool empty_world (int factor, bool force)
void remip (const block &b, int level=0)
void remipmore (const block &b, int level=0)
int closestent ()
int findentity (int type, int index=0)
int findentity (int type, int index, uchar attr2)
entity * newentity (int index, int x, int y, int z, char *what, int v1, int v2, int v3, int v4)
void fullbrightlight (int level=-1)
void calclight ()
void adddynlight (physent *owner, const vec &o, int reach, int expire, int fade, uchar r, uchar g=0, uchar b=0)
void dodynlights ()
void undodynlights ()
void cleardynlights ()
void removedynlights (physent *owner)
block * blockcopy (const block &b)
void blockpaste (const block &b)
void freeblock (block *&b)
void render_world (float vx, float vy, float vh, float changelod, int yaw, int pitch, float fov, float fovy, int w, int h)
int lod_factor ()
void computeraytable (float vx, float vy, float fov)
int isoccluded (float vx, float vy, float cx, float cy, float csize)
struct tm * systemtime ()
void keyrepeat (bool on)
bool initwarning (const char *desc, int level=INIT_RESET, int type=CHANGE_GFX)
bool setfont (const char *name)
void pushfont (const char *name)
void popfont ()
void draw_text (const char *str, int left, int top, int r=255, int g=255, int b=255, int a=255, int cursor=-1, int maxwidth=-1)
void draw_textf (const char *fstr, int left, int top,...)
int text_width (const char *str)
int text_visible (const char *str, int max)
void text_bounds (const char *str, int &width, int &height, int maxwidth=-1)
int text_visible (const char *str, int hitx, int hity, int maxwidth)
void text_pos (const char *str, int cursor, int &cx, int &cy, int maxwidth)
void text_startcolumns ()
void text_endcolumns ()
void cursorupdate ()
void toggleedit (bool force=false)
char * editinfo ()
void editdrag (bool isdown)
void setvdeltaxy (int delta, block &sel)
void editequalisexy (bool isfloor, block &sel)
void edittypexy (int type, block &sel)
void edittexxy (int type, int t, block &sel)
void editheightxy (bool isfloor, int amount, block &sel)
bool noteditmode ()
void pruneundos (int maxremain=0)
void gl_drawhud (int w, int h, int curfps, int nquads, int curvert, bool underwater)
void loadingscreen (const char *fmt=NULL,...)
void hudoutf (const char *s,...)
void hudonlyf (const char *s,...)
void hudeditf (int type, const char *s,...)
void show_out_of_renderloop_progress (float bar1, const char *text1, float bar2=0, const char *text2=NULL)
void updatedmgindicator (vec &attack)
vec getradarpos ()
void particleinit ()
void particlereset ()
void particle_flash (int type, float scale, float angle, const vec &p)
void particle_splash (int type, int num, int fade, const vec &p)
void particle_trail (int type, int fade, const vec &from, const vec &to)
void particle_emit (int type, int *args, int basetime, int seed, const vec &p)
void particle_fireball (int type, const vec &o)
void addshotline (dynent *d, const vec &from, const vec &to)
bool addbullethole (dynent *d, const vec &from, const vec &to, float radius=1, bool noisy=true)
bool addscorchmark (vec &o, float radius=7)
void render_particles (int time, int typemask=~0)
void save_world (char *fname)
bool load_world (char *mname)
void writemap (char *name, int size, uchar *data)
void writecfggz (char *name, int size, int sizegz, uchar *data)
uchar * readmap (char *name, int *size)
uchar * readmcfggz (char *name, int *size, int *sizegz)
float raycube (const vec &o, const vec &ray, vec &surface)
bool raycubelos (const vec &from, const vec &to, float margin=0)
void moveplayer (physent *pl, int moveres, bool local)
void moveplayer (physent *pl, int moveres, bool local, int curtime)
void movebounceent (bounceent *p, int moveres, bool local)
void entinmap (physent *d)
void physicsframe ()
void mousemove (int dx, int dy)
void fixcamerarange (physent *cam=camera1)
void updatecrouch (playerent *p, bool on)
bool objcollide (physent *d, const vec &objpos, float objrad, float objheight)
bool collide (physent *d, bool spawn=false, float drop=0, float rise=0)
void rendermodel (const char *mdl, int anim, int tex, float rad, const vec &o, float yaw, float pitch, float speed=0, int basetime=0, playerent *d=NULL, modelattach *a=NULL, float scale=1.0f)
void startmodelbatches ()
void endmodelbatches (bool flush=true)
void clearmodelbatches ()
mapmodelinfo & getmminfo (int i)
int findanim (const char *name)
void loadskin (const char *dir, const char *altdir, Texture *&skin)
model * loadmodel (const char *name, int i=-1)
void preload_playermodels ()
void preload_entmodels ()
void preload_hudguns ()
void preload_mapmodels ()
void renderclients ()
void renderclient (playerent *d)
void renderclient (playerent *d, const char *mdlname, const char *vwepname, int tex=0)
void updateclientname (playerent *d)
void shoot (playerent *d, vec &to)
void createrays (vec &from, vec &to)
void removebounceents (playerent *owner)
void movebounceents ()
void clearbounceents ()
void renderbounceents ()
void addgib (playerent *d)
playerent * playerincrosshair ()
int magsize (int gun)
void checkweaponswitch ()
void setscope (bool activate)
int intersect (playerent *d, const vec &from, const vec &to, vec *end=NULL)
bool intersect (entity *e, const vec &from, const vec &to, vec *end=NULL)
void damageeffect (int damage, playerent *d)
void tryreload (playerent *p)
void checkakimbo ()
struct projectile * newprojectile (vec &from, vec &to, float speed, bool local, playerent *owner, int gun, int id=lastmillis)
void putitems (ucharbuf &p)
void pickupeffects (int n, playerent *d)
void renderentities ()
void resetspawns ()
void setspawn (int i, bool on)
void checkitems (playerent *d)
void perlinarea (block &b, int scale, int seed, int psize)
void renderdoc (int x, int y, int doch)
void renderdocmenu (void *menu, bool init)
void toggledoc ()
void scrolldoc (int i)
int stringsort (const char **a, const char **b)
void servertoclient (int chan, uchar *buf, int len)
void localservertoclient (int chan, uchar *buf, int len)
const char * modestr (int n, bool acronyms=false)
const char * voteerrorstr (int n)
const char * mmfullname (int n)
void fatal (const char *s,...)
void initserver (bool dedicated, int uprate, const char *sdesc, const char *sdesc_pre, const char *sdesc_suf, const char *ip, int serverport, const char *master, const char *passwd, int maxcl, const char *maprot, const char *adminpwd, const char *pwdfile, const char *blfile, const char *srvmsg, int kthreshold, int bthreshold, int permdemo, const char *voteperms, const char *demop)
void cleanupserver ()
void localconnect ()
void localdisconnect ()
void localclienttoserver (int chan, ENetPacket *)
void serverslice (uint timeout)
void putint (ucharbuf &p, int n)
int getint (ucharbuf &p)
void putuint (ucharbuf &p, int n)
int getuint (ucharbuf &p)
void sendstring (const char *t, ucharbuf &p)
void getstring (char *t, ucharbuf &p, int len=MAXTRANS)
void filtertext (char *dst, const char *src, int whitespace=1, int len=sizeof(string)-1)
void filterrichtext (char *dst, char const *src, int len=sizeof(string)-1)
void startintermission ()
void restoreserverstate (vector< entity > &ents)
uchar * retrieveservers (uchar *buf, int buflen)
void serverms (int mode, int numplayers, int minremain, char *smapname, int millis, const ENetAddress &localaddr, int *mnum, int *msend, int *mrec, int *cnum, int *csend, int *crec)
char msgsizelookup (int msg)
const char * genpwdhash (const char *name, const char *pwd, int salt)
void servermsdesc (const char *sdesc)
void servermsinit (const char *master, const char *ip, int serverport, const char *sdesc, bool listen)
bool serverpickup (int i, int sender)
bool valid_client (int cn)
void extinfo_cnbuf (ucharbuf &p, int cn)
void extinfo_statsbuf (ucharbuf &p, int pid, int bpos, ENetSocket &pongsock, ENetAddress &addr, ENetBuffer &buf, int len, int *csend)
void extinfo_teamscorebuf (ucharbuf &p)
char * votestring (int type, char *arg1, char *arg2)
int wizardmain (int argc, char **argv)
char * asctime ()
struct log * newlogger (const char *identity)

Variables

bool hasTE
bool hasMT
bool hasMDA
bool hasDRE
bool hasstencil
bool hasST2
bool hasSTW
bool hasSTS
PFNGLACTIVETEXTUREARBPROC glActiveTexture_
PFNGLCLIENTACTIVETEXTUREARBPROC glClientActiveTexture_
PFNGLMULTITEXCOORD2FARBPROC glMultiTexCoord2f_
PFNGLMULTITEXCOORD3FARBPROC glMultiTexCoord3f_
PFNGLMULTIDRAWARRAYSEXTPROC glMultiDrawArrays_
PFNGLMULTIDRAWELEMENTSEXTPROC glMultiDrawElements_
PFNGLDRAWRANGEELEMENTSEXTPROC glDrawRangeElements_
PFNGLACTIVESTENCILFACEEXTPROC glActiveStencilFace_
PFNGLSTENCILOPSEPARATEATIPROC glStencilOpSeparate_
PFNGLSTENCILFUNCSEPARATEATIPROC glStencilFuncSeparate_
bool persistidents
int execcontext
glmatrixf mvmatrix
glmatrixf projmatrix
glmatrixf clipmatrix
glmatrixf mvpmatrix
glmatrixf invmvmatrix
glmatrixf invmvpmatrix
Texture * notexture
Texture * noworldtexture
float skyfloor
int maxtmus
flaginfo flaginfos [2]
int sessionid
bool watchingdemo
bool autoteambalance
int lastcalclight
SDL_Surface * screen
int colorbits
int depthbits
int stencilbits
time_t now_utc
bool firstrun
int VIRTW
font * curfont
const char * entnames []
int modeacronyms

Define Documentation

#define DHDR_DESCCHARS   80

#define FONTH   (curfont->defaulth)

#define PIXELTAB   (8*curfont->defaultw)

#define PT_DECAL_MASK   ((1<<PT_DECAL)|(1<<PT_BULLETHOLE)|(1<<PT_STAIN))

#define VIRTH   1800


Enumeration Type Documentation

anonymous enum

Enumerator:
CROSSHAIR_DEFAULT 
CROSSHAIR_TEAMMATE 
CROSSHAIR_SCOPE 
CROSSHAIR_NUM 

anonymous enum

Enumerator:
NOT_INITING 
INIT_LOAD 
INIT_RESET 

anonymous enum

Enumerator:
CHANGE_GFX 
CHANGE_SOUND 

anonymous enum

Enumerator:
HUDMSG_INFO 
HUDMSG_TIMER 
HUDMSG_TYPE 
HUDMSG_OVERWRITE 

anonymous enum

Enumerator:
PT_PART 
PT_FIREBALL 
PT_SHOTLINE 
PT_DECAL 
PT_BULLETHOLE 
PT_BLOOD 
PT_STAIN 
PT_FLASH 
PT_HUDFLASH 


Function Documentation

void abortconnect (  ) 

bool addbullethole ( dynent *  d,
const vec &  from,
const vec &  to,
float  radius = 1,
bool  noisy = true 
)

void addchange ( const char *  desc,
int  type 
)

bool addcommand ( const char *  name,
void(*)()  fun,
int  narg 
)

void adddynlight ( physent *  owner,
const vec &  o,
int  reach,
int  expire,
int  fade,
uchar  r,
uchar  g = 0,
uchar  b = 0 
)

void addgib ( playerent *  d  ) 

void* addmenu ( const char *  name,
const char *  title = NULL,
bool  allowinput = true,
void(__cdecl *refreshfunc)(void *, bool)  = NULL,
bool(__cdecl *keyfunc)(void *, int, bool, int)  = NULL,
bool  hotkeys = false,
bool  forwardkeys = false 
)

void addmsg ( int  type,
const char *  fmt = NULL,
  ... 
)

char* addreleaseaction ( const char *  s  ) 

bool addscorchmark ( vec &  o,
float  radius = 7 
)

void addserver ( const char *  servername,
const char *  serverport 
)

bool addshadowbox ( const vec &  bbmin,
const vec &  bbmax,
const vec &  extrude,
const glmatrixf &  mat 
)

void addshotline ( dynent *  d,
const vec &  from,
const vec &  to 
)

void addsleep ( int  msec,
const char *  cmd 
)

void addwaterquad ( int  x,
int  y,
int  size 
)

void alias ( const char *  name,
const char *  action 
)

bool allowedittoggle (  ) 

void arenarespawn (  ) 

const char* asciiscores ( bool  destjpg = false  ) 

char* asctime (  ) 

bool bindc ( int  code,
const char *  action 
)

bool bindkey ( keym *  km,
const char *  action 
)

void blendbox ( int  x1,
int  y1,
int  x2,
int  y2,
bool  border,
int  tex = -1,
color *  c = NULL 
)

block* blockcopy ( const block &  b  ) 

void blockpaste ( const block &  b  ) 

void box ( block &  b,
float  z1,
float  z2,
float  z3,
float  z4 
)

void c2sinfo ( playerent *  d  ) 

void c2skeepalive (  ) 

void calclight (  ) 

void calcwaterscissor (  ) 

void callvote ( int  type,
char *  arg1 = NULL,
char *  arg2 = NULL 
)

void callvoteerr ( int  e  ) 

void callvotesuc (  ) 

void changemap ( const char *  name  ) 

void changemapserv ( char *  name,
int  mode,
bool  download = false 
)

void changescriptcontext ( int  newcontext  ) 

void changeteam ( int  team,
bool  respawn = true 
)

void checkakimbo (  ) 

void checkitems ( playerent *  d  ) 

void checkweaponswitch (  ) 

void circle ( GLuint  tex,
float  x,
float  y,
float  r,
float  tx,
float  ty,
float  tr,
int  subdiv = 32 
)

void cleangl (  ) 

void cleanupclient (  ) 

void cleanupserver (  ) 

void clearbounceents (  ) 

void clearchanges ( int  type  ) 

void cleardynlights (  ) 

void clearminimap (  ) 

void clearmodelbatches (  ) 

void clearvote (  ) 

void closemenu ( const char *  name  ) 

int closestent (  ) 

bool collide ( physent *  d,
bool  spawn = false,
float  drop = 0,
float  rise = 0 
)

char* colorname ( playerent *  d,
int  num = 0,
char *  name = NULL,
const char *  prefix = "" 
)

char* colorping ( int  ping  ) 

void colortmu ( int  n,
float  r = 0,
float  g = 0,
float  b = 0,
float  a = 0 
)

void complete ( char *  s  ) 

void computeraytable ( float  vx,
float  vy,
float  fov 
)

int connectwithtimeout ( ENetSocket  sock,
const char *  hostname,
ENetAddress &  remoteaddress 
)

void conoutf ( const char *  s,
  ... 
)

void consolescores (  ) 

void createrays ( vec &  from,
vec &  to 
)

void createtexture ( int  tnum,
int  w,
int  h,
void *  pixels,
int  clamp,
bool  mipmap,
GLenum  format 
)

int curscontext (  ) 

void cursorupdate (  ) 

void damageblend ( int  n  ) 

void damageeffect ( int  damage,
playerent *  d 
)

void deathstate ( playerent *  pl  ) 

void deletecfg (  ) 

void disablepolygonoffset ( GLenum  type,
bool  restore = true 
)

void disconnect ( int  onlyclean = 0,
int  async = 0 
)

void displayvote ( votedisplayinfo *  v  ) 

void dodamage ( int  damage,
playerent *  pl,
playerent *  actor,
bool  gib = false,
bool  local = true 
)

void dodynlights (  ) 

void dokill ( playerent *  pl,
playerent *  act,
bool  gib = false 
)

void dot ( int  x,
int  y,
float  z 
)

void draw_envbox ( int  fogdist  ) 

void draw_text ( const char *  str,
int  left,
int  top,
int  r = 255,
int  g = 255,
int  b = 255,
int  a = 255,
int  cursor = -1,
int  maxwidth = -1 
)

void draw_textf ( const char *  fstr,
int  left,
int  top,
  ... 
)

void drawcrosshair ( playerent *  p,
int  n,
struct color *  c = NULL,
float  size = -1.0f 
)

void drawscope (  ) 

void drawstencilshadows (  ) 

float dynfov (  ) 

void editdrag ( bool  isdown  ) 

void editequalisexy ( bool  isfloor,
block &  sel 
)

void editheightxy ( bool  isfloor,
int  amount,
block &  sel 
)

char* editinfo (  ) 

void edittexxy ( int  type,
int  t,
block &  sel 
)

void edittypexy ( int  type,
block &  sel 
)

bool empty_world ( int  factor,
bool  force 
)

void enablepolygonoffset ( GLenum  type  ) 

void endmodelbatches ( bool  flush = true  ) 

void entinmap ( physent *  d  ) 

void exec ( const char *  cfgfile  ) 

bool execfile ( const char *  cfgfile  ) 

int execute ( const char *  p  ) 

char* executeret ( const char *  p  ) 

void explodelist ( const char *  s,
vector< char * > &  elems 
)

void extinfo_cnbuf ( ucharbuf &  p,
int  cn 
)

void extinfo_statsbuf ( ucharbuf &  p,
int  pid,
int  bpos,
ENetSocket &  pongsock,
ENetAddress &  addr,
ENetBuffer &  buf,
int  len,
int *  csend 
)

void extinfo_teamscorebuf ( ucharbuf &  p  ) 

void fatal ( const char *  s,
  ... 
)

void filterrichtext ( char *  dst,
char const *  src,
int  len = sizeof(string)-1 
)

void filtertext ( char *  dst,
const char *  src,
int  whitespace = 1,
int  len = sizeof(string)-1 
)

int findanim ( const char *  name  ) 

keym* findbinda ( const char *  action  ) 

int findentity ( int  type,
int  index,
uchar  attr2 
)

int findentity ( int  type,
int  index = 0 
)

void findplayerstart ( playerent *  d,
bool  mapcenter = false,
int  arenaspawn = -1 
)

void fixcamerarange ( physent *  cam = camera1  ) 

void flagdropped ( int  flag,
float  x,
float  y,
float  z 
)

void flagidle ( int  flag  ) 

void flaginbase ( int  flag  ) 

void flagmsg ( int  flag,
int  message,
int  actor,
int  flagtime 
)

void flagpickup ( int  fln  ) 

void flagreturn ( int  fln  ) 

void flagscore ( int  fln  ) 

void flagstolen ( int  flag,
int  act 
)

void floatret ( float  v  ) 

const char* floatstr ( float  v  ) 

void freeblock ( block *&  b  ) 

void freebotent ( botent *  d  ) 

void fullbrightlight ( int  level = -1  ) 

float fvariable ( const char *  name,
float  min,
float  cur,
float  max,
float *  storage,
void(*)()  fun,
bool  persist 
)

const char* genpwdhash ( const char *  name,
const char *  pwd,
int  salt 
)

const char* getalias ( const char *  name  ) 

playerent* getclient ( int  cn  ) 

char* getclientmap (  ) 

int getclientnum (  ) 

serverinfo* getconnectedserverinfo (  ) 

char* getcurcommand (  ) 

void getdemo ( int  i  ) 

int getint ( ucharbuf &  p  ) 

void getmap (  ) 

mapmodelinfo& getmminfo ( int  i  ) 

vec getradarpos (  ) 

void gets2c (  ) 

char* getservername ( int  n  ) 

void getstring ( char *  t,
ucharbuf &  p,
int  len = MAXTRANS 
)

int getuint ( ucharbuf &  p  ) 

int getvar ( const char *  name  ) 

void gl_checkextensions (  ) 

void gl_drawframe ( int  w,
int  h,
float  changelod,
float  curfps 
)

void gl_drawhud ( int  w,
int  h,
int  curfps,
int  nquads,
int  curvert,
bool  underwater 
)

menu &&

void gl_init ( int  w,
int  h,
int  bpp,
int  depth,
int  fsaa 
)

void hudeditf ( int  type,
const char *  s,
  ... 
)

void hudonlyf ( const char *  s,
  ... 
)

void hudoutf ( const char *  s,
  ... 
)

bool identexists ( const char *  name  ) 

void identnames ( vector< const char * > &  names,
bool  builtinonly 
)

char* indexlist ( const char *  s,
int  pos 
)

void initclient (  ) 

void initserver ( bool  dedicated,
int  uprate,
const char *  sdesc,
const char *  sdesc_pre,
const char *  sdesc_suf,
const char *  ip,
int  serverport,
const char *  master,
const char *  passwd,
int  maxcl,
const char *  maprot,
const char *  adminpwd,
const char *  pwdfile,
const char *  blfile,
const char *  srvmsg,
int  kthreshold,
int  bthreshold,
int  permdemo,
const char *  voteperms,
const char *  demop 
)

void inittmus (  ) 

bool initwarning ( const char *  desc,
int  level = INIT_RESET,
int  type = CHANGE_GFX 
)

bool intersect ( entity *  e,
const vec &  from,
const vec &  to,
vec *  end = NULL 
)

int intersect ( playerent *  d,
const vec &  from,
const vec &  to,
vec *  end = NULL 
)

void intret ( int  v  ) 

int isoccluded ( float  vx,
float  vy,
float  cx,
float  cy,
float  csize 
)

void keypress ( int  code,
bool  isdown,
int  cooked,
SDLMod  mod = KMOD_NONE 
)

void keyrepeat ( bool  on  ) 

void line ( int  x1,
int  y1,
int  x2,
int  y2,
color *  c = NULL 
)

void line ( int  x1,
int  y1,
float  z1,
int  x2,
int  y2,
float  z2 
)

void linestyle ( float  width,
int  r,
int  g,
int  b 
)

void listdemos (  ) 

bool load_world ( char *  mname  ) 

void loadingscreen ( const char *  fmt = NULL,
  ... 
)

model* loadmodel ( const char *  name,
int  i = -1 
)

void loadskin ( const char *  dir,
const char *  altdir,
Texture *&  skin 
)

void localclienttoserver ( int  chan,
ENetPacket *   
)

void localconnect (  ) 

void localdisconnect (  ) 

void localservertoclient ( int  chan,
uchar *  buf,
int  len 
)

int lod_factor (  ) 

Texture* lookuptexture ( int  tex,
Texture *  failtex = notexture 
)

static Texture* lookupworldtexture ( int  tex  )  [inline, static]

int magsize ( int  gun  ) 

void menuheader ( void *  menu,
char *  header = NULL,
char *  footer = NULL 
)

bool menukey ( int  code,
bool  isdown,
int  unicode,
SDLMod  mod = KMOD_NONE 
)

void menumanual ( void *  menu,
char *  text,
char *  action = NULL,
color *  bgcolor = NULL,
const char *  desc = NULL 
)

void menureset ( void *  menu  ) 

void menuselect ( void *  menu,
int  sel 
)

void menuset ( void *  m,
bool  save = true 
)

void menutitle ( void *  menu,
const char *  title = NULL 
)

bool menuvisible (  ) 

void mipstats ( int  a,
int  b,
int  c 
)

const char* mmfullname ( int  n  ) 

const char* modestr ( int  n,
bool  acronyms = false 
)

void mousemove ( int  dx,
int  dy 
)

void movebounceent ( bounceent *  p,
int  moveres,
bool  local 
)

void movebounceents (  ) 

void moveplayer ( physent *  pl,
int  moveres,
bool  local,
int  curtime 
)

void moveplayer ( physent *  pl,
int  moveres,
bool  local 
)

char msgsizelookup ( int  msg  ) 

bool multiplayer ( bool  msg = true  ) 

void neterr ( const char *  s  ) 

botent* newbotent (  ) 

playerent* newclient ( int  cn  ) 

entity* newentity ( int  index,
int  x,
int  y,
int  z,
char *  what,
int  v1,
int  v2,
int  v3,
int  v4 
)

struct log* newlogger ( const char *  identity  )  [read]

playerent* newplayerent (  ) 

struct projectile* newprojectile ( vec &  from,
vec &  to,
float  speed,
bool  local,
playerent *  owner,
int  gun,
int  id = lastmillis 
) [read]

void newteam ( char *  name  ) 

votedisplayinfo* newvotedisplayinfo ( playerent *  owner,
int  type,
char *  arg1,
char *  arg2 
)

bool noteditmode (  ) 

bool objcollide ( physent *  d,
const vec &  objpos,
float  objrad,
float  objheight 
)

char* parseword ( const char *&  p  ) 

void particle_emit ( int  type,
int *  args,
int  basetime,
int  seed,
const vec &  p 
)

void particle_fireball ( int  type,
const vec &  o 
)

void particle_flash ( int  type,
float  scale,
float  angle,
const vec &  p 
)

void particle_splash ( int  type,
int  num,
int  fade,
const vec &  p 
)

void particle_trail ( int  type,
int  fade,
const vec &  from,
const vec &  to 
)

void particleinit (  ) 

void particlereset (  ) 

void pasteconsole ( char *  dst  ) 

void perlinarea ( block &  b,
int  scale,
int  seed,
int  psize 
)

void physicsframe (  ) 

void pickupeffects ( int  n,
playerent *  d 
)

void pingservers (  ) 

playerent* playerincrosshair (  ) 

void pop ( const char *  name  ) 

void popfont (  ) 

int popscontext (  ) 

void preload_entmodels (  ) 

void preload_hudguns (  ) 

void preload_mapmodels (  ) 

void preload_playermodels (  ) 

void pruneundos ( int  maxremain = 0  ) 

void push ( const char *  name,
const char *  action 
)

void pushfont ( const char *  name  ) 

void pushscontext ( int  newcontext  ) 

void putint ( ucharbuf &  p,
int  n 
)

void putitems ( ucharbuf &  p  ) 

void putuint ( ucharbuf &  p,
int  n 
)

void quad ( GLuint  tex,
vec &  c1,
vec &  c2,
float  tx,
float  ty,
float  tsx,
float  tsy 
)

void quad ( GLuint  tex,
float  x,
float  y,
float  s,
float  tx,
float  ty,
float  tsx,
float  tsy = 0 
)

float raycube ( const vec &  o,
const vec &  ray,
vec &  surface 
)

bool raycubelos ( const vec &  from,
const vec &  to,
float  margin = 0 
)

uchar* readmap ( char *  name,
int *  size 
)

uchar* readmcfggz ( char *  name,
int *  size,
int *  sizegz 
)

void refreshapplymenu ( void *  menu,
bool  init 
)

void refreshservers ( void *  menu,
bool  init 
)

void refreshsopmenu ( void *  menu,
bool  init 
)

bool reloadtexture ( const char *  name  ) 

bool reloadtexture ( Texture &  t  ) 

void reloadtextures (  ) 

void remip ( const block &  b,
int  level = 0 
)

void remipmore ( const block &  b,
int  level = 0 
)

void removebounceents ( playerent *  owner  ) 

void removedynlights ( physent *  owner  ) 

void render_flat ( int  tex,
int  x,
int  y,
int  size,
int  h,
sqr *  l1,
sqr *  l2,
sqr *  l3,
sqr *  l4,
bool  isceil 
)

void render_flatdelta ( int  wtex,
int  x,
int  y,
int  size,
float  h1,
float  h2,
float  h3,
float  h4,
sqr *  l1,
sqr *  l2,
sqr *  l3,
sqr *  l4,
bool  isceil 
)

void render_particles ( int  time,
int  typemask = ~0 
)

void render_square ( int  wtex,
float  floor1,
float  floor2,
float  ceil1,
float  ceil2,
int  x1,
int  y1,
int  x2,
int  y2,
int  size,
sqr *  l1,
sqr *  l2,
bool  topleft 
)

void render_tris ( int  x,
int  y,
int  size,
bool  topleft,
sqr *  h1,
sqr *  h2,
sqr *  s,
sqr *  t,
sqr *  u,
sqr *  v 
)

void render_world ( float  vx,
float  vy,
float  vh,
float  changelod,
int  yaw,
int  pitch,
float  fov,
float  fovy,
int  w,
int  h 
)

void renderaboveheadicon ( playerent *  p  ) 

void renderbounceents (  ) 

void renderclient ( playerent *  d,
const char *  mdlname,
const char *  vwepname,
int  tex = 0 
)

void renderclient ( playerent *  d  ) 

void renderclients (  ) 

int rendercommand ( int  x,
int  y,
int  w 
)

void renderconsole (  ) 

void rendercursor ( int  x,
int  y,
int  w 
)

void renderdoc ( int  x,
int  y,
int  doch 
)

void renderdocmenu ( void *  menu,
bool  init 
)

void renderentities (  ) 

void rendermenu (  ) 

void rendermenumdl (  ) 

void rendermodel ( const char *  mdl,
int  anim,
int  tex,
float  rad,
const vec &  o,
float  yaw,
float  pitch,
float  speed = 0,
int  basetime = 0,
playerent *  d = NULL,
modelattach *  a = NULL,
float  scale = 1.0f 
)

void renderscores ( void *  menu,
bool  init 
)

void rendershadow ( int  x,
int  y,
int  xs,
int  ys,
const vec &  texgenS,
const vec &  texgenT 
)

void renderstrips (  ) 

void renderstripssky (  ) 

int renderwater ( float  hf,
GLuint  reflecttex,
GLuint  refracttex 
)

void resetcamera (  ) 

void resetcomplete (  ) 

void resetcubes (  ) 

void resetmap (  ) 

void resetsleep (  ) 

void resetspawns (  ) 

void resettmu ( int  n  ) 

void resetwater (  ) 

bool resolverwait ( const char *  name,
ENetAddress *  address 
)

void respawnself (  ) 

void restoreserverstate ( vector< entity > &  ents  ) 

void result ( const char *  s  ) 

uchar* retrieveservers ( uchar *  buf,
int  buflen 
)

void save_world ( char *  fname  ) 

void scaletexture ( uchar *  src,
uint  sw,
uint  sh,
uint  bpp,
uchar *  dst,
uint  dw,
uint  dh 
)

void scaletmu ( int  n,
int  rgbscale,
int  alphascale = 0 
)

void scrolldoc ( int  i  ) 

bool securemapcheck ( char *  map,
bool  msg = true 
)

void sendintro (  ) 

void sendpackettoserv ( int  chan,
ENetPacket *  packet 
)

void sendstring ( const char *  t,
ucharbuf &  p 
)

void serverms ( int  mode,
int  numplayers,
int  minremain,
char *  smapname,
int  millis,
const ENetAddress &  localaddr,
int *  mnum,
int *  msend,
int *  mrec,
int *  cnum,
int *  csend,
int *  crec 
)

void servermsdesc ( const char *  sdesc  ) 

void servermsinit ( const char *  master,
const char *  ip,
int  serverport,
const char *  sdesc,
bool  listen 
)

void serveropcommand ( int  cmd,
int  arg1 
)

bool serverpickup ( int  i,
int  sender 
)

bool serverskey ( void *  menu,
int  code,
bool  isdown,
int  unicode 
)

void serverslice ( uint  timeout  ) 

void servertoclient ( int  chan,
uchar *  buf,
int  len 
)

bool setfont ( const char *  name  ) 

void setfvar ( const char *  name,
float  f,
bool  dofunc = false 
)

void sethudgunperspective ( bool  on  ) 

void setperspective ( float  fovy,
float  aspect,
float  nearplane,
float  farplane 
)

void setscope ( bool  activate  ) 

void setskin ( playerent *  pl,
uint  skin 
)

void setspawn ( int  i,
bool  on 
)

void setsvar ( const char *  name,
const char *  str,
bool  dofunc = false 
)

void setupstrips (  ) 

void setuptmu ( int  n,
const char *  rgbfunc = NULL,
const char *  alphafunc = NULL 
)

void setupworld ( int  factor  ) 

void setvar ( const char *  name,
int  i,
bool  dofunc = false 
)

void setvdeltaxy ( int  delta,
block &  sel 
)

void setwatercolor ( const char *  r = "",
const char *  g = "",
const char *  b = "",
const char *  a = "" 
)

void shoot ( playerent *  d,
vec &  to 
)

void show_out_of_renderloop_progress ( float  bar1,
const char *  text1,
float  bar2 = 0,
const char *  text2 = NULL 
)

void showmenu ( const char *  name,
bool  top = true 
)

void showscores ( int  on  ) 

void spawnplayer ( playerent *  d  ) 

void spectate ( int  mode  ) 

void startintermission (  ) 

void startmap ( const char *  name,
bool  reset = true 
)

void startmodelbatches (  ) 

int stringsort ( const char **  a,
const char **  b 
)

char* svariable ( const char *  name,
const char *  cur,
char **  storage,
void(*)()  fun,
bool  persist 
)

struct tm* systemtime (  )  [read]

void text_bounds ( const char *  str,
int &  width,
int &  height,
int  maxwidth = -1 
)

void text_endcolumns (  ) 

void text_pos ( const char *  str,
int  cursor,
int &  cx,
int &  cy,
int  maxwidth 
)

void text_startcolumns (  ) 

int text_visible ( const char *  str,
int  hitx,
int  hity,
int  maxwidth 
)

int text_visible ( const char *  str,
int  max 
)

int text_width ( const char *  str  ) 

Texture* textureload ( const char *  name,
int  clamp = 0 
)

void timeupdate ( int  timeremain  ) 

void toggledoc (  ) 

void toggleedit ( bool  force = false  ) 

void togglespect (  ) 

void toserver ( char *  text  ) 

void tryflagdrop ( bool  manual = false  ) 

void tryreload ( playerent *  p  ) 

bool tryrespawn (  ) 

void undodynlights (  ) 

void updateclientname ( playerent *  d  ) 

void updatecrouch ( playerent *  p,
bool  on 
)

void updatedmgindicator ( vec &  attack  ) 

playerent* updatefollowplayer ( int  shiftdirection = 0  ) 

void updatefrommaster ( int  force  ) 

void updateworld ( int  curtime,
int  lastmillis 
)

bool valid_client ( int  cn  ) 

int variable ( const char *  name,
int  min,
int  cur,
int  max,
int *  storage,
void(*)()  fun,
bool  persist 
)

void votecount ( int  v  ) 

const char* voteerrorstr ( int  n  ) 

void voteresult ( int  v  ) 

char* votestring ( int  type,
char *  arg1,
char *  arg2 
)

int wizardmain ( int  argc,
char **  argv 
)

void writebinds ( FILE *  f  ) 

void writecfg (  ) 

void writecfggz ( char *  name,
int  size,
int  sizegz,
uchar *  data 
)

void writemap ( char *  name,
int  size,
uchar *  data 
)

void writeservercfg (  ) 

void zapplayer ( playerent *&  d  ) 


Variable Documentation

int colorbits

int depthbits

const char* entnames[]

bool firstrun

PFNGLACTIVESTENCILFACEEXTPROC glActiveStencilFace_

PFNGLACTIVETEXTUREARBPROC glActiveTexture_

PFNGLCLIENTACTIVETEXTUREARBPROC glClientActiveTexture_

PFNGLDRAWRANGEELEMENTSEXTPROC glDrawRangeElements_

PFNGLMULTIDRAWARRAYSEXTPROC glMultiDrawArrays_

PFNGLMULTIDRAWELEMENTSEXTPROC glMultiDrawElements_

PFNGLMULTITEXCOORD2FARBPROC glMultiTexCoord2f_

PFNGLMULTITEXCOORD3FARBPROC glMultiTexCoord3f_

PFNGLSTENCILFUNCSEPARATEATIPROC glStencilFuncSeparate_

PFNGLSTENCILOPSEPARATEATIPROC glStencilOpSeparate_

bool hasDRE

bool hasMDA

bool hasMT

bool hasST2

bool hasstencil

bool hasSTS

bool hasSTW

bool hasTE

int maxtmus

time_t now_utc

SDL_Surface* screen

int sessionid

float skyfloor

int VIRTW


Generated on Mon Dec 8 21:41:32 2008 for AssaultCube by  doxygen 1.5.7.1