#include <WeaponTeleport.h>

Public Member Functions | |
| WeaponTeleport () | |
| virtual | ~WeaponTeleport () |
| virtual bool | parseXML (AccessoryCreateContext &context, XMLNode *accessoryNode) |
| const char * | getSound () |
| bool | getGroundOnly () |
| fixed | getDelay (ScorchedContext &context) |
| void | fireWeapon (ScorchedContext &context, WeaponFireContext &weaponContext, FixedVector &position, FixedVector &velocity) |
| REGISTER_ACCESSORY_HEADER (WeaponTeleport, AccessoryPart::AccessoryWeapon) | |
Protected Attributes | |
| NumberParser | delay_ |
| std::string | sound_ |
| bool | groundOnly_ |
Definition at line 26 of file WeaponTeleport.h.
| WeaponTeleport::WeaponTeleport | ( | ) |
Definition at line 30 of file WeaponTeleport.cpp.
| WeaponTeleport::~WeaponTeleport | ( | ) | [virtual] |
Definition at line 35 of file WeaponTeleport.cpp.
| bool WeaponTeleport::parseXML | ( | AccessoryCreateContext & | context, | |
| XMLNode * | accessoryNode | |||
| ) | [virtual] |
Reimplemented from Weapon.
Definition at line 40 of file WeaponTeleport.cpp.
References S3D::checkDataFile(), delay_, XMLNode::getNamedChild(), getSound(), groundOnly_, Weapon::parseXML(), and sound_.
| const char* WeaponTeleport::getSound | ( | ) | [inline] |
Definition at line 35 of file WeaponTeleport.h.
References sound_.
Referenced by parseXML(), and Teleport::simulate().
| bool WeaponTeleport::getGroundOnly | ( | ) | [inline] |
Definition at line 36 of file WeaponTeleport.h.
References groundOnly_.
Referenced by Teleport::simulate().
| fixed WeaponTeleport::getDelay | ( | ScorchedContext & | context | ) |
Definition at line 52 of file WeaponTeleport.cpp.
References delay_, and NumberParser::getValue().
Referenced by Teleport::simulate().
| void WeaponTeleport::fireWeapon | ( | ScorchedContext & | context, | |
| WeaponFireContext & | weaponContext, | |||
| FixedVector & | position, | |||
| FixedVector & | velocity | |||
| ) | [virtual] |
Implements Weapon.
Definition at line 57 of file WeaponTeleport.cpp.
References ActionController::addAction(), LandscapeTex::border, LandscapeTexType::eWater, ScorchedContext::getActionController(), GroundMaps::getArenaHeight(), GroundMaps::getArenaWidth(), GroundMaps::getArenaX(), GroundMaps::getArenaY(), LandscapeMaps::getDefinitions(), LandscapeMaps::getGroundMaps(), GroundMaps::getInterpHeight(), ScorchedContext::getLandscapeMaps(), LandscapeDefinitionCache::getTex(), LandscapeTexType::getType(), and LandscapeTexBorderWater::height.
| WeaponTeleport::REGISTER_ACCESSORY_HEADER | ( | WeaponTeleport | , | |
| AccessoryPart::AccessoryWeapon | ||||
| ) |
NumberParser WeaponTeleport::delay_ [protected] |
std::string WeaponTeleport::sound_ [protected] |
bool WeaponTeleport::groundOnly_ [protected] |
1.5.3