Xonotic
Monster Class Reference
+ Inheritance diagram for Monster:
+ Collaboration diagram for Monster:

Public Member Functions

 ATTRIB (Monster, m_model, entity)
 model More...
 
virtual void Monster ::mr_anim ()
 (BOTH?) sets animations for monster More...
 
virtual void Monster ::mr_death ()
 (SERVER) called when monster dies More...
 
virtual void Monster ::mr_pain ()
 (SERVER) called when monster is damaged More...
 
virtual void Monster ::mr_setup ()
 (SERVER) setup monster data More...
 
virtual void Monster ::mr_think ()
 (SERVER) logic to run every frame More...
 

Public Attributes

vector m_maxs = '0 0 0'
 hitbox size More...
 
vector m_mins = '-0 -0 -0'
 hitbox size More...
 
string monster_name = "Monster"
 human readable name More...
 
int monsterid = 0
 
string netname = ""
 short name More...
 
int spawnflags = 0
 attributes More...
 

Detailed Description

Definition at line 31 of file monster.qh.

Member Function Documentation

◆ ATTRIB()

Monster::ATTRIB ( Monster  ,
m_model  ,
entity   
)

model

◆ Monster ::mr_anim()

virtual void Monster::Monster ::mr_anim ( )
inlinevirtual

(BOTH?) sets animations for monster

Definition at line 55 of file monster.qh.

References ENDCLASS, entity(), TC, and vector().

55 { TC(Monster, this); return false; }
#define TC(T, sym)
Definition: _all.inc:82
+ Here is the call graph for this function:

◆ Monster ::mr_death()

virtual void Monster::Monster ::mr_death ( )
inlinevirtual

(SERVER) called when monster dies

Definition at line 51 of file monster.qh.

References TC.

51 { TC(Monster, this); return false; }
#define TC(T, sym)
Definition: _all.inc:82

◆ Monster ::mr_pain()

virtual void Monster::Monster ::mr_pain ( )
inlinevirtual

(SERVER) called when monster is damaged

Definition at line 53 of file monster.qh.

References TC.

53 { TC(Monster, this); return damage_take; }
#define TC(T, sym)
Definition: _all.inc:82

◆ Monster ::mr_setup()

virtual void Monster::Monster ::mr_setup ( )
inlinevirtual

(SERVER) setup monster data

Definition at line 47 of file monster.qh.

References TC.

47 { TC(Monster, this); return false; }
#define TC(T, sym)
Definition: _all.inc:82

◆ Monster ::mr_think()

virtual void Monster::Monster ::mr_think ( )
inlinevirtual

(SERVER) logic to run every frame

Definition at line 49 of file monster.qh.

References TC.

49 { TC(Monster, this); return false; }
#define TC(T, sym)
Definition: _all.inc:82

Member Data Documentation

◆ m_maxs

vector Monster::m_maxs = '0 0 0'

hitbox size

Definition at line 44 of file monster.qh.

Referenced by invasion_SpawnChosenMonster(), and Monster_Spawn().

◆ m_mins

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

hitbox size

Definition at line 42 of file monster.qh.

Referenced by invasion_SpawnChosenMonster(), and Monster_Spawn().

◆ monster_name

string Monster::monster_name = "Monster"

human readable name

Definition at line 36 of file monster.qh.

Referenced by Monster_Spawn().

◆ monsterid

int Monster::monsterid = 0

Definition at line 32 of file monster.qh.

◆ netname

string Monster::netname = ""

short name

Definition at line 38 of file monster.qh.

Referenced by Monster_Spawn().

◆ spawnflags

int Monster::spawnflags = 0

attributes

Definition at line 34 of file monster.qh.

Referenced by Monster_Spawn().


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