Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
anonymous_namespace{bubble_display.cpp} Namespace Reference

Functions

float GetDangerRate (Radar::Sensor::ThreatLevel::Value threat)
 

Function Documentation

float anonymous_namespace{bubble_display.cpp}::GetDangerRate ( Radar::Sensor::ThreatLevel::Value  threat)

Definition at line 16 of file bubble_display.cpp.

References Radar::Sensor::ThreatLevel::High, and Radar::Sensor::ThreatLevel::Medium.

Referenced by Radar::SphereDisplay::DrawTrack(), Radar::BubbleDisplay::DrawTrack(), and Radar::PlaneDisplay::DrawTrack().

17 {
18  using namespace Radar;
19 
20  switch (threat)
21  {
23  return 20.0; // Fast pulsation
24 
26  return 7.5; // Slow pulsation
27 
28  default:
29  return 0.0; // No pulsation
30  }
31 }