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

Public Member Functions

 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 = '16 16 55'
vector m_mins = '-16 -16 -24'
Model m_model = MDL_MON_MAGE
string m_name = _("Mage")
int monsterid = 0
string netname = "mage"
int spawnflags = MON_FLAG_MELEE | MON_FLAG_RANGED

Detailed Description

Definition at line 9 of file mage.qh.

Member Function Documentation

◆ ATTRIB()

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

model

References entity().

◆ describe()

virtual void Monster::describe ( )
inlinevirtualinherited

Definition at line 97 of file monster.qh.

98 {
99 TC(Monster, this);
100 return SUPER(Monster).describe(this);
101 }
#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 102 of file monster.qh.

103 {
104 TC(Monster, this);
105 returns(this.m_name, icon_path_from_menuskin(this.m_icon));
106 }
string m_name
human readable name
Definition monster.qh:42

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 90 of file monster.qh.

91 {
92 TC(Monster, this);
93 return false;
94 }

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 70 of file monster.qh.

71 {
72 TC(Monster, this);
73 return false;
74 }

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 76 of file monster.qh.

77 {
78 TC(Monster, this);
79 return false;
80 }

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 82 of file monster.qh.

83 {
84 TC(Monster, this);
85 return damage_take;
86 }

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 58 of file monster.qh.

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

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

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 64 of file monster.qh.

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

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 46 of file monster.qh.

◆ m_maxs

vector Mage::m_maxs = '16 16 55'

Definition at line 13 of file mage.qh.

◆ m_mins

vector Mage::m_mins = '-16 -16 -24'

Definition at line 12 of file mage.qh.

◆ m_model

Model Mage::m_model = MDL_MON_MAGE

Definition at line 16 of file mage.qh.

◆ m_name

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

Definition at line 19 of file mage.qh.

◆ monsterid

int Monster::monsterid = 0
inherited

Definition at line 36 of file monster.qh.

◆ netname

string Mage::netname = "mage"

Definition at line 18 of file mage.qh.

◆ spawnflags

int Mage::spawnflags = MON_FLAG_MELEE | MON_FLAG_RANGED

Definition at line 11 of file mage.qh.


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