Starshatter_Open
Open source Starshatter engine
|
#include <Contact.h>
Public Member Functions | |
Contact () | |
Contact (Ship *s, float p, float a) | |
Contact (Shot *s, float p, float a) | |
virtual | ~Contact () |
int | operator== (const Contact &c) const |
Ship * | GetShip () const |
Shot * | GetShot () const |
Point | Location () const |
double | PasReturn () const |
double | ActReturn () const |
bool | PasLock () const |
bool | ActLock () const |
double | Age () const |
bool | IsProbed () const |
DWORD | AcquisitionTime () const |
int | GetIFF (const Ship *observer) const |
void | GetBearing (const Ship *observer, double &az, double &el, double &r) const |
double | Range (const Ship *observer, double limit=75e3) const |
bool | InFront (const Ship *observer) const |
bool | Threat (const Ship *observer) const |
bool | Visible (const Ship *observer) const |
void | Reset () |
void | Merge (Contact *c) |
void | ClearTrack () |
void | UpdateTrack () |
int | TrackLength () const |
Point | TrackPoint (int i) const |
virtual bool | Update (SimObject *obj) |
virtual const char * | GetObserverName () const |
Public Member Functions inherited from SimObserver | |
virtual | ~SimObserver () |
int | operator== (const SimObserver &o) const |
virtual void | Observe (SimObject *obj) |
virtual void | Ignore (SimObject *obj) |
Static Public Member Functions | |
static const char * | TYPENAME () |
Friends | |
class | Sensor |
Additional Inherited Members | |
Protected Attributes inherited from SimObserver | |
List< SimObject > | observe_list |
Contact::Contact | ( | ) |
Definition at line 34 of file Contact.cpp.
Contact::Contact | ( | Ship * | s, |
float | p, | ||
float | a | ||
) |
Definition at line 41 of file Contact.cpp.
Contact::Contact | ( | Shot * | s, |
float | p, | ||
float | a | ||
) |
Definition at line 49 of file Contact.cpp.
|
virtual |
Definition at line 59 of file Contact.cpp.
bool Contact::ActLock | ( | ) | const |
Definition at line 156 of file Contact.cpp.
double Contact::Age | ( | ) | const |
Definition at line 113 of file Contact.cpp.
void Contact::ClearTrack | ( | ) |
Definition at line 321 of file Contact.cpp.
void Contact::GetBearing | ( | const Ship * | observer, |
double & | az, | ||
double & | el, | ||
double & | r | ||
) | const |
Definition at line 170 of file Contact.cpp.
int Contact::GetIFF | ( | const Ship * | observer | ) | const |
Definition at line 131 of file Contact.cpp.
|
virtual |
Reimplemented from SimObserver.
Definition at line 96 of file Contact.cpp.
bool Contact::InFront | ( | const Ship * | observer | ) | const |
Definition at line 225 of file Contact.cpp.
void Contact::Merge | ( | Contact * | c | ) |
Definition at line 309 of file Contact.cpp.
int Contact::operator== | ( | const Contact & | c | ) | const |
Definition at line 67 of file Contact.cpp.
bool Contact::PasLock | ( | ) | const |
Definition at line 162 of file Contact.cpp.
double Contact::Range | ( | const Ship * | observer, |
double | limit = 75e3 |
||
) | const |
Definition at line 197 of file Contact.cpp.
void Contact::Reset | ( | ) |
Definition at line 295 of file Contact.cpp.
bool Contact::Threat | ( | const Ship * | observer | ) | const |
Definition at line 241 of file Contact.cpp.
Point Contact::TrackPoint | ( | int | i | ) | const |
Definition at line 359 of file Contact.cpp.
|
inlinestatic |
Reimplemented from SimObserver.
|
virtual |
Reimplemented from SimObserver.
Definition at line 81 of file Contact.cpp.
void Contact::UpdateTrack | ( | ) |
Definition at line 329 of file Contact.cpp.
bool Contact::Visible | ( | const Ship * | observer | ) | const |
Definition at line 273 of file Contact.cpp.