Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <flightgroup.h>
Public Member Functions | |
void | Decrement (Unit *trashed) |
Flightgroup () | |
void | Init (Flightgroup *fg, const std::string &name, const std::string &type, const std::string &faction, const std::string &order, int num_ships, int num_waves, Mission *mis) |
Flightgroup (Flightgroup &other) | |
Flightgroup & | operator= (Flightgroup &other) |
~Flightgroup () | |
Static Public Member Functions | |
static Flightgroup * | newFlightgroup (const std::string &name, const std::string &type, const std::string &faction, const std::string &order, int num_ships, int num_waves, const std::string &texname, const std::string &alphname, class Mission *mis) |
Public Attributes | |
UnitContainer | leader |
UnitContainer | target |
int | leader_decision |
Texture * | squadLogo |
std::string | directive |
std::string | name |
std::string | type |
std::string | ainame |
std::string | faction |
int | flightgroup_nr |
int | nr_ships |
QVector | pos |
int | nr_ships_left |
int | nr_waves_left |
vsUMap< std::string, std::string > | ordermap |
std::vector< class varInst * > * | orderlist |
Definition at line 12 of file flightgroup.h.
|
inline |
Definition at line 50 of file flightgroup.h.
References flightgroup_nr, leader_decision, nr_ships, nr_ships_left, nr_waves_left, orderlist, and squadLogo.
Referenced by newFlightgroup().
|
inline |
Definition at line 88 of file flightgroup.h.
Flightgroup::~Flightgroup | ( | ) |
Definition at line 30 of file flightgroup.cpp.
References squadLogo.
|
inline |
Definition at line 34 of file flightgroup.h.
References UnitContainer::GetUnit(), leader, nr_ships, nr_ships_left, and UnitContainer::SetUnit().
Referenced by FireKeyboard::JoinFg(), and UnitUtil::switchFg().
|
inline |
Definition at line 59 of file flightgroup.h.
References Mission::AddFlightgroup(), ainame, directive, faction, leader, mission, name, nr_ships, nr_ships_left, nr_waves_left, target, and type.
Referenced by newFlightgroup().
|
static |
Definition at line 7 of file flightgroup.cpp.
References Mission::findFlightgroup(), Flightgroup(), Init(), MIPMAP, squadLogo, and BaseUtil::Texture().
Referenced by UniverseUtil::launchJumppoint(), UnitFactory::parseUnitBuffer(), Mount::PhysicsAlignedFire(), and UnitUtil::switchFg().
Flightgroup & Flightgroup::operator= | ( | Flightgroup & | other) |
Definition at line 36 of file flightgroup.cpp.
References Texture::Clone(), and squadLogo.
std::string Flightgroup::ainame |
Definition at line 24 of file flightgroup.h.
Referenced by Mission::call_unit_launch(), createObjects(), Init(), LoadMission(), and UnitUtil::switchFg().
std::string Flightgroup::directive |
Definition at line 21 of file flightgroup.h.
Referenced by CommunicatingAI::AdjustRelationTo(), AllUnitsCloseAndEngage(), Orders::FireAt::ChooseTargets(), UnitUtil::getFgDirectiveCR(), Init(), LeadMe(), Mount::PhysicsAlignedFire(), Orders::FireAt::PossiblySwitchTarget(), Orders::AggressiveAI::ProcessCurrentFgDirective(), Orders::AggressiveAI::ReCommandWing(), UnitUtil::setFgDirective(), and GameUnit< UnitType >::TransferUnitToSystem().
std::string Flightgroup::faction |
Definition at line 25 of file flightgroup.h.
Referenced by Mission::call_unit_launch(), createObjects(), Mission::DirectorShipDestroyed(), Init(), and LoadMission().
int Flightgroup::flightgroup_nr |
Definition at line 26 of file flightgroup.h.
Referenced by Mission::AddFlightgroup(), Flightgroup(), NetClient::Respawn(), and Cockpit::Update().
UnitContainer Flightgroup::leader |
Definition at line 17 of file flightgroup.h.
Referenced by Unit::AutoPilotToErrorMessage(), Mission::call_unit_launch(), Decrement(), UnitUtil::getFlightgroupLeader(), Init(), LeadMe(), Orders::AggressiveAI::ProcessCurrentFgDirective(), Orders::AggressiveAI::ReCommandWing(), UnitUtil::setFlightgroupLeader(), Orders::FormUp::SetParent(), Orders::FaceDirection::SetParent(), GameUnit< UnitType >::TransferUnitToSystem(), and WARPENERGYMULTIPLIER().
int Flightgroup::leader_decision |
Definition at line 19 of file flightgroup.h.
Referenced by Flightgroup().
std::string Flightgroup::name |
Definition at line 22 of file flightgroup.h.
Referenced by UnitFactory::addAsteroidBuffer(), NetClient::AddClientObject(), UnitFactory::addNebulaBuffer(), UnitFactory::addUnitBuffer(), CommunicatingAI::AdjustRelationTo(), createObjects(), Mission::DirectorShipDestroyed(), displayUnitInfo(), Pilot::DoHit(), DoSpeech(), Pilot::getAnger(), UnitUtil::getFlightgroupNameCR(), getUnitNameAndFgNoBase(), Init(), Unit::InRange(), CriteriaContains::isDestination(), CriteriaOwnedBy::isDestination(), CriteriaSector::isDestination(), LoadMission(), Cockpit::MakeBaseName(), MakeUnitXMLPretty(), Mount::PhysicsAlignedFire(), Order::ProcessCommunicationMessages(), and Orders::AggressiveAI::ProcessCurrentFgDirective().
int Flightgroup::nr_ships |
Definition at line 27 of file flightgroup.h.
Referenced by Planet::beginElement(), buyShip(), Mission::call_unit_launch(), createObjects(), Decrement(), Mission::DirectorShipDestroyed(), Unit::EjectCargo(), Flightgroup(), Init(), FireKeyboard::JoinFg(), LoadMission(), Mount::PhysicsAlignedFire(), NetClient::Respawn(), and Cockpit::Update().
int Flightgroup::nr_ships_left |
Definition at line 29 of file flightgroup.h.
Referenced by buyShip(), Decrement(), Mission::DirectorShipDestroyed(), Unit::EjectCargo(), Flightgroup(), Init(), FireKeyboard::JoinFg(), Mount::PhysicsAlignedFire(), NetClient::Respawn(), UnitUtil::switchFg(), and Cockpit::Update().
int Flightgroup::nr_waves_left |
Definition at line 30 of file flightgroup.h.
Referenced by Mission::DirectorShipDestroyed(), Flightgroup(), Init(), and UnitUtil::switchFg().
std::vector< class varInst* >* Flightgroup::orderlist |
Definition at line 32 of file flightgroup.h.
Referenced by Mission::DirectorShipDestroyed(), and Flightgroup().
vsUMap< std::string, std::string > Flightgroup::ordermap |
Definition at line 31 of file flightgroup.h.
QVector Flightgroup::pos |
Definition at line 28 of file flightgroup.h.
Referenced by Mission::call_unit_launch(), createObjects(), Mission::DirectorShipDestroyed(), UniverseUtil::launchJumppoint(), and LoadMission().
Texture* Flightgroup::squadLogo |
Definition at line 20 of file flightgroup.h.
Referenced by Flightgroup(), newFlightgroup(), operator=(), and ~Flightgroup().
UnitContainer Flightgroup::target |
Definition at line 18 of file flightgroup.h.
Referenced by Init(), LeadMe(), Mount::PhysicsAlignedFire(), and Orders::AggressiveAI::ProcessCurrentFgDirective().
std::string Flightgroup::type |
Definition at line 23 of file flightgroup.h.
Referenced by Mission::call_unit_launch(), createObjects(), Mission::DirectorShipDestroyed(), Init(), LoadMission(), and UnitUtil::switchFg().