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{sphere_display.cpp} Namespace Reference

Functions

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

Function Documentation

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

Definition at line 13 of file sphere_display.cpp.

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

14 {
15  using namespace Radar;
16 
17  switch (threat)
18  {
20  return 20.0; // Fast pulsation
21 
23  return 7.5; // Slow pulsation
24 
25  default:
26  return 0.0; // No pulsation
27  }
28 }