Pioneer
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Static Public Member Functions | List of all members
Sensors Class Reference

#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< RadarContactContactList
 

Public Member Functions

 Sensors (Ship *owner)
 
BodyChooseTarget (TargetingCriteria, const Body *oldTarget)
 
IFF CheckIFF (Body *other)
 
const ContactListGetContacts ()
 
const ContactListGetStaticContacts ()
 
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)
 

Member Typedef Documentation

◆ ContactList

typedef std::list<RadarContact> Sensors::ContactList

Member Enumeration Documentation

◆ IFF

Enumerator
IFF_UNKNOWN 
IFF_NEUTRAL 
IFF_ALLY 
IFF_HOSTILE 

◆ TargetingCriteria

Enumerator
TARGET_NEAREST_HOSTILE 
CYCLE_HOSTILE 

Constructor & Destructor Documentation

◆ Sensors()

Sensors::Sensors ( Ship owner)

Member Function Documentation

◆ CheckIFF()

Sensors::IFF Sensors::CheckIFF ( Body other)
Here is the call graph for this function:

◆ ChooseTarget()

Body * Sensors::ChooseTarget ( TargetingCriteria  crit,
const Body oldTarget 
)
Here is the call graph for this function:

◆ ContactDistanceSort()

bool Sensors::ContactDistanceSort ( const RadarContact a,
const RadarContact b 
)
static

◆ GetContacts()

const ContactList & Sensors::GetContacts ( )
inline

◆ GetStaticContacts()

const ContactList & Sensors::GetStaticContacts ( )
inline

◆ IFFColor()

Color Sensors::IFFColor ( IFF  iff)
static

◆ ResetTrails()

void Sensors::ResetTrails ( )
Here is the call graph for this function:

◆ Update()

void Sensors::Update ( float  time)
Here is the call graph for this function:

◆ UpdateIFF()

void Sensors::UpdateIFF ( Body b)
Here is the call graph for this function:

The documentation for this class was generated from the following files: