#include <Weapon.h>
Inherits SubsystemInterface.
Public Member Functions | |
| WeaponStore () | |
| ~WeaponStore () | |
| void | init () |
| void | postProcessLoad () |
| void | reset () |
| void | update () |
| const WeaponTemplate * | findWeaponTemplate (AsciiString name) const |
| const WeaponTemplate * | findWeaponTemplateByNameKey (NameKeyType key) const |
| Weapon * | allocateNewWeapon (const WeaponTemplate *tmpl, WeaponSlotType wslot) const |
| void | createAndFireTempWeapon (const WeaponTemplate *w, const Object *source, const Coord3D *pos) |
| void | createAndFireTempWeapon (const WeaponTemplate *w, const Object *source, Object *target) |
| void | handleProjectileDetonation (const WeaponTemplate *w, const Object *source, const Coord3D *pos, WeaponBonusConditionFlags extraBonusFlags, Bool inflictDamage=TRUE) |
Public Member Functions inherited from SubsystemInterface | |
| SubsystemInterface () | |
| virtual | ~SubsystemInterface () |
| virtual void | draw (void) |
| void | UPDATE (void) |
| void | DRAW (void) |
| AsciiString | getName (void) |
| void | setName (AsciiString name) |
Static Public Member Functions | |
| static void | parseWeaponTemplateDefinition (INI *ini) |
Protected Member Functions | |
| WeaponTemplate * | findWeaponTemplatePrivate (NameKeyType key) const |
| WeaponTemplate * | newWeaponTemplate (AsciiString name) |
| WeaponTemplate * | newOverride (WeaponTemplate *weaponTemplate) |
| void | deleteAllDelayedDamage () |
| void | resetWeaponTemplates (void) |
| void | setDelayedDamage (const WeaponTemplate *weapon, const Coord3D *pos, UnsignedInt whichFrame, ObjectID sourceID, ObjectID victimID, const WeaponBonus &bonus) |
Friends | |
| class | WeaponTemplate |
Additional Inherited Members | |
Protected Attributes inherited from SubsystemInterface | |
| AsciiString | m_name |
The "store" used to hold all the WeaponTemplates in existence. This is usually used when creating an Object, but can be used at any time after that. (It is explicitly OK to swap an Object's Weapon out at any given time.)
| WeaponStore::WeaponStore | ( | ) |
Definition at line 1509 of file Weapon.cpp.
| WeaponStore::~WeaponStore | ( | ) |
Definition at line 1514 of file Weapon.cpp.
|
inline |
| void WeaponStore::createAndFireTempWeapon | ( | const WeaponTemplate * | w, |
| const Object * | source, | ||
| const Coord3D * | pos ) |
Definition at line 1537 of file Weapon.cpp.
| void WeaponStore::createAndFireTempWeapon | ( | const WeaponTemplate * | w, |
| const Object * | source, | ||
| Object * | target ) |
Definition at line 1548 of file Weapon.cpp.
|
protected |
Definition at line 1633 of file Weapon.cpp.
| const WeaponTemplate * WeaponStore::findWeaponTemplate | ( | AsciiString | name | ) | const |
Find the WeaponTemplate with the given name. If no such WeaponTemplate exists, return null.
Definition at line 1560 of file Weapon.cpp.
|
inline |
|
protected |
Definition at line 1570 of file Weapon.cpp.
| void WeaponStore::handleProjectileDetonation | ( | const WeaponTemplate * | w, |
| const Object * | source, | ||
| const Coord3D * | pos, | ||
| WeaponBonusConditionFlags | extraBonusFlags, | ||
| Bool | inflictDamage = TRUE ) |
Definition at line 1528 of file Weapon.cpp.
|
inlinevirtual |
Implements SubsystemInterface.
|
protected |
Definition at line 1599 of file Weapon.cpp.
|
protected |
Definition at line 1582 of file Weapon.cpp.
|
static |
Definition at line 1701 of file Weapon.cpp.
|
virtual |
Reimplemented from SubsystemInterface.
Definition at line 1683 of file Weapon.cpp.
|
virtual |
Implements SubsystemInterface.
Definition at line 1651 of file Weapon.cpp.
|
protected |
Definition at line 1639 of file Weapon.cpp.
|
protected |
Definition at line 1670 of file Weapon.cpp.
|
virtual |
Implements SubsystemInterface.
Definition at line 1613 of file Weapon.cpp.
|
friend |