Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
A struct indicating an event that may or may not be executed. More...
#include <event_xml.h>
Public Member Functions | |
AIEvresult (int type, float const min, const float max, float timetofinish, float timetointerrupt, float priority, const std::string &aiscript) | |
bool | Eval (const float eval) const |
Public Attributes | |
int | type |
will never be zero...negative indicates "not" More... | |
float | max |
The maximum/minimum values that will cause this event. More... | |
float | min |
float | timetofinish |
float | timetointerrupt |
float | priority |
std::string | script |
The string indicating what type of thing this event evaluates. More... | |
A struct indicating an event that may or may not be executed.
Definition at line 18 of file event_xml.h.
AIEvents::AIEvresult::AIEvresult | ( | int | type, |
float const | min, | ||
const float | max, | ||
float | timetofinish, | ||
float | timetointerrupt, | ||
float | priority, | ||
const std::string & | aiscript | ||
) |
Definition at line 24 of file event_xml.cpp.
References fprintf, VegaConfig::getVariable(), i, max, min, XMLSupport::parse_int(), priority, script, timetofinish, timetointerrupt, type, validateHardCodedScript(), and vs_config.
Definition at line 36 of file event_xml.h.
References max, min, and type.
Referenced by Orders::AggressiveAI::ProcessLogicItem().
float AIEvents::AIEvresult::max |
The maximum/minimum values that will cause this event.
Definition at line 23 of file event_xml.h.
Referenced by AIEvresult(), and Eval().
float AIEvents::AIEvresult::min |
Definition at line 23 of file event_xml.h.
Referenced by AIEvresult(), and Eval().
float AIEvents::AIEvresult::priority |
Definition at line 26 of file event_xml.h.
Referenced by AIEvresult().
std::string AIEvents::AIEvresult::script |
The string indicating what type of thing this event evaluates.
Definition at line 28 of file event_xml.h.
Referenced by AIEvresult(), and Orders::AggressiveAI::ExecuteLogicItem().
float AIEvents::AIEvresult::timetofinish |
Definition at line 24 of file event_xml.h.
Referenced by AIEvresult(), and Orders::AggressiveAI::ExecuteLogicItem().
float AIEvents::AIEvresult::timetointerrupt |
Definition at line 25 of file event_xml.h.
Referenced by AIEvresult().
int AIEvents::AIEvresult::type |
will never be zero...negative indicates "not"
Definition at line 21 of file event_xml.h.
Referenced by AIEvresult(), Eval(), and Orders::AggressiveAI::ProcessLogicItem().