Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <ikarus.h>
Public Member Functions | |
Ikarus () | |
virtual void | Execute () |
you can ignore the function below unless it causes problems...this merely makes it so that the AI responds to your commands More... | |
virtual string | getOrderDescription () |
![]() | |
virtual void | SetParent (Unit *parent1) |
Sets the parent of this Unit. Any virtual functions must call this one. More... | |
AggressiveAI (const char *file, Unit *target=NULL) | |
void | ExecuteNoEnemies () |
void | AfterburnerJumpTurnTowards (Unit *target) |
![]() | |
virtual void | ChooseTarget () |
this function calls the destructor (needs to be overridden for python; More... | |
void | PossiblySwitchTarget (bool istargetjumpableplanet) |
virtual bool | PursueTarget (Unit *, bool leader) |
void | AddReplaceLastOrder (bool replace) |
void | ExecuteLastScriptFor (float time) |
void | FaceTarget (bool end) |
void | FaceTargetITTS (bool end) |
void | MatchLinearVelocity (bool terminate, Vector vec, bool afterburn, bool local) |
void | MatchAngularVelocity (bool terminate, Vector vec, bool local) |
void | ChangeHeading (QVector vec) |
void | ChangeLocalDirection (Vector vec) |
void | MoveTo (QVector, bool afterburn) |
void | MatchVelocity (bool terminate, Vector vec, Vector angvel, bool afterburn, bool local) |
void | Cloak (bool enable, float seconds) |
void | FormUp (QVector pos) |
void | FormUpToOwner (QVector pos) |
void | FaceDirection (float distToMatchFacing, bool finish) |
void | XMLScript (std::string script) |
void | LastPythonScript () |
Unit * | GetParent () |
FireAt (float aggressivitylevel) | |
FireAt () | |
virtual std::string | Pickle () |
virtual void | UnPickle (std::string) |
virtual | ~FireAt () |
![]() | |
virtual void | Destroy () |
The virutal function that unrefs all memory then calls Destruct () which takes care of unreffing this or calling delete on this. More... | |
virtual float | getMood () |
Unit * | GetRandomUnit (float PlayerProbability, float TargetProbability) |
void | RandomInitiateCommunication (float PlayerProbability, float TargetProbability) |
void | TerminateContrabandSearch (bool foundcontraband) |
void | InitiateContrabandSearch (float PlayerProbability, float TargetProbability) |
void | UpdateContrabandSearch () |
CommunicatingAI (int ttype, int stype, float mood=0, float anger=-666, float appeasement=666, float moodswingyness=666, float randomnessresponse=666) | |
virtual void | ProcessCommMessage (class CommunicationMessage &c) |
processes a single message...generally called by the Messages() func More... | |
virtual void | AdjustRelationTo (Unit *un, float factor) |
virtual | ~CommunicatingAI () |
virtual int | selectCommunicationMessage (class CommunicationMessage &c, Unit *) |
virtual int | selectCommunicationMessageMood (CommunicationMessage &c, float mood) |
![]() | |
void | ClearMessages () |
clears the messasges of this order More... | |
Order () | |
The default constructor setting everything to NULL and no dependency on order. More... | |
Order (int type, int subtype) | |
The constructor that specifies what order dependencies this order has. More... | |
Order * | queryType (unsigned int type) |
returns a pointer to the first order that may be bitwised ored with that type More... | |
Order * | queryAny (unsigned int type) |
returns a pointer to the first order that may be bitwise ored with any type More... | |
void | eraseType (unsigned int type) |
Erases all orders that bitwise OR with that type. More... | |
bool | AttachOrder (Unit *targets) |
Attaches a group of targets to this order (used for strategery-type games) More... | |
bool | AttachOrder (QVector target) |
Attaches a navigation point to this order. More... | |
bool | AttachSelfOrder (Unit *targets) |
Attaches a group (form up) to this order. More... | |
Order * | EnqueueOrder (Order *ord) |
Enqueues another order that will be executed (in parallel perhaps) when next void Execute() is called. More... | |
Order * | ReplaceOrder (Order *ord) |
Replaces the first order of that type in the order queue. More... | |
bool | Done () |
int | getType () |
int | getSubType () |
Unit * | GetParent () const |
virtual void | Communicate (const class CommunicationMessage &c) |
Sends a communication message from the Unit (encapulated in c) to this unit. More... | |
virtual void | ProcessCommunicationMessages (float CommRepsonseTime, bool RemoveMessageProcessed) |
responds (or does not) to certain messages in the message queue More... | |
Order * | findOrder (Order *ord) |
return pointer to order or NULL if not found More... | |
void | eraseOrder (Order *ord) |
erase that order from the list More... | |
Order * | EnqueueOrderFirst (Order *ord) |
enqueue order as first order More... | |
virtual olist_t * | getOrderList () |
returns the orderlist (NULL for orders that haven't got any) More... | |
Order * | findOrderList () |
searches the suborders recursively for the first order that has an orderlist More... | |
std::string | createFullOrderDescription (int level=0) |
void | setActionString (std::string astring) |
std::string | getActionString () |
Ikarus::Ikarus | ( | ) |
Definition at line 19 of file ikarus.cpp.
|
virtual |
you can ignore the function below unless it causes problems...this merely makes it so that the AI responds to your commands
Reimplemented from Orders::AggressiveAI.
Definition at line 72 of file ikarus.cpp.
References AfterburnTurnTowards, Unit::UnitJump::drive, Order::Execute(), Unit::GetDestinations(), Unit::getFlightgroup(), Unit::GetJumpStatus(), Order::parent, Orders::AggressiveAI::ProcessCurrentFgDirective(), Orders::AggressiveAI::ReCommandWing(), and Unit::Target().
|
inlinevirtual |
Reimplemented from Orders::AggressiveAI.