Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include "comm_ai.h"
#include "faction_generic.h"
#include "communication.h"
#include "cmd/collection.h"
#include "gfx/cockpit_generic.h"
#include "cmd/images.h"
#include "configxml.h"
#include "vs_globals.h"
#include "cmd/script/flightgroup.h"
#include "cmd/unit_util.h"
#include "vs_random.h"
#include "cmd/unit_find.h"
#include "cmd/pilot.h"
#include "universe_util.h"
Go to the source code of this file.
Functions | |
bool | MatchingMood (const CommunicationMessage &c, float mood, float randomresponse, float relationship) |
void | GetMadAt (Unit *un, Unit *parent, int numhits=0) |
void | AllUnitsCloseAndEngage (Unit *un, int faction) |
static int | InList (std::string item, Unit *un) |
static bool | isDockedAtAll (Unit *un) |
Definition at line 98 of file comm_ai.cpp.
References _Universe, Universe::activeStarSystem(), UniverseUtil::adjustRelationModifierInt(), UnitCollection::createIterator(), Flightgroup::directive, Unit::faction, Unit::getFlightgroup(), GetMadAt(), UnitUtil::getRelationFromFaction(), StarSystem::getUnitList(), VegaConfig::getVariable(), i, Magnitude(), XMLSupport::parse_float(), Unit::Position(), Unit::Target(), Unit::TargetTurret(), vs_config, and Universe::whichPlayerStarship().
Referenced by Unit::ApplyDamage(), and CommunicatingAI::TerminateContrabandSearch().
Definition at line 86 of file comm_ai.cpp.
References Order::Communicate(), CommunicationMessage::fsm, Unit::getAIState(), FSM::GetHitNode(), VegaConfig::getVariable(), i, XMLSupport::parse_int(), CommunicationMessage::SetCurrentState(), and vs_config.
Referenced by AllUnitsCloseAndEngage(), and Mount::PhysicsAlignedFire().
Definition at line 164 of file comm_ai.cpp.
References Cargo::content, float_to_int(), Unit::GetCargo(), i, Unit::numCargo(), and Cargo::quantity.
Referenced by CommunicatingAI::UpdateContrabandSearch().
Definition at line 230 of file comm_ai.cpp.
References Unit::docked, Unit::DOCKED, and Unit::DOCKED_INSIDE.
Referenced by CommunicatingAI::ProcessCommMessage(), and CommunicatingAI::RandomInitiateCommunication().
bool MatchingMood | ( | const CommunicationMessage & | c, |
float | mood, | ||
float | randomresponse, | ||
float | relationship | ||
) |
Definition at line 47 of file comm_ai.cpp.
References CommunicationMessage::curstate, CommunicationMessage::fsm, FSM::getDefaultState(), VegaConfig::getVariable(), i, int, FSM::nodes, XMLSupport::parse_float(), and vs_config.
Referenced by CommunicatingAI::selectCommunicationMessageMood().