WeaponTeleport Class Reference

#include <WeaponTeleport.h>

Inheritance diagram for WeaponTeleport:

Weapon AccessoryPart

List of all members.

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_


Detailed Description

Definition at line 26 of file WeaponTeleport.h.


Constructor & Destructor Documentation

WeaponTeleport::WeaponTeleport (  ) 

Definition at line 30 of file WeaponTeleport.cpp.

WeaponTeleport::~WeaponTeleport (  )  [virtual]

Definition at line 35 of file WeaponTeleport.cpp.


Member Function Documentation

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   
)


Member Data Documentation

NumberParser WeaponTeleport::delay_ [protected]

Definition at line 46 of file WeaponTeleport.h.

Referenced by getDelay(), and parseXML().

std::string WeaponTeleport::sound_ [protected]

Definition at line 47 of file WeaponTeleport.h.

Referenced by getSound(), and parseXML().

bool WeaponTeleport::groundOnly_ [protected]

Definition at line 48 of file WeaponTeleport.h.

Referenced by getGroundOnly(), and parseXML().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:08 2009 for Scorched3D by  doxygen 1.5.3