#include <ShieldRound.h>

Public Member Functions | |
| ShieldRound () | |
| virtual | ~ShieldRound () |
| virtual bool | parseXML (AccessoryCreateContext &context, XMLNode *accessoryNode) |
| fixed | getActualRadius () |
| bool | getHalfShield () |
| bool | getGlow () |
| virtual bool | inShield (FixedVector &offset) |
| virtual bool | tankInShield (FixedVector &offset) |
| virtual ShieldType | getShieldType () |
| virtual bool | getRound () |
| virtual fixed | getBoundingSize () |
| REGISTER_ACCESSORY_HEADER (ShieldRound, AccessoryPart::AccessoryShield) | |
Protected Attributes | |
| fixed | radius_ |
| bool | halfShield_ |
| bool | glow_ |
Definition at line 26 of file ShieldRound.h.
| ShieldRound::ShieldRound | ( | ) |
Definition at line 28 of file ShieldRound.cpp.
| ShieldRound::~ShieldRound | ( | ) | [virtual] |
Definition at line 33 of file ShieldRound.cpp.
| bool ShieldRound::parseXML | ( | AccessoryCreateContext & | context, | |
| XMLNode * | accessoryNode | |||
| ) | [virtual] |
Reimplemented from Shield.
Reimplemented in ShieldRoundMag, and ShieldRoundReflective.
Definition at line 67 of file ShieldRound.cpp.
References XMLNode::getNamedChild(), glow_, halfShield_, Shield::parseXML(), radius_, and XMLNode::returnError().
Referenced by ShieldRoundReflective::parseXML(), and ShieldRoundMag::parseXML().
| fixed ShieldRound::getActualRadius | ( | ) | [inline] |
Definition at line 36 of file ShieldRound.h.
References radius_.
Referenced by TargetRendererImpl::drawShield(), and TargetSpace::getSquares().
| bool ShieldRound::getHalfShield | ( | ) | [inline] |
Definition at line 37 of file ShieldRound.h.
References halfShield_.
Referenced by TargetRendererImpl::drawShield().
| bool ShieldRound::getGlow | ( | ) | [inline] |
Definition at line 38 of file ShieldRound.h.
References glow_.
Referenced by TargetRendererImpl::drawShield().
| bool ShieldRound::inShield | ( | FixedVector & | offset | ) | [virtual] |
Implements Shield.
Definition at line 42 of file ShieldRound.cpp.
References FixedVector::dotP(), halfShield_, FixedVector::Magnitude(), FixedVector::Normalize(), and radius_.
| bool ShieldRound::tankInShield | ( | FixedVector & | offset | ) | [virtual] |
Implements Shield.
Definition at line 58 of file ShieldRound.cpp.
References FixedVector::Magnitude(), and radius_.
| Shield::ShieldType ShieldRound::getShieldType | ( | ) | [virtual] |
Implements Shield.
Reimplemented in ShieldRoundMag, and ShieldRoundReflective.
Definition at line 37 of file ShieldRound.cpp.
References Shield::ShieldTypeRoundNormal.
| virtual bool ShieldRound::getRound | ( | ) | [inline, virtual] |
| virtual fixed ShieldRound::getBoundingSize | ( | ) | [inline, virtual] |
| ShieldRound::REGISTER_ACCESSORY_HEADER | ( | ShieldRound | , | |
| AccessoryPart::AccessoryShield | ||||
| ) |
fixed ShieldRound::radius_ [protected] |
Definition at line 49 of file ShieldRound.h.
Referenced by getActualRadius(), getBoundingSize(), inShield(), parseXML(), and tankInShield().
bool ShieldRound::halfShield_ [protected] |
Definition at line 50 of file ShieldRound.h.
Referenced by getHalfShield(), inShield(), and parseXML().
bool ShieldRound::glow_ [protected] |
1.5.3