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

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


Classes

struct  persistent_entity
struct  entity
struct  itemstat
struct  guninfo
class  worldobject
class  physent
class  dynent
struct  poshist
class  playerstate
class  playerent
class  botent
struct  flaginfo
class  bounceent
struct  hitmsg
class  grenadeent

Defines

#define isitem(i)   (i >= I_CLIPS && i <= I_AKIMBO)
#define reloadable_gun(g)   (g != GUN_KNIFE && g != GUN_GRENADE)
#define SGRAYS   21
#define SGSPREAD   2
#define EXPDAMRAD   10
#define isteam(a, b)   (m_teammode && strcmp(a, b)==0)
#define TEAM_CLA   0
#define TEAM_RVSF   1
#define team_valid(t)   (!strcmp(t, "RVSF") || !strcmp(t, "CLA"))
#define team_string(t)   ((t) ? "RVSF" : "CLA")
#define team_int(t)   (strcmp((t), "CLA") == 0 ? TEAM_CLA : TEAM_RVSF)
#define team_opposite(o)   ((o) == TEAM_CLA ? TEAM_RVSF : TEAM_CLA)
#define MAXNAMELEN   15
#define MAXTEAMLEN   4
#define POSHIST_SIZE   7
#define HEADSIZE   0.4f

Enumerations

enum  {
  NOTUSED = 0, LIGHT, PLAYERSTART, I_CLIPS,
  I_AMMO, I_GRENADE, I_HEALTH, I_ARMOUR,
  I_AKIMBO, MAPMODEL, CARROT, LADDER,
  CTF_FLAG, SOUND, CLIP, MAXENTTYPES
}
enum  {
  GUN_KNIFE = 0, GUN_PISTOL, GUN_SHOTGUN, GUN_SUBGUN,
  GUN_SNIPER, GUN_ASSAULT, GUN_GRENADE, GUN_AKIMBO,
  NUMGUNS
}
enum  { ENT_PLAYER = 0, ENT_BOT, ENT_CAMERA, ENT_BOUNCE }
enum  {
  CS_ALIVE = 0, CS_DEAD, CS_SPAWNING, CS_LAGGED,
  CS_EDITING, CS_SPECTATE
}
enum  { CR_DEFAULT = 0, CR_ADMIN }
enum  {
  SM_NONE = 0, SM_DEATHCAM, SM_FOLLOW1ST, SM_FOLLOW3RD,
  SM_FOLLOW3RD_TRANSPARENT, SM_FLY, SM_NUM
}
enum  { CTFF_INBASE = 0, CTFF_STOLEN, CTFF_DROPPED, CTFF_IDLE }
enum  { BT_NONE, BT_NADE, BT_GIB }

Functions

static int reloadtime (int gun)
static int attackdelay (int gun)
static int magsize (int gun)

Variables

static itemstat ammostats []
static itemstat powerupstats []
static guninfo guns [NUMGUNS]

Define Documentation

#define EXPDAMRAD   10

#define HEADSIZE   0.4f

#define isitem ( i   )     (i >= I_CLIPS && i <= I_AKIMBO)

#define isteam ( a,
b   )     (m_teammode && strcmp(a, b)==0)

#define MAXNAMELEN   15

#define MAXTEAMLEN   4

#define POSHIST_SIZE   7

#define reloadable_gun ( g   )     (g != GUN_KNIFE && g != GUN_GRENADE)

#define SGRAYS   21

#define SGSPREAD   2

#define TEAM_CLA   0

#define team_int ( t   )     (strcmp((t), "CLA") == 0 ? TEAM_CLA : TEAM_RVSF)

#define team_opposite ( o   )     ((o) == TEAM_CLA ? TEAM_RVSF : TEAM_CLA)

#define TEAM_RVSF   1

#define team_string ( t   )     ((t) ? "RVSF" : "CLA")

#define team_valid ( t   )     (!strcmp(t, "RVSF") || !strcmp(t, "CLA"))


Enumeration Type Documentation

anonymous enum

Enumerator:
NOTUSED 
LIGHT 
PLAYERSTART 
I_CLIPS 
I_AMMO 
I_GRENADE 
I_HEALTH 
I_ARMOUR 
I_AKIMBO 
MAPMODEL 
CARROT 
LADDER 
CTF_FLAG 
SOUND 
CLIP 
MAXENTTYPES 

anonymous enum

Enumerator:
GUN_KNIFE 
GUN_PISTOL 
GUN_SHOTGUN 
GUN_SUBGUN 
GUN_SNIPER 
GUN_ASSAULT 
GUN_GRENADE 
GUN_AKIMBO 
NUMGUNS 

anonymous enum

Enumerator:
ENT_PLAYER 
ENT_BOT 
ENT_CAMERA 
ENT_BOUNCE 

anonymous enum

Enumerator:
CS_ALIVE 
CS_DEAD 
CS_SPAWNING 
CS_LAGGED 
CS_EDITING 
CS_SPECTATE 

anonymous enum

Enumerator:
CR_DEFAULT 
CR_ADMIN 

anonymous enum

Enumerator:
SM_NONE 
SM_DEATHCAM 
SM_FOLLOW1ST 
SM_FOLLOW3RD 
SM_FOLLOW3RD_TRANSPARENT 
SM_FLY 
SM_NUM 

anonymous enum

Enumerator:
CTFF_INBASE 
CTFF_STOLEN 
CTFF_DROPPED 
CTFF_IDLE 

anonymous enum

Enumerator:
BT_NONE 
BT_NADE 
BT_GIB 


Function Documentation

static int attackdelay ( int  gun  )  [inline, static]

static int magsize ( int  gun  )  [inline, static]

static int reloadtime ( int  gun  )  [inline, static]


Variable Documentation

itemstat ammostats[] [static]

Initial value:

{
    {1,  1,   1,   S_ITEMAMMO},   
    {16, 32,  72,  S_ITEMAMMO},   
    {14, 28,  21,  S_ITEMAMMO},   
    {60, 90,  90,  S_ITEMAMMO},   
    {10, 20,  15,  S_ITEMAMMO},   
    {30, 60,  60,  S_ITEMAMMO},   
    {2,  0,   2,   S_ITEMAMMO},   
    {72, 0,   72,  S_ITEMAKIMBO}  
}

guninfo guns[NUMGUNS] [static]

Initial value:

{
    { "knife",      S_KNIFE,      S_NULL,     0,      500,    50,     0,   0,  1,    1,   1,    0,  0,    0,  0,      0,      0,    1,      false },
    { "pistol",     S_PISTOL,     S_RPISTOL,  1400,   170,    19,     0,   0, 80,   10,   8,    6,  5,    1,  40,     75,     150,  1,      false },
    { "shotgun",    S_SHOTGUN,    S_RSHOTGUN, 2400,   1000,   5,      0,   0,  1,   35,   7,    9,  9,    1,  130,    500,    150,  1,      false },
    { "subgun",     S_SUBGUN,     S_RSUBGUN,  1650,   80,     16,     0,   0, 70,   15,   30,   1,  2,    7,  15,     30,     250,  1,      true },
    { "sniper",     S_SNIPER,     S_RSNIPER,  1950,   1500,   85,     0,   0, 60,   50,   5,    4,  4,    1,  100,    500,    100,  1,      false },
    { "assault",    S_ASSAULT,    S_RASSAULT, 2000,   130,    24,     0,   0, 20,   40,   15,   0,  2,    2,  25,     60,     150,  1,      true },
    { "grenade",    S_NULL,       S_NULL,     1000,   650,    200,    20,  6,  1,    1,   1,    3,  1,    0,  0,      0,      0,    3,      false },
    { "pistol",     S_PISTOL,     S_RAKIMBO,  1400,   80,     19,     0,   0, 80,   10,   16,   6,  5,    4,  30,     75,     150,   1,      true },
}

itemstat powerupstats[] [static]

Initial value:

{
    {33, 100, 100, S_ITEMHEALTH}, 
    {50, 100, 100, S_ITEMARMOUR}, 
}


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