Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <pilot.h>
Public Types | |
typedef vsUMap< const void *, float > | relationmap |
Public Member Functions | |
Pilot (int faction) | |
virtual | ~Pilot () |
void | SetComm (Unit *comm_unit) |
Animation * | getCommFace (Unit *parent, float moon, unsigned char &gender) |
float | getReactionTime () |
unsigned char | getGender () |
float | getRank () |
float | getAnger (const Unit *parent, const Unit *un) const |
std::vector< Animation * > * | getCommFaces (unsigned char &sex) |
float | GetEffectiveRelationship (const Unit *parent, const Unit *target) const |
float | adjustSpecificRelationship (Unit *parent, void *aggressor, float value, int guessedFaction) |
void | DoHit (Unit *parent, void *aggressor, int guessedFaction) |
Public Attributes | |
relationmap | effective_relationship |
std::vector< Animation * > * | comm_face |
typedef vsUMap< const void*, float > Pilot::relationmap |
|
explicit |
Definition at line 10 of file pilot.cpp.
References comm_face, VegaConfig::getVariable(), XMLSupport::parse_float(), and vs_config.
float Pilot::adjustSpecificRelationship | ( | Unit * | parent, |
void * | aggressor, | ||
float | value, | ||
int | guessedFaction | ||
) |
Definition at line 29 of file pilot.cpp.
References Unit::aistate, Order::ChooseTarget(), effective_relationship, FactionUtil::GetNeutralFaction(), UnitUtil::getRelationToFaction(), VegaConfig::getVariable(), i, XMLSupport::parse_float(), Unit::Target(), and vs_config.
Referenced by CommunicatingAI::AdjustRelationTo(), and DoHit().
Definition at line 55 of file pilot.cpp.
References _Universe, UniverseUtil::adjustFGRelationModifier(), UniverseUtil::adjustRelationModifierInt(), adjustSpecificRelationship(), Unit::faction, Unit::getFlightgroup(), getRank(), VegaConfig::getVariable(), Flightgroup::name, XMLSupport::parse_float(), vs_config, and Universe::whichPlayerStarship().
Definition at line 76 of file pilot.cpp.
References _Universe, c, UnitImages< BOGUS >::cargo, effective_relationship, factions, Cargo::GetCategory(), FactionUtil::GetFactionName(), UniverseUtil::getFGRelationModifier(), Unit::getFlightgroup(), VegaConfig::getVariable(), i, Universe::isPlayerStarship(), Flightgroup::name, Unit::name, Unit::numCargo(), XMLSupport::parse_float(), Unit::pImage, Cargo::quantity, vs_config, and Universe::whichPlayerStarship().
Referenced by GetEffectiveRelationship(), and CommunicatingAI::selectCommunicationMessage().
Definition at line 136 of file pilot.cpp.
References Unit::faction, getCommFaces(), FactionUtil::GetRandCommAnimation(), index, int, and myroundclamp().
Referenced by UnitUtil::communicateTo().
|
inline |
Definition at line 34 of file pilot.h.
References comm_face.
Referenced by Unit::ApplyDamage(), getCommFace(), CommunicatingAI::InitiateContrabandSearch(), CommunicatingAI::ProcessCommMessage(), CommunicatingAI::RandomInitiateCommunication(), ScoreKill(), CommunicatingAI::TerminateContrabandSearch(), TryDock(), and CommunicatingAI::UpdateContrabandSearch().
Definition at line 129 of file pilot.cpp.
References getAnger(), and UnitUtil::getFactionRelation().
Referenced by CommunicatingAI::selectCommunicationMessageMood().
|
inline |
Definition at line 22 of file pilot.h.
Referenced by CommunicatingAI::Destroy(), and FireKeyboard::Execute().
|
inline |
Definition at line 26 of file pilot.h.
Referenced by CommunicatingAI::AdjustRelationTo(), and DoHit().
|
inline |
void Pilot::SetComm | ( | Unit * | comm_unit) |
Definition at line 22 of file pilot.cpp.
References comm_face, Unit::faction, and FactionUtil::GetRandCommAnimation().
Referenced by Unit::Unit().
std::vector< Animation* >* Pilot::comm_face |
Definition at line 32 of file pilot.h.
Referenced by getCommFaces(), Pilot(), and SetComm().
relationmap Pilot::effective_relationship |
Definition at line 31 of file pilot.h.
Referenced by adjustSpecificRelationship(), getAnger(), and NetServer::sendCommunication().