ShieldRound Class Reference

#include <ShieldRound.h>

Inheritance diagram for ShieldRound:

Shield AccessoryPart ShieldRoundMag ShieldRoundReflective

List of all members.

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_


Detailed Description

Definition at line 26 of file ShieldRound.h.


Constructor & Destructor Documentation

ShieldRound::ShieldRound (  ) 

Definition at line 28 of file ShieldRound.cpp.

ShieldRound::~ShieldRound (  )  [virtual]

Definition at line 33 of file ShieldRound.cpp.


Member Function Documentation

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]

Implements Shield.

Definition at line 43 of file ShieldRound.h.

virtual fixed ShieldRound::getBoundingSize (  )  [inline, virtual]

Implements Shield.

Definition at line 44 of file ShieldRound.h.

References radius_.

ShieldRound::REGISTER_ACCESSORY_HEADER ( ShieldRound  ,
AccessoryPart::AccessoryShield   
)


Member Data Documentation

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]

Definition at line 51 of file ShieldRound.h.

Referenced by getGlow(), and parseXML().


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