Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include "cmd/unit_generic.h"
#include "cmd/unit_util.h"
#include "universe_util.h"
#include "config_xml.h"
Go to the source code of this file.
Functions | |
float | max_allowable_travel_time () |
bool | DistanceWarrantsWarpTo (Unit *parent, float dist, bool following) |
bool | DistanceWarrantsTravelTo (Unit *parent, float dist, bool following) |
bool | TargetWorthPursuing (Unit *parent, Unit *target) |
static void | ActuallyWarpTo (Unit *parent, const QVector &tarpos, Vector tarvel, Unit *MatchSpeed=NULL) |
void | WarpToP (Unit *parent, Unit *target, bool following) |
void | WarpToP (Unit *parent, const QVector &target, float radius, bool following) |
|
static |
Definition at line 57 of file warpto.cpp.
References Unit::computer, Unit::cumulative_transformation_matrix, Matrix::getR(), VegaConfig::getVariable(), Unit::GetVelocity(), Unit::graphicOptions, Unit::graphic_options::InWarp, XMLSupport::parse_bool(), XMLSupport::parse_float(), Unit::Position(), UnitContainer::SetUnit(), Vector, Unit::Computer::velocity_ref, vs_config, Unit::WarpEnergyData(), and Unit::graphic_options::WarpRamping.
Referenced by WarpToP().
Definition at line 41 of file warpto.cpp.
References Unit::GetComputerData(), Unit::GetVelocityDifficultyMult(), max_allowable_travel_time(), and Unit::Computer::max_combat_speed.
Referenced by Orders::DockingOps::Movement().
Definition at line 12 of file warpto.cpp.
References Unit::GetComputerData(), VegaConfig::getVariable(), Unit::GetVelocityDifficultyMult(), Unit::GetWarpVelocity(), max_allowable_travel_time(), Unit::Computer::max_combat_speed, XMLSupport::parse_bool(), XMLSupport::parse_float(), SIMULATION_ATOM, and vs_config.
Referenced by Orders::AutoLongHaul::Execute(), and WarpToP().
float max_allowable_travel_time | ( | ) |
Definition at line 6 of file warpto.cpp.
References VegaConfig::getVariable(), XMLSupport::parse_float(), and vs_config.
Referenced by DistanceWarrantsTravelTo(), and DistanceWarrantsWarpTo().
Definition at line 88 of file warpto.cpp.
References ActuallyWarpTo(), Unit::AutoPilotTo(), DistanceWarrantsWarpTo(), UnitUtil::getSignificantDistance(), VegaConfig::getVariable(), Unit::GetVelocity(), Unit::graphicOptions, Unit::graphic_options::InWarp, XMLSupport::parse_bool(), Unit::Position(), TargetWorthPursuing(), and vs_config.
Referenced by Orders::AggressiveAI::Execute(), Orders::FormUp::Execute(), Orders::FormUpToOwner::Execute(), FlyTo::Execute(), Orders::AggressiveAI::ExecuteNoEnemies(), and Orders::DockingOps::Movement().
Definition at line 107 of file warpto.cpp.
References ActuallyWarpTo(), DistanceWarrantsWarpTo(), VegaConfig::getVariable(), Unit::graphicOptions, Unit::graphic_options::InWarp, Magnitude(), XMLSupport::parse_bool(), Unit::Position(), QVector, Unit::rSize(), and vs_config.