QuakeForge  0.7.2.210-815cf
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages

Data Structures

struct  edict_s
 

Macros

#define EDICT_NUM(p, n)   (PROG_TO_EDICT (p, (n) * (p)->pr_edict_size))
 
#define EDICT_TO_PROG(p, e)   ((pr_int_t)(intptr_t)((byte *)(e) - PR_edicts (p)))
 
#define NEXT_EDICT(p, e)   ((edict_t *) ((byte *) e + (p)->pr_edict_size))
 
#define NUM_FOR_BAD_EDICT(p, e)   ((e)->entnum)
 
#define NUM_FOR_EDICT(p, e)   NUM_FOR_BAD_EDICT (p, e)
 
#define PR_edicts(p)   ((byte *) *(p)->edicts)
 
#define PROG_TO_EDICT(p, e)   ((edict_t *) (PR_edicts (p) + (e)))
 

Functions

edict_tED_Alloc (progs_t *pr)
 
void ED_ClearEdict (progs_t *pr, edict_t *e, int val)
 
struct plitem_s * ED_ConvertToPlist (struct script_s *script, int nohack)
 
void ED_Count (progs_t *pr)
 
edict_tED_EdictNum (progs_t *pr, pr_int_t n)
 
struct plitem_s * ED_EntityDict (progs_t *pr, edict_t *ed)
 
void ED_EntityParseFunction (progs_t *pr)
 
void ED_Free (progs_t *pr, edict_t *ed)
 
struct plitem_s * ED_GlobalsDict (progs_t *pr)
 
void ED_InitEntity (progs_t *pr, struct plitem_s *entity, edict_t *ent)
 
void ED_InitGlobals (progs_t *pr, struct plitem_s *globals)
 
void ED_LoadFromFile (progs_t *pr, const char *data)
 
pr_int_t ED_NumForEdict (progs_t *pr, edict_t *e)
 
struct plitem_s * ED_Parse (progs_t *pr, const char *data)
 
qboolean ED_ParseEpair (progs_t *pr, pr_type_t *base, ddef_t *key, const char *s)
 
void ED_Print (progs_t *pr, edict_t *ed)
 
void ED_PrintEdicts (progs_t *pr, const char *fieldval)
 
void ED_PrintNum (progs_t *pr, pr_int_t ent)
 
qboolean PR_EdictValid (progs_t *pr, pr_int_t e)
 

Detailed Description

Macro Definition Documentation

#define EDICT_NUM (   p,
  n 
)    (PROG_TO_EDICT (p, (n) * (p)->pr_edict_size))
#define EDICT_TO_PROG (   p,
  e 
)    ((pr_int_t)(intptr_t)((byte *)(e) - PR_edicts (p)))
#define NEXT_EDICT (   p,
  e 
)    ((edict_t *) ((byte *) e + (p)->pr_edict_size))
#define NUM_FOR_BAD_EDICT (   p,
  e 
)    ((e)->entnum)
#define NUM_FOR_EDICT (   p,
  e 
)    NUM_FOR_BAD_EDICT (p, e)
#define PR_edicts (   p)    ((byte *) *(p)->edicts)
#define PROG_TO_EDICT (   p,
  e 
)    ((edict_t *) (PR_edicts (p) + (e)))

Function Documentation

edict_t* ED_Alloc ( progs_t pr)
void ED_ClearEdict ( progs_t pr,
edict_t e,
int  val 
)
struct plitem_s* ED_ConvertToPlist ( struct script_s script,
int  nohack 
)
void ED_Count ( progs_t pr)
edict_t* ED_EdictNum ( progs_t pr,
pr_int_t  n 
)
struct plitem_s* ED_EntityDict ( progs_t pr,
edict_t ed 
)
void ED_EntityParseFunction ( progs_t pr)
void ED_Free ( progs_t pr,
edict_t ed 
)
struct plitem_s* ED_GlobalsDict ( progs_t pr)
void ED_InitEntity ( progs_t pr,
struct plitem_s *  entity,
edict_t ent 
)
void ED_InitGlobals ( progs_t pr,
struct plitem_s *  globals 
)
void ED_LoadFromFile ( progs_t pr,
const char *  data 
)
pr_int_t ED_NumForEdict ( progs_t pr,
edict_t e 
)
struct plitem_s* ED_Parse ( progs_t pr,
const char *  data 
)
qboolean ED_ParseEpair ( progs_t pr,
pr_type_t base,
ddef_t key,
const char *  s 
)
void ED_Print ( progs_t pr,
edict_t ed 
)
void ED_PrintEdicts ( progs_t pr,
const char *  fieldval 
)
void ED_PrintNum ( progs_t pr,
pr_int_t  ent 
)
qboolean PR_EdictValid ( progs_t pr,
pr_int_t  e 
)