MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / Inherits

Method Inherits

neo/game/script/Script_Program.cpp:207–224  ·  view source on GitHub ↗

================ idTypeDef::Inherits Returns true if basetype is an ancestor of this type. ================ */

Source from the content-addressed store, hash-verified

205================
206*/
207bool idTypeDef::Inherits( const idTypeDef *basetype ) const {
208 idTypeDef *superType;
209
210 if ( type != ev_object ) {
211 return false;
212 }
213
214 if ( this == basetype ) {
215 return true;
216 }
217 for( superType = auxType; superType != NULL; superType = superType->auxType ) {
218 if ( superType == basetype ) {
219 return true;
220 }
221 }
222
223 return false;
224}
225
226/*
227================

Callers 15

Event_ActivateMethod · 0.45
Event_CallFunctionMethod · 0.45
AddFieldMethod · 0.45
SetObjectMethod · 0.45
SetTypeMethod · 0.45
GetVariableMethod · 0.45
AllocDefMethod · 0.45
CompileTextMethod · 0.45
EmitPushMethod · 0.45
CheckTypeMethod · 0.45
GetExpressionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected