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

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
bool m_hidden = true
vector m_maxs = '0 0 0'
 hitbox size
vector m_mins = '-0 -0 -0'
 hitbox size
string m_name = _("Monster")
 human readable name
int monsterid = 0
string netname = ""
 short name
int spawnflags = 0
 attributes

Detailed Description

Definition at line 13 of file all.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_hidden

bool NullMonster::m_hidden = true

Definition at line 14 of file all.qh.

◆ m_maxs

vector Monster::m_maxs = '0 0 0'
inherited

hitbox size

Definition at line 52 of file monster.qh.

Referenced by invasion_SpawnChosenMonster(), and Monster_Spawn().

◆ m_mins

vector Monster::m_mins = '-0 -0 -0'
inherited

hitbox size

Definition at line 50 of file monster.qh.

Referenced by invasion_SpawnChosenMonster(), and Monster_Spawn().

◆ m_name

string Monster::m_name = _("Monster")
inherited

human readable name

Definition at line 40 of file monster.qh.

Referenced by display(), and Monster_Spawn().

◆ monsterid

int Monster::monsterid = 0
inherited

Definition at line 36 of file monster.qh.

◆ netname

string Monster::netname = ""
inherited

short name

Definition at line 42 of file monster.qh.

Referenced by Monster_Spawn().

◆ spawnflags

int Monster::spawnflags = 0
inherited

attributes

Definition at line 38 of file monster.qh.

Referenced by Monster_Spawn().


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