Pol  Rev 533
NpcTemplate Class Reference

#include <npctmpl.h>

+ Collaboration diagram for NpcTemplate:

List of all members.

Public Types

enum  ALIGNMENT { NEUTRAL, EVIL, GOOD }

Public Member Functions

 NpcTemplate (const ConfigElem &elem, const Package *pkg)
 ~NpcTemplate ()

Public Attributes

enum NpcTemplate::ALIGNMENT alignment
UWeapon * intrinsic_weapon
ExportScript * method_script
std::string name
const Package * pkg

Detailed Description

Definition at line 23 of file npctmpl.h.


Member Enumeration Documentation

Enumerator:
NEUTRAL 
EVIL 
GOOD 

Definition at line 32 of file npctmpl.h.


Constructor & Destructor Documentation

NpcTemplate::NpcTemplate ( const ConfigElem &  elem,
const Package *  pkg 
)

Definition at line 56 of file npctmpl.cpp.

References ConfigElem::has_prop(), ExportScript::Initialize(), method_script, name, Package::name(), ConfigElem::read_string(), and ConfigElemBase::rest().

+ Here is the call graph for this function:

Definition at line 93 of file npctmpl.cpp.

References method_script.


Member Data Documentation

Definition at line 28 of file npctmpl.h.

Referenced by NPC::intrinsic_weapon().

std::string NpcTemplate::name

Definition at line 26 of file npctmpl.h.

Referenced by create_npc_template(), and NpcTemplate().

Definition at line 29 of file npctmpl.h.

Referenced by NPC::readNpcProperties(), and NPC::start_script().


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