EntityClass Class Reference

#include <eclasslib.h>

Collaboration diagram for EntityClass:
Collaboration graph
[legend]

Public Member Functions

const char * name () const
const char * comments () const
const std::stringmodelpath () const
const char * skin () const
EntityClassAttributegetAttribute (const std::string &attributeName) const
 Get the attribute definition for a given attribute name.
const std::string getDefaultForAttribute (const std::string &attributeName) const
 Get the default value for a given entity parameter.

Data Fields

std::string m_name
StringList m_parent
bool fixedsize
Vector3 mins
Vector3 maxs
Colour3 color
Shader * m_state_fill
Shader * m_state_wire
Shader * m_state_blend
std::string m_comments
char flagnames [MAX_FLAGS][32]
std::string m_modelpath
std::string m_skin
void(* free )(EntityClass *)
EntityClassAttributes m_attributes

Detailed Description

Definition at line 112 of file eclasslib.h.


Member Function Documentation

const char* EntityClass::comments (  )  const [inline]

Definition at line 140 of file eclasslib.h.

References m_comments.

EntityClassAttribute* EntityClass::getAttribute ( const std::string attributeName  )  const [inline]

Get the attribute definition for a given attribute name.

Parameters:
attributeName the attribute to retrieve
Returns:
attribute or NULL

Definition at line 158 of file eclasslib.h.

References i, and m_attributes.

Referenced by getDefaultForAttribute().

const std::string EntityClass::getDefaultForAttribute ( const std::string attributeName  )  const [inline]

Get the default value for a given entity parameter.

Parameters:
attributeName The attribute name to get the default value for
Returns:
the default value

Definition at line 173 of file eclasslib.h.

References getAttribute(), and EntityClassAttribute::m_value.

Referenced by EntityKeyValues::addMandatoryKeyValues().

const std::string& EntityClass::modelpath (  )  const [inline]

Definition at line 144 of file eclasslib.h.

References m_modelpath.

const char* EntityClass::name (  )  const [inline]

Definition at line 136 of file eclasslib.h.

References m_name.

Referenced by NamedEntity::identifierChanged(), and NamedEntity::name().

const char* EntityClass::skin (  )  const [inline]

Definition at line 148 of file eclasslib.h.

References m_skin.


Field Documentation

Definition at line 117 of file eclasslib.h.

Referenced by Eclass_Alloc(), and EClass_Create_FixedSize().

char EntityClass::flagnames[MAX_FLAGS][32]

Definition at line 127 of file eclasslib.h.

Referenced by Eclass_Alloc().

Definition at line 126 of file eclasslib.h.

Referenced by comments(), EClass_Create(), and EClass_Create_FixedSize().

Definition at line 129 of file eclasslib.h.

Referenced by modelpath().

Definition at line 115 of file eclasslib.h.

Referenced by EClass_Create(), EClass_Create_FixedSize(), and name().

Definition at line 116 of file eclasslib.h.

model path - only for displaying in radiant

Definition at line 130 of file eclasslib.h.

Referenced by skin().

Definition at line 124 of file eclasslib.h.

Referenced by eclass_capture_state().

Definition at line 122 of file eclasslib.h.

Referenced by eclass_capture_state().

Definition at line 123 of file eclasslib.h.

Referenced by eclass_capture_state(), and TargetableInstance::render().

Definition at line 119 of file eclasslib.h.

Referenced by Eclass_Alloc(), and EClass_Create_FixedSize().

Definition at line 118 of file eclasslib.h.

Referenced by Eclass_Alloc(), and EClass_Create_FixedSize().


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

Generated by  doxygen 1.6.2