Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <bubble_display.h>
Classes | |
struct | AnimationItem |
Public Member Functions | |
BubbleDisplay () | |
void | Draw (const Sensor &, VSSprite *, VSSprite *) |
void | OnDockEnd () |
void | OnJumpBegin () |
void | OnJumpEnd () |
![]() | |
DualDisplayBase () | |
void | OnPauseBegin () |
void | OnPauseEnd () |
![]() | |
virtual | ~Display () |
Protected Types | |
typedef std::vector< float > | ZoomSequence |
typedef std::queue< AnimationItem > | AnimationCollection |
Protected Member Functions | |
void | DrawBackground (const ViewArea &, float) |
void | DrawTrack (const Sensor &, const ViewArea &, const Track &) |
void | DrawTargetMarker (const Vector &, float) |
void | Animate () |
void | PrepareAnimation (const ZoomSequence &) |
![]() | |
float | Jitter (float errorOffset, float errorRange) |
void | Jitter (float errorOffset, float errorRange, Vector &position) |
Protected Attributes | |
const float | innerSphere |
const float | outerSphere |
float | sphereZoom |
float | radarTime |
float | currentTargetMarkerSize |
AnimationCollection | animation |
float | lastAnimationTime |
ZoomSequence | explodeSequence |
ZoomSequence | implodeSequence |
![]() | |
ViewArea | leftRadar |
ViewArea | rightRadar |
bool | isPaused |
RandomEngine | randomEngine |
RandomDistribution | randomDistribution |
RandomGenerator | randomGenerator |
Definition at line 16 of file bubble_display.h.
|
protected |
Definition at line 49 of file bubble_display.h.
|
protected |
Definition at line 28 of file bubble_display.h.
Radar::BubbleDisplay::BubbleDisplay | ( | ) |
Definition at line 38 of file bubble_display.cpp.
References explodeSequence, and implodeSequence.
|
protected |
Definition at line 84 of file bubble_display.cpp.
References animation, lastAnimationTime, radarTime, and sphereZoom.
Referenced by Draw().
|
virtual |
Implements Radar::Display.
Definition at line 97 of file bubble_display.cpp.
References Animate(), currentTargetMarkerSize, DEPTHTEST, DEPTHWRITE, VSSprite::Draw(), DrawBackground(), DrawTrack(), Radar::Sensor::FindTracksInRange(), GetElapsedTime(), GFXDisable(), GFXEnable(), GFXPointSize(), Radar::DualDisplayBase::leftRadar, radarTime, Radar::DualDisplayBase::rightRadar, Radar::ViewArea::SetSprite(), and SMOOTH.
Definition at line 240 of file bubble_display.cpp.
References center, f, g_game, Radar::ViewArea::GetColor(), GFXBegin(), GFXColorf(), GFXEnd(), GFXLINESTRIP, GFXLineWidth(), GFXVertex3f(), Radar::ViewArea::IsActive(), max(), Radar::ViewArea::Scale(), size, Vector, game_data_t::x_resolution, and game_data_t::y_resolution.
Referenced by Draw().
Definition at line 219 of file bubble_display.cpp.
References f, g_game, GFXBegin(), GFXEnd(), GFXLINESTRIP, GFXLineWidth(), GFXVertex3f(), max(), size, game_data_t::x_resolution, and game_data_t::y_resolution.
Referenced by DrawTrack().
|
protected |
Definition at line 144 of file bubble_display.cpp.
References GFXColor::a, Radar::Track::Type::Cargo, currentTargetMarkerSize, DrawTargetMarker(), Radar::Track::ExplodingProgress(), f, Radar::Sensor::GetColor(), anonymous_namespace{bubble_display.cpp}::GetDangerRate(), Radar::Sensor::GetMaxRange(), Radar::Track::GetPosition(), Radar::Track::GetSize(), Radar::Track::GetType(), GFXBegin(), GFXColorf(), GFXEnd(), GFXPOINT, GFXPointSize(), GFXVertexf(), Radar::Track::HasActiveECM(), Radar::Sensor::IdentifyThreat(), innerSphere, Radar::Sensor::InsideNebula(), Radar::ViewArea::IsActive(), Radar::Track::IsExploding(), Radar::Sensor::IsTracking(), Radar::DualDisplayBase::Jitter(), max(), Radar::Track::Type::Nebula, outerSphere, radarTime, Radar::ViewArea::Scale(), sphereZoom, Radar::Sensor::UseThreatAssessment(), and Vector.
Referenced by Draw().
|
virtual |
Reimplemented from Radar::Display.
Definition at line 69 of file bubble_display.cpp.
References explodeSequence, and PrepareAnimation().
|
virtual |
Reimplemented from Radar::Display.
Definition at line 74 of file bubble_display.cpp.
References implodeSequence, and PrepareAnimation().
|
virtual |
Reimplemented from Radar::Display.
Definition at line 79 of file bubble_display.cpp.
References explodeSequence, and PrepareAnimation().
|
protected |
Definition at line 51 of file bubble_display.cpp.
References animation, Radar::BubbleDisplay::AnimationItem::duration, i, and Radar::BubbleDisplay::AnimationItem::sphereZoom.
Referenced by OnDockEnd(), OnJumpBegin(), and OnJumpEnd().
|
protected |
Definition at line 50 of file bubble_display.h.
Referenced by Animate(), and PrepareAnimation().
|
protected |
Definition at line 42 of file bubble_display.h.
Referenced by Draw(), and DrawTrack().
|
protected |
Definition at line 52 of file bubble_display.h.
Referenced by BubbleDisplay(), OnDockEnd(), and OnJumpEnd().
|
protected |
Definition at line 53 of file bubble_display.h.
Referenced by BubbleDisplay(), and OnJumpBegin().
|
protected |
Definition at line 38 of file bubble_display.h.
Referenced by DrawTrack().
|
protected |
Definition at line 51 of file bubble_display.h.
Referenced by Animate().
|
protected |
Definition at line 39 of file bubble_display.h.
Referenced by DrawTrack().
|
protected |
Definition at line 41 of file bubble_display.h.
Referenced by Animate(), Draw(), and DrawTrack().
|
protected |
Definition at line 40 of file bubble_display.h.
Referenced by Animate(), and DrawTrack().