Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
Zombie Class Reference
Inheritance diagram for Zombie:
Collaboration diagram for Zombie:

Public Member Functions

 ATTRIB (Monster, m_icon, string)
 icon
 ATTRIB (Monster, m_model, entity)
 model
virtual void describe ()
virtual void display ()
virtual void mr_anim ()
 (BOTH?) sets animations for monster
virtual void mr_deadthink ()
 (SERVER) logic to run every frame after the monster has died
virtual void mr_death ()
 (SERVER) called when monster dies
virtual void mr_pain ()
 (SERVER) called when monster is damaged
virtual void mr_setup ()
 (SERVER) setup monster data
virtual void mr_think ()
 (SERVER) logic to run every frame

Public Attributes

vector m_color = '1 1 1'
 color
vector m_maxs = '18 18 47'
vector m_mins = '-18 -18 -25'
Model m_model = MDL_MON_ZOMBIE
string m_name = _("Zombie")
int monsterid = 0
string netname = "zombie"
int spawnflags = MONSTER_TYPE_UNDEAD | MON_FLAG_MELEE | MON_FLAG_RIDE

Detailed Description

Definition at line 9 of file zombie.qh.

Member Function Documentation

◆ ATTRIB() [1/2]

Monster::ATTRIB ( Monster ,
m_icon ,
string  )
inherited

icon

References ATTRIB().

Referenced by ATTRIB(), and ATTRIB().

◆ ATTRIB() [2/2]

Monster::ATTRIB ( Monster ,
m_model ,
entity  )
inherited

model

References ATTRIB(), and entity().

◆ describe()

virtual void Monster::describe ( )
inlinevirtualinherited

Definition at line 67 of file monster.qh.

68 {
69 TC(Monster, this);
70 return SUPER(Monster).describe(this);
71 }
#define TC(T, sym)
Definition _all.inc:82
#define SUPER(cname)
Definition oo.qh:231

References describe(), SUPER, and TC.

Referenced by describe().

◆ display()

virtual void Monster::display ( )
inlinevirtualinherited

Definition at line 72 of file monster.qh.

73 {
74 TC(Monster, this);
75 returns(this.m_name, icon_path_from_menuskin(this.m_icon));
76 }
string m_name
human readable name
Definition monster.qh:40

References display(), m_name, name, and TC.

Referenced by display().

◆ mr_anim()

virtual void Monster::mr_anim ( )
inlinevirtualinherited

(BOTH?) sets animations for monster

Definition at line 65 of file monster.qh.

65{ TC(Monster, this); return false; }

References entity(), mr_anim(), and TC.

Referenced by Monster_UpdateModel(), monsters_animoverride(), and mr_anim().

◆ mr_deadthink()

virtual void Monster::mr_deadthink ( )
inlinevirtualinherited

(SERVER) logic to run every frame after the monster has died

Definition at line 59 of file monster.qh.

59{ TC(Monster, this); return false; }

References entity(), mr_deadthink(), and TC.

Referenced by Monster_Dead_Think(), and mr_deadthink().

◆ mr_death()

virtual void Monster::mr_death ( )
inlinevirtualinherited

(SERVER) called when monster dies

Definition at line 61 of file monster.qh.

61{ TC(Monster, this); return false; }

References entity(), mr_death(), and TC.

Referenced by Monster_Dead(), and mr_death().

◆ mr_pain()

virtual void Monster::mr_pain ( )
inlinevirtualinherited

(SERVER) called when monster is damaged

Definition at line 63 of file monster.qh.

63{ TC(Monster, this); return damage_take; }

References entity(), mr_pain(), and TC.

Referenced by Monster_Damage(), and mr_pain().

◆ mr_setup()

virtual void Monster::mr_setup ( )
inlinevirtualinherited

(SERVER) setup monster data

Definition at line 55 of file monster.qh.

55{ TC(Monster, this); return false; }

References entity(), METHOD, mr_setup(), TC, and this.

Referenced by Monster_Spawn_Setup(), and mr_setup().

◆ mr_think()

virtual void Monster::mr_think ( )
inlinevirtualinherited

(SERVER) logic to run every frame

Definition at line 57 of file monster.qh.

57{ TC(Monster, this); return false; }

References entity(), mr_think(), and TC.

Referenced by Monster_Think(), and mr_think().

Member Data Documentation

◆ m_color

vector Monster::m_color = '1 1 1'
inherited

color

Definition at line 44 of file monster.qh.

◆ m_maxs

vector Zombie::m_maxs = '18 18 47'

Definition at line 12 of file zombie.qh.

◆ m_mins

vector Zombie::m_mins = '-18 -18 -25'

Definition at line 11 of file zombie.qh.

◆ m_model

Model Zombie::m_model = MDL_MON_ZOMBIE

Definition at line 14 of file zombie.qh.

◆ m_name

string Zombie::m_name = _("Zombie")

Definition at line 17 of file zombie.qh.

◆ monsterid

int Monster::monsterid = 0
inherited

Definition at line 36 of file monster.qh.

◆ netname

string Zombie::netname = "zombie"

Definition at line 16 of file zombie.qh.

◆ spawnflags

Definition at line 10 of file zombie.qh.


The documentation for this class was generated from the following file: