Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <track.h>
Classes | |
struct | Relation |
struct | Type |
Public Member Functions | |
const Vector & | GetPosition () const |
float | GetDistance () const |
float | GetSize () const |
Type::Value | GetType () const |
bool | IsExploding () const |
float | ExplodingProgress () const |
bool | HasWeapons () const |
bool | HasTurrets () const |
bool | HasActiveECM () const |
bool | HasLock () const |
bool | HasWeaponLock () const |
Relation::Value | GetRelation () const |
Protected Member Functions | |
Track (Unit *, Unit *) | |
Track (Unit *, Unit *, const Vector &) | |
Track (Unit *, Unit *, const Vector &, float) | |
Type::Value | IdentifyType () const |
Protected Attributes | |
Unit * | player |
Unit * | target |
Vector | position |
float | distance |
Type::Value | type |
Friends | |
class | Sensor |
Definition at line 13 of file track.cpp.
References distance, UnitUtil::getDistance(), IdentifyType(), Unit::LocalCoordinates(), position, and type.
Definition at line 23 of file track.cpp.
References distance, UnitUtil::getDistance(), IdentifyType(), and type.
float Radar::Track::ExplodingProgress | ( | ) | const |
Definition at line 70 of file track.cpp.
References Unit::ExplodingProgress(), IsExploding(), and target.
Referenced by Radar::SphereDisplay::DrawTrack(), Radar::BubbleDisplay::DrawTrack(), and Radar::PlaneDisplay::DrawTrack().
float Radar::Track::GetDistance | ( | ) | const |
Definition at line 46 of file track.cpp.
References distance.
Referenced by Radar::Sensor::InRange().
const Vector & Radar::Track::GetPosition | ( | ) | const |
Definition at line 41 of file track.cpp.
References position.
Referenced by Radar::SphereDisplay::DrawTrack(), Radar::BubbleDisplay::DrawTrack(), and Radar::PlaneDisplay::DrawTrack().
Track::Relation::Value Radar::Track::GetRelation | ( | ) | const |
Definition at line 172 of file track.cpp.
References Radar::Track::Relation::Enemy, Radar::Track::Relation::Friend, Unit::getRelation(), Radar::Track::Relation::Neutral, player, and target.
Referenced by Radar::Sensor::GetColor(), and Radar::Sensor::IdentifyThreat().
float Radar::Track::GetSize | ( | ) | const |
Definition at line 56 of file track.cpp.
References Unit::rSize(), and target.
Referenced by Radar::BubbleDisplay::DrawTrack(), and Radar::PlaneDisplay::DrawTrack().
Track::Type::Value Radar::Track::GetType | ( | ) | const |
Definition at line 51 of file track.cpp.
References type.
Referenced by Radar::SphereDisplay::DrawTrack(), Radar::BubbleDisplay::DrawTrack(), Radar::PlaneDisplay::DrawTrack(), Radar::Sensor::GetColor(), and Radar::Sensor::IdentifyThreat().
bool Radar::Track::HasActiveECM | ( | ) | const |
Definition at line 91 of file track.cpp.
References UnitUtil::getECM(), and target.
Referenced by Radar::SphereDisplay::DrawTrack(), Radar::BubbleDisplay::DrawTrack(), and Radar::PlaneDisplay::DrawTrack().
bool Radar::Track::HasLock | ( | ) | const |
Definition at line 98 of file track.cpp.
References player, target, and Unit::Target().
Referenced by Radar::Sensor::GetColor(), and HasWeaponLock().
bool Radar::Track::HasTurrets | ( | ) | const |
Definition at line 84 of file track.cpp.
References UnitCollection::empty(), Unit::SubUnits, and target.
Referenced by Radar::Sensor::IdentifyThreat().
bool Radar::Track::HasWeaponLock | ( | ) | const |
Definition at line 106 of file track.cpp.
References HasLock(), target, and Unit::TargetLocked().
Referenced by Radar::Sensor::IdentifyThreat().
bool Radar::Track::HasWeapons | ( | ) | const |
Definition at line 77 of file track.cpp.
References Unit::GetNumMounts(), and target.
Referenced by Radar::Sensor::IdentifyThreat().
|
protected |
Definition at line 113 of file track.cpp.
References Radar::Track::Type::Asteroid, ASTEROIDPTR, Radar::Track::Type::Base, BUILDINGPTR, Radar::Track::Type::CapitalShip, Radar::Track::Type::Cargo, Radar::Track::Type::DeadPlanet, ENHANCEMENTPTR, Unit::faction, FactionUtil::GetUpgradeFaction(), Planet::hasLights(), Planet::isAtmospheric(), Unit::IsBase(), UnitUtil::isCapitalShip(), Unit::isJumppoint(), Unit::isUnit(), Radar::Track::Type::JumpPoint, Radar::Track::Type::Missile, MISSILEPTR, Radar::Track::Type::Nebula, NEBULAPTR, Radar::Track::Type::Planet, PLANETPTR, Radar::Track::Type::Ship, Radar::Track::Type::Star, target, UNITPTR, and Radar::Track::Type::Unknown.
Referenced by Track().
bool Radar::Track::IsExploding | ( | ) | const |
Definition at line 63 of file track.cpp.
References Unit::IsExploding(), and target.
Referenced by Radar::SphereDisplay::DrawTrack(), Radar::BubbleDisplay::DrawTrack(), Radar::PlaneDisplay::DrawTrack(), ExplodingProgress(), and Radar::Sensor::IdentifyThreat().
|
protected |
Definition at line 92 of file track.h.
Referenced by GetDistance(), and Track().
|
protected |
Definition at line 89 of file track.h.
Referenced by GetRelation(), and HasLock().
|
protected |
Definition at line 91 of file track.h.
Referenced by GetPosition(), and Track().
|
protected |
Definition at line 90 of file track.h.
Referenced by ExplodingProgress(), GetRelation(), GetSize(), HasActiveECM(), HasLock(), HasTurrets(), HasWeaponLock(), HasWeapons(), IdentifyType(), IsExploding(), and Radar::Sensor::IsTracking().
|
protected |