TargetRendererImplTarget Class Reference

#include <TargetRendererImplTarget.h>

Inheritance diagram for TargetRendererImplTarget:

TargetRendererImpl TargetRenderer

List of all members.

Public Member Functions

 TargetRendererImplTarget (Target *target, ModelID model, ModelID burntModel, float scale, float color)
virtual ~TargetRendererImplTarget ()
virtual void drawParticle (float distance)
virtual void simulate (float frameTime)
void render (float distance)
void renderShadow (float distance)
void render2D (float distance)
virtual void shieldHit ()
virtual void fired ()
virtual void targetBurnt ()
GLWTargetTipsgetTips ()
ModelIDgetModelId ()

Protected Attributes

ModelID modelId_
ModelID burntModelId_
Targettarget_
ModelRendererSimulatormodelRenderer_
ModelRendererSimulatorburntModelRenderer_
bool burnt_
float shieldHit_
float totalTime_
float scale_
float color_
GLWTargetTips targetTips_


Detailed Description

Definition at line 29 of file TargetRendererImplTarget.h.


Constructor & Destructor Documentation

TargetRendererImplTarget::TargetRendererImplTarget ( Target target,
ModelID  model,
ModelID  burntModel,
float  scale,
float  color 
)

Definition at line 34 of file TargetRendererImplTarget.cpp.

References burntModelId_, burntModelRenderer_, ModelID::getType(), ModelRendererStore::instance(), modelId_, modelRenderer_, and TargetRendererImpl::tree_.

TargetRendererImplTarget::~TargetRendererImplTarget (  )  [virtual]

Definition at line 57 of file TargetRendererImplTarget.cpp.

References burntModelRenderer_, and modelRenderer_.


Member Function Documentation

void TargetRendererImplTarget::drawParticle ( float  distance  )  [virtual]

Implements TargetRendererImpl.

Definition at line 154 of file TargetRendererImplTarget.cpp.

References TargetRendererImpl::drawParachute(), TargetRendererImpl::drawShield(), TargetRendererImpl::getVisible(), shieldHit_, and totalTime_.

void TargetRendererImplTarget::simulate ( float  frameTime  )  [virtual]

Implements TargetRendererImpl.

Definition at line 63 of file TargetRendererImplTarget.cpp.

References burnt_, burntModelRenderer_, modelRenderer_, shieldHit_, ModelRendererSimulator::simulate(), and totalTime_.

void TargetRendererImplTarget::render ( float  distance  ) 

Definition at line 76 of file TargetRendererImplTarget.cpp.

References ShadowMap::addCircle(), fixed::asFloat(), burnt_, burntModelRenderer_, TargetRendererImpl::cachedMatrix_, color_, TargetRendererImpl::createParticle(), ModelRendererSimulator::drawBottomAligned(), TargetState::getDisplayShadow(), TargetLife::getFloatPosition(), TargetLife::getFloatRotMatrix(), Target::getLife(), Landscape::getShadowMap(), TargetLife::getSize(), TargetRendererImpl::getTargetFade(), TargetRendererImpl::getTargetSize(), Target::getTargetState(), glColor4f(), glMultMatrixf(), glPopMatrix(), glPushMatrix(), Matrix16::identity(), Landscape::instance(), TargetRendererImpl::matrixCached_, FixedVector::Max(), modelRenderer_, Matrix16::multiply(), Matrix16::scale(), scale_, ShadowMap::shouldAddShadow(), TargetRendererImpl::storeTarget2DPos(), target_, Matrix16::translate(), and TargetRendererImpl::tree_.

Referenced by drawTargets().

void TargetRendererImplTarget::renderShadow ( float  distance  ) 

Definition at line 132 of file TargetRendererImplTarget.cpp.

References burnt_, burntModelRenderer_, ModelRendererSimulator::drawBottomAligned(), GLCameraFrustum::FrustrumRed, TargetLife::getFloatPosition(), TargetLife::getFloatRotMatrix(), Target::getLife(), glMultMatrixf(), glPopMatrix(), glPushMatrix(), glScalef(), glTranslatef(), GLCameraFrustum::instance(), modelRenderer_, scale_, and target_.

Referenced by drawTargetShadows().

void TargetRendererImplTarget::render2D ( float  distance  ) 

Definition at line 125 of file TargetRendererImplTarget.cpp.

References GLWToolTip::addToolTip(), GLWToolTip::instance(), TargetRendererImpl::posX_, TargetRendererImpl::posY_, GLWTargetTips::targetTip, and targetTips_.

Referenced by drawTargets2D().

void TargetRendererImplTarget::shieldHit (  )  [virtual]

Implements TargetRenderer.

Definition at line 162 of file TargetRendererImplTarget.cpp.

References shieldHit_.

void TargetRendererImplTarget::fired (  )  [virtual]

Implements TargetRenderer.

Definition at line 167 of file TargetRendererImplTarget.cpp.

void TargetRendererImplTarget::targetBurnt (  )  [virtual]

Implements TargetRenderer.

Definition at line 171 of file TargetRendererImplTarget.cpp.

References burnt_.

GLWTargetTips& TargetRendererImplTarget::getTips (  )  [inline]

Definition at line 51 of file TargetRendererImplTarget.h.

References targetTips_.

ModelID& TargetRendererImplTarget::getModelId (  )  [inline]

Definition at line 52 of file TargetRendererImplTarget.h.

References modelId_.

Referenced by TankMenus::showTargetDetails().


Member Data Documentation

ModelID TargetRendererImplTarget::modelId_ [protected]

Definition at line 55 of file TargetRendererImplTarget.h.

Referenced by getModelId(), and TargetRendererImplTarget().

ModelID TargetRendererImplTarget::burntModelId_ [protected]

Definition at line 55 of file TargetRendererImplTarget.h.

Referenced by TargetRendererImplTarget().

Target* TargetRendererImplTarget::target_ [protected]

Reimplemented from TargetRendererImpl.

Definition at line 56 of file TargetRendererImplTarget.h.

Referenced by render(), and renderShadow().

ModelRendererSimulator* TargetRendererImplTarget::modelRenderer_ [protected]

Definition at line 57 of file TargetRendererImplTarget.h.

Referenced by render(), renderShadow(), simulate(), TargetRendererImplTarget(), and ~TargetRendererImplTarget().

ModelRendererSimulator* TargetRendererImplTarget::burntModelRenderer_ [protected]

Definition at line 58 of file TargetRendererImplTarget.h.

Referenced by render(), renderShadow(), simulate(), TargetRendererImplTarget(), and ~TargetRendererImplTarget().

bool TargetRendererImplTarget::burnt_ [protected]

Definition at line 59 of file TargetRendererImplTarget.h.

Referenced by render(), renderShadow(), simulate(), and targetBurnt().

float TargetRendererImplTarget::shieldHit_ [protected]

Definition at line 60 of file TargetRendererImplTarget.h.

Referenced by drawParticle(), shieldHit(), and simulate().

float TargetRendererImplTarget::totalTime_ [protected]

Definition at line 60 of file TargetRendererImplTarget.h.

Referenced by drawParticle(), and simulate().

float TargetRendererImplTarget::scale_ [protected]

Definition at line 61 of file TargetRendererImplTarget.h.

Referenced by render(), and renderShadow().

float TargetRendererImplTarget::color_ [protected]

Definition at line 61 of file TargetRendererImplTarget.h.

Referenced by render().

GLWTargetTips TargetRendererImplTarget::targetTips_ [protected]

Definition at line 62 of file TargetRendererImplTarget.h.

Referenced by getTips(), and render2D().


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