Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Contact Class Reference

#include <Contact.h>

Inheritance diagram for Contact:
SimObserver

List of all members.

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
ShipGetShip () const
ShotGetShot () 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< SimObjectobserve_list

Detailed Description

Definition at line 28 of file Contact.h.


Constructor & Destructor Documentation

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.

Contact::~Contact ( )
virtual

Definition at line 59 of file Contact.cpp.


Member Function Documentation

DWORD Contact::AcquisitionTime ( ) const
inline

Definition at line 53 of file Contact.h.

bool Contact::ActLock ( ) const

Definition at line 156 of file Contact.cpp.

double Contact::ActReturn ( ) const
inline

Definition at line 47 of file Contact.h.

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.

const char * Contact::GetObserverName ( ) const
virtual

Reimplemented from SimObserver.

Definition at line 96 of file Contact.cpp.

Ship* Contact::GetShip ( ) const
inline

Definition at line 42 of file Contact.h.

Shot* Contact::GetShot ( ) const
inline

Definition at line 43 of file Contact.h.

bool Contact::InFront ( const Ship observer) const

Definition at line 225 of file Contact.cpp.

bool Contact::IsProbed ( ) const
inline

Definition at line 51 of file Contact.h.

Point Contact::Location ( ) const
inline

Definition at line 44 of file Contact.h.

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::PasReturn ( ) const
inline

Definition at line 46 of file Contact.h.

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.

int Contact::TrackLength ( ) const
inline

Definition at line 68 of file Contact.h.

Point Contact::TrackPoint ( int  i) const

Definition at line 359 of file Contact.cpp.

static const char* Contact::TYPENAME ( )
inlinestatic

Reimplemented from SimObserver.

Definition at line 33 of file Contact.h.

bool Contact::Update ( SimObject obj)
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.


Friends And Related Function Documentation

friend class Sensor
friend

Definition at line 30 of file Contact.h.


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