#include <TargetDefinition.h>
Public Member Functions | |
| TargetDefinition () | |
| virtual | ~TargetDefinition () |
| virtual bool | readXML (XMLNode *node, const char *base) |
| Target * | createTarget (unsigned int playerId, FixedVector &position, FixedVector &velocity, ScorchedContext &context, RandomGenerator &generator) |
| PlacementShadowDefinition & | getShadow () |
| PlacementGroupDefinition & | getGroups () |
Protected Attributes | |
| fixed | life_ |
| bool | boundingsphere_ |
| bool | driveovertodestroy_ |
| bool | flattendestroy_ |
| bool | nocollision_ |
| bool | nodamageburn_ |
| bool | nofalling_ |
| bool | displaydamage_ |
| bool | displayshadow_ |
| bool | displayhardwareshadow_ |
| bool | nofallingdamage_ |
| LangString | name_ |
| std::string | parachute_ |
| std::string | shield_ |
| FixedVector | size_ |
| fixed | modelscale_ |
| fixed | modelscalediff_ |
| fixed | modelrotation_ |
| fixed | modelbrightness_ |
| fixed | modelrotationsnap_ |
| fixed | border_ |
| std::string | removeaction_ |
| std::string | burnaction_ |
| ModelID | modelId_ |
| ModelID | modelburntId_ |
| PlacementShadowDefinition | shadow_ |
| PlacementGroupDefinition | groups_ |
Definition at line 31 of file TargetDefinition.h.
| TargetDefinition::TargetDefinition | ( | ) |
Definition at line 37 of file TargetDefinition.cpp.
References PlacementShadowDefinition::setDrawShadow(), and shadow_.
| TargetDefinition::~TargetDefinition | ( | ) | [virtual] |
Definition at line 50 of file TargetDefinition.cpp.
| bool TargetDefinition::readXML | ( | XMLNode * | node, | |
| const char * | base | |||
| ) | [virtual] |
Definition at line 54 of file TargetDefinition.cpp.
References border_, boundingsphere_, burnaction_, displaydamage_, displayhardwareshadow_, displayshadow_, driveovertodestroy_, XMLNode::failChildren(), flattendestroy_, XMLNode::getNamedChild(), groups_, ModelID::initFromNode(), life_, modelbrightness_, modelburntId_, modelId_, modelrotation_, modelrotationsnap_, modelscale_, modelscalediff_, name_, nocollision_, nodamageburn_, nofalling_, nofallingdamage_, parachute_, PlacementGroupDefinition::readXML(), PlacementShadowDefinition::readXML(), removeaction_, XMLNode::resurrectRemovedChildren(), shadow_, shield_, and size_.
Referenced by WeaponAddTarget::parseXML(), and PlacementObjectTarget::readXML().
| Target * TargetDefinition::createTarget | ( | unsigned int | playerId, | |
| FixedVector & | position, | |||
| FixedVector & | velocity, | |||
| ScorchedContext & | context, | |||
| RandomGenerator & | generator | |||
| ) |
Definition at line 101 of file TargetDefinition.cpp.
References AccessoryPart::AccessoryWeapon, PlacementGroupDefinition::addToGroups(), fixed::asFloat(), fixed::asInt(), border_, boundingsphere_, burnaction_, S3D::dialogExit(), displaydamage_, displayhardwareshadow_, displayshadow_, driveovertodestroy_, flattendestroy_, S3D::formatStringBuffer(), FixedVector::fromVector(), ScorchedContext::getAccessoryStore(), Accessory::getAction(), Target::getGroup(), Target::getLife(), Model::getMax(), Model::getMin(), FixedVector::getNullVector(), Target::getParachute(), RandomGenerator::getRandFixed(), ScorchedContext::getServerMode(), Target::getShield(), Target::getTargetState(), Accessory::getType(), groups_, ModelStore::instance(), life_, ModelStore::loadModel(), modelbrightness_, modelburntId_, modelId_, modelrotation_, modelrotationsnap_, modelscale_, modelscalediff_, name_, Target::newGame(), nocollision_, nodamageburn_, nofalling_, nofallingdamage_, parachute_, removeaction_, Target::setBorder(), TargetLife::setBoundingSphere(), Target::setBurnAction(), TargetParachute::setCurrentParachute(), TargetShield::setCurrentShield(), Target::setDeathAction(), TargetState::setDisplayDamage(), TargetState::setDisplayHardwareShadow(), TargetState::setDisplayShadow(), TargetState::setDriveOverToDestroy(), TargetState::setFlattenDestroy(), TargetLife::setMaxLife(), TargetState::setNoCollision(), TargetState::setNoDamageBurn(), TargetState::setNoFalling(), TargetState::setNoFallingDamage(), Target::setRenderer(), TargetLife::setRotation(), TargetLife::setSize(), TargetLife::setTargetPosition(), TargetLife::setVelocity(), shield_, size_, and LangStringUtil::strcmp().
Referenced by PlacementObjectTarget::createObject(), and AddTarget::simulate().
| PlacementShadowDefinition& TargetDefinition::getShadow | ( | ) | [inline] |
Definition at line 44 of file TargetDefinition.h.
References shadow_.
Referenced by PlacementObjectTarget::createObject().
| PlacementGroupDefinition& TargetDefinition::getGroups | ( | ) | [inline] |
fixed TargetDefinition::life_ [protected] |
bool TargetDefinition::boundingsphere_ [protected] |
bool TargetDefinition::driveovertodestroy_ [protected] |
bool TargetDefinition::flattendestroy_ [protected] |
bool TargetDefinition::nocollision_ [protected] |
bool TargetDefinition::nodamageburn_ [protected] |
bool TargetDefinition::nofalling_ [protected] |
bool TargetDefinition::displaydamage_ [protected] |
bool TargetDefinition::displayshadow_ [protected] |
bool TargetDefinition::displayhardwareshadow_ [protected] |
bool TargetDefinition::nofallingdamage_ [protected] |
LangString TargetDefinition::name_ [protected] |
std::string TargetDefinition::parachute_ [protected] |
std::string TargetDefinition::shield_ [protected] |
FixedVector TargetDefinition::size_ [protected] |
fixed TargetDefinition::modelscale_ [protected] |
fixed TargetDefinition::modelscalediff_ [protected] |
fixed TargetDefinition::modelrotation_ [protected] |
fixed TargetDefinition::modelbrightness_ [protected] |
fixed TargetDefinition::modelrotationsnap_ [protected] |
fixed TargetDefinition::border_ [protected] |
std::string TargetDefinition::removeaction_ [protected] |
std::string TargetDefinition::burnaction_ [protected] |
ModelID TargetDefinition::modelId_ [protected] |
ModelID TargetDefinition::modelburntId_ [protected] |
PlacementShadowDefinition TargetDefinition::shadow_ [protected] |
Definition at line 67 of file TargetDefinition.h.
Referenced by getShadow(), readXML(), and TargetDefinition().
PlacementGroupDefinition TargetDefinition::groups_ [protected] |
Definition at line 68 of file TargetDefinition.h.
Referenced by createTarget(), getGroups(), and readXML().
1.5.3