![]() |
Pioneer
|
#include <Sensors.h>
Classes | |
| struct | RadarContact |
Public Types | |
| enum | IFF { IFF_UNKNOWN , IFF_NEUTRAL , IFF_ALLY , IFF_HOSTILE } |
| enum | TargetingCriteria { TARGET_NEAREST_HOSTILE , CYCLE_HOSTILE } |
| typedef std::list< RadarContact > | ContactList |
Public Member Functions | |
| Sensors (Ship *owner) | |
| Body * | ChooseTarget (TargetingCriteria, const Body *oldTarget) |
| IFF | CheckIFF (Body *other) |
| const ContactList & | GetContacts () |
| const ContactList & | GetStaticContacts () |
| void | Update (float time) |
| void | UpdateIFF (Body *) |
| void | ResetTrails () |
Static Public Member Functions | |
| static Color | IFFColor (IFF) |
| static bool | ContactDistanceSort (const RadarContact &a, const RadarContact &b) |
| typedef std::list<RadarContact> Sensors::ContactList |
| enum Sensors::IFF |
| Sensors::Sensors | ( | Ship * | owner | ) |
| Sensors::IFF Sensors::CheckIFF | ( | Body * | other | ) |

| Body * Sensors::ChooseTarget | ( | TargetingCriteria | crit, |
| const Body * | oldTarget | ||
| ) |

|
static |
|
inline |
|
inline |
| void Sensors::ResetTrails | ( | ) |

| void Sensors::Update | ( | float | time | ) |

| void Sensors::UpdateIFF | ( | Body * | b | ) |
