Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <unit_generic.h>
Classes | |
class | RADARLIM |
Public Member Functions | |
float | max_speed () const |
float | max_ab_speed () const |
Computer () | |
The computer holds all data in the navigation computer of the current unit It is outside modifyable with GetComputerData() and holds only volatile Information inside containers so that destruction of containers will not result in segfaults. Maximum speeds and turning restrictions are merely facts of the computer and have nothing to do with the limitations of the physical nature of space combat
Definition at line 569 of file unit_generic.h.
|
inline |
Definition at line 665 of file unit_generic.h.
float Unit::Computer::max_ab_speed | ( | ) | const |
Definition at line 3323 of file unit_generic.cpp.
References VegaConfig::getVariable(), XMLSupport::parse_float(), and vs_config.
Referenced by FlyByWire::Afterburn(), BarrelRoll(), EvadeWavy(), Orders::MoveToParent::Execute(), UnitUtil::maxAfterburnerSpeed(), and showUnitStats().
float Unit::Computer::max_speed | ( | ) | const |
Definition at line 3317 of file unit_generic.cpp.
References VegaConfig::getVariable(), XMLSupport::parse_float(), and vs_config.
Referenced by FlyByWire::Accel(), BarrelRoll(), EvadeWavy(), FlyByJoystick::Execute(), Orders::AggressiveAI::Execute(), Orders::MoveToParent::Execute(), FlyByWire::Execute(), GameCockpit::LookupUnitStat(), FlyByWire::MatchSpeed(), UnitUtil::maxSpeed(), ShipCommands::setkps(), showUnitStats(), FlyByWire::Stop(), FlyByWire::ThrustFront(), FlyByWire::ThrustRight(), and FlyByWire::ThrustUp().
bool Unit::Computer::combat_mode |
Definition at line 664 of file unit_generic.h.
Referenced by FlyByJoystick::Execute(), Orders::AutoLongHaul::Execute(), Unit::Init(), and useJitteryAutopilot().
bool Unit::Computer::ecmactive |
Definition at line 633 of file unit_generic.h.
Referenced by FireKeyboard::Execute(), UnitUtil::getECM(), Unit::Init(), and GameCockpit::LookupUnitStat().
bool Unit::Computer::force_velocity_ref |
Definition at line 642 of file unit_generic.h.
bool Unit::Computer::itts |
Definition at line 662 of file unit_generic.h.
Referenced by ZoneMgr::addDamage(), Unit::Init(), Unit::LoadRow(), Orders::FireAt::ShouldFire(), showUnitStats(), Unit::UpAndDownGrade(), and Unit::WriteUnitString().
float Unit::Computer::max_combat_ab_speed |
Definition at line 649 of file unit_generic.h.
Referenced by Orders::AutoLongHaul::Execute(), Unit::Init(), Unit::LoadRow(), GameCockpit::LookupUnitStat(), Mount::PhysicsAlignedFire(), Unit::UpAndDownGrade(), useJitteryAutopilot(), and Unit::WriteUnitString().
float Unit::Computer::max_combat_speed |
Definition at line 648 of file unit_generic.h.
Referenced by DistanceWarrantsTravelTo(), DistanceWarrantsWarpTo(), Unit::Init(), Unit::LoadRow(), GameCockpit::LookupUnitStat(), Mount::PhysicsAlignedFire(), Unit::UpAndDownGrade(), and Unit::WriteUnitString().
float Unit::Computer::max_pitch_down |
Definition at line 655 of file unit_generic.h.
Referenced by ZoneMgr::addDamage(), Orders::ChangeHeading::Execute(), Unit::Init(), Unit::LoadRow(), FlyByWire::Up(), Unit::UpAndDownGrade(), and Unit::WriteUnitString().
float Unit::Computer::max_pitch_up |
Definition at line 656 of file unit_generic.h.
Referenced by ZoneMgr::addDamage(), CheckAccessory(), Orders::ChangeHeading::Execute(), Unit::Init(), Unit::LoadRow(), showUnitStats(), FlyByWire::Up(), Unit::UpAndDownGrade(), and Unit::WriteUnitString().
float Unit::Computer::max_roll_left |
Definition at line 657 of file unit_generic.h.
Referenced by ZoneMgr::addDamage(), Unit::Init(), Unit::LoadRow(), FlyByWire::RollRight(), RollRight(), RollRightHard(), Unit::UpAndDownGrade(), and Unit::WriteUnitString().
float Unit::Computer::max_roll_right |
Definition at line 658 of file unit_generic.h.
Referenced by ZoneMgr::addDamage(), CheckAccessory(), Unit::Init(), Unit::LoadRow(), RollLeft(), RollLeftHard(), FlyByWire::RollRight(), showUnitStats(), Unit::UpAndDownGrade(), and Unit::WriteUnitString().
float Unit::Computer::max_yaw_left |
Definition at line 653 of file unit_generic.h.
Referenced by ZoneMgr::addDamage(), Orders::ChangeHeading::Execute(), Unit::Init(), Unit::LoadRow(), FlyByWire::Right(), Unit::UpAndDownGrade(), and Unit::WriteUnitString().
float Unit::Computer::max_yaw_right |
Definition at line 654 of file unit_generic.h.
Referenced by ZoneMgr::addDamage(), CheckAccessory(), Orders::ChangeHeading::Execute(), Unit::Init(), Unit::LoadRow(), FlyByWire::Right(), showUnitStats(), Unit::UpAndDownGrade(), and Unit::WriteUnitString().
Vector Unit::Computer::NavPoint |
Definition at line 635 of file unit_generic.h.
Referenced by VDU::Draw(), and Unit::Init().
class Unit::Computer::RADARLIM Unit::Computer::radar |
Referenced by Radar::CollectRadarTracks::acquire(), ZoneMgr::addDamage(), ZoneMgr::broadcastSnapshots(), ChooseNavPoint(), GameUnit< UnitType >::Draw(), FireKeyboard::Execute(), Radar::Sensor::GetLockCone(), Radar::Sensor::GetMaxCone(), Radar::Sensor::GetMaxRange(), CommunicatingAI::GetRandomUnit(), Unit::Init(), Unit::LoadRow(), Nearby(), CommunicatingAI::RandomInitiateCommunication(), showUnitStats(), Unit::TargetLocked(), Unit::UpAndDownGrade(), Radar::Sensor::UseFriendFoe(), Radar::Sensor::UseObjectRecognition(), Radar::Sensor::UseThreatAssessment(), and Unit::WriteUnitString().
float Unit::Computer::set_speed |
Definition at line 646 of file unit_generic.h.
Referenced by FlyByWire::Accel(), FlyByWire::Afterburn(), FlyByJoystick::Execute(), FlyByWire::Execute(), Unit::Init(), GameCockpit::LookupUnitStat(), FlyByWire::MatchSpeed(), ShipCommands::setkps(), UnitUtil::setSpeed(), and FlyByWire::Stop().
unsigned char Unit::Computer::slide_end |
Definition at line 661 of file unit_generic.h.
Referenced by Unit::Init(), Unit::LoadRow(), FlyByKeyboard::reduce_axis(), and Unit::WriteUnitString().
unsigned char Unit::Computer::slide_start |
Definition at line 660 of file unit_generic.h.
Referenced by FlyByKeyboard::clamp_axis(), Unit::Init(), Unit::LoadRow(), and Unit::WriteUnitString().
UnitContainer Unit::Computer::target |
Definition at line 637 of file unit_generic.h.
Referenced by DockedScript(), VDU::Draw(), GameCockpit::Draw(), NetClient::targetRequest(), and TryDock().
UnitContainer Unit::Computer::threat |
Definition at line 639 of file unit_generic.h.
Referenced by Unit::Init(), and GameCockpit::LookupUnitStat().
float Unit::Computer::threatlevel |
Definition at line 644 of file unit_generic.h.
Referenced by Unit::Init(), Orders::AggressiveAI::ProcessLogicItem(), and Unit::ResetThreatLevel().
UnitContainer Unit::Computer::velocity_ref |
Definition at line 641 of file unit_generic.h.
Referenced by ActuallyWarpTo(), GameCockpit::LookupUnitStat(), and Mount::PhysicsAlignedFire().