|
WSF
|
Functions | |
| UT_DEFINE_SCRIPT_METHOD_EXT (WsfPlatform, PerceptionProcessor, 0, "WsfPerceptionProcessor", "") | |
| UT_DEFINE_SCRIPT_METHOD_EXT (WsfPlatform, PerceivedAssets, 0, "Array<WsfAssetPerception>", "") | |
| UT_DEFINE_SCRIPT_METHOD_EXT (WsfPlatform, PerceivedThreats, 0, "Array<WsfTrack>", "") | |
| UT_DEFINE_SCRIPT_METHOD_EXT (WsfPlatform, UplinkProcessor, 0, "WsfUplinkProcessor", "") | |
| UT_DEFINE_SCRIPT_METHOD_EXT (WsfPlatform, IsUplinkingTo, 1, "bool", "WsfPlatform") | |
| UT_DEFINE_SCRIPT_METHOD_EXT (WsfPlatform, UplinkCount, 0, "int", "") | |
| UT_DEFINE_SCRIPT_METHOD_EXT (WsfPlatform, UplinkCapable, 0, "bool", "") | |
| UT_DEFINE_SCRIPT_METHOD_EXT (WsfPlatform, UplinkPlatformEntry, 1, "WsfPlatform", "int") | |
| UT_DEFINE_SCRIPT_METHOD_EXT (WsfPlatform, StartUplinking_1, 1, "bool", "WsfPlatform") | |
| UT_DEFINE_SCRIPT_METHOD_EXT (WsfPlatform, StartUplinking_2, 2, "bool", "WsfPlatform, WsfTrack") | |
| UT_DEFINE_SCRIPT_METHOD_EXT (WsfPlatform, StopUplinking, 1, "bool", "WsfPlatform") | |
| UT_DEFINE_SCRIPT_METHOD_EXT (WsfPlatform, MaxSupportedUplinks, 0, "int", "") | |
| UT_DEFINE_SCRIPT_METHOD_EXT (WsfPlatform, Detonate, 1, "void", "string") | |
| UT_DEFINE_SCRIPT_METHOD_EXT (WsfPlatform, Weapon, 1, "WsfWeapon", "string") | |
| UT_DEFINE_SCRIPT_METHOD_EXT (WsfPlatform, WeaponCount, 0, "int", "") | |
| UT_DEFINE_SCRIPT_METHOD_EXT (WsfPlatform, WeaponEntry, 1, "WsfWeapon", "int") | |
| UT_DEFINE_SCRIPT_METHOD_EXT (WsfPlatform, TimeSinceWeaponLastFiredFor, 1, "double", "WsfTrackId") | |
| UT_DEFINE_SCRIPT_METHOD_EXT (WsfPlatform, TimeSinceWeaponLastTerminatedFor, 1, "double", "WsfTrackId") | |
| UT_DEFINE_SCRIPT_METHOD_EXT (WsfPlatform, WeaponsPendingFor, 1, "int", "WsfTrackId") | |
| UT_DEFINE_SCRIPT_METHOD_EXT (WsfPlatform, WeaponsActiveFor, 1, "int", "WsfTrackId") | |
| UT_DEFINE_SCRIPT_METHOD_EXT (WsfPlatform, RoundsCompleteFor, 1, "int", "WsfTrackId") | |
| UT_DEFINE_SCRIPT_METHOD_EXT (WsfPlatform, RoundsFiredAt, 1, "int", "WsfTrackId") | |
| UT_DEFINE_SCRIPT_METHOD_EXT (WsfPlatform, SalvosFiredAt, 1, "int", "WsfTrackId") | |
| UT_DEFINE_SCRIPT_METHOD_EXT (WsfPlatform, ActiveWeaponPlatformsFor, 1, "WsfPlatformList", "WsfTrackId") | |
| UT_DEFINE_SCRIPT_METHOD_EXT (WsfPlatform, WeaponEngagement, 0, "WsfWeaponEngagement", "") | |
| aReturnVal | SetBool (hasOpSub) |
| UT_DEFINE_SCRIPT_METHOD_EXT (WsfPlatform, GetSubsCentroid, 0, "WsfGeoPoint", "") | |
| UT_DEFINE_SCRIPT_METHOD_EXT (WsfPlatform, WithinFieldOfView_1, 2, "bool", "WsfTrack, string") | |
| bool withinFieldOfView = WithinFieldOfView(WsfTrack aTrack, string aSensorOrWeapon) | |
| UT_DEFINE_SCRIPT_METHOD_EXT (WsfPlatform, WithinFieldOfView_2, 2, "bool", "WsfPlatform, string") | |
| bool withinFieldOfView = WithinFieldOfView(WsfPlatform aPlatform, string aSensorOrWeapon) | |
Variables | |
| WsfStringId | subType = WsfStringId(aVarArgs[0].GetString()) |
| bool | hasOpSub = ::HasOperationalSubordinate(aObjectPtr, subType, checked) |
| WsfPlatformScriptMethods::UT_DEFINE_SCRIPT_METHOD_EXT | ( | WsfPlatform | , |
| ActiveWeaponPlatformsFor | , | ||
| 1 | , | ||
| "WsfPlatformList" | , | ||
| "WsfTrackId" | ) |
Returned the number of salvos that have been fired for the specified task. int count = RoundsFiredAt(WsfTrackId aTrackId);
References WsfWeapon::ActiveWeaponPlatformsFor(), platformPtr, and SIMULATION.
| WsfPlatformScriptMethods::UT_DEFINE_SCRIPT_METHOD_EXT | ( | WsfPlatform | , |
| Detonate | , | ||
| 1 | , | ||
| "void" | , | ||
| "string" | ) |
Detonate(string aResult); Detonates the current platform. If not a weapon platform then it just deletes the platform. aResult is one of the detonation codes from WsfWeaponEngagement.
References WsfWeaponEngagement::cDUD, WsfWeaponEngagement::Find(), simTime, SIMULATION, WsfWeaponEngagement::StringToEnum(), WsfWeaponEngagement::Terminate(), and TIME_NOW.
| WsfPlatformScriptMethods::UT_DEFINE_SCRIPT_METHOD_EXT | ( | WsfPlatform | , |
| GetSubsCentroid | , | ||
| 0 | , | ||
| "WsfGeoPoint" | , | ||
| "" | ) |
WsfGeoPoint centroid = GetSubsCentroid() Returns the centroid of the subordinates on this platform's default command chain
References WsfGeoPoint::Clone(), WsfCommandChain::GetDefaultNameId(), and WsfCommandChain::GetSubordinates().
| WsfPlatformScriptMethods::UT_DEFINE_SCRIPT_METHOD_EXT | ( | WsfPlatform | , |
| IsUplinkingTo | , | ||
| 1 | , | ||
| "bool" | , | ||
| "WsfPlatform" | ) |
| WsfPlatformScriptMethods::UT_DEFINE_SCRIPT_METHOD_EXT | ( | WsfPlatform | , |
| MaxSupportedUplinks | , | ||
| 0 | , | ||
| "int" | , | ||
| "" | ) |
| WsfPlatformScriptMethods::UT_DEFINE_SCRIPT_METHOD_EXT | ( | WsfPlatform | , |
| PerceivedAssets | , | ||
| 0 | , | ||
| "Array<WsfAssetPerception>" | , | ||
| "" | ) |
References classPtr, WsfPerceptionProcessor::GetPlatformPerceivedAssets(), and SIMULATION.
| WsfPlatformScriptMethods::UT_DEFINE_SCRIPT_METHOD_EXT | ( | WsfPlatform | , |
| PerceivedThreats | , | ||
| 0 | , | ||
| "Array<WsfTrack>" | , | ||
| "" | ) |
References classPtr, WsfPerceptionProcessor::GetPlatformPerceivedThreats(), and TIME_NOW.
| WsfPlatformScriptMethods::UT_DEFINE_SCRIPT_METHOD_EXT | ( | WsfPlatform | , |
| PerceptionProcessor | , | ||
| 0 | , | ||
| "WsfPerceptionProcessor" | , | ||
| "" | ) |
References WsfPerceptionProcessor::GetPerceptionProcessor().
| WsfPlatformScriptMethods::UT_DEFINE_SCRIPT_METHOD_EXT | ( | WsfPlatform | , |
| RoundsCompleteFor | , | ||
| 1 | , | ||
| "int" | , | ||
| "WsfTrackId" | ) |
Returned the number of weapons that are complete for the specified task. int count = RoundsCompleteFor(WsfTrackId aTrackId);
References WsfWeapon::RoundsCompleteFor().
| WsfPlatformScriptMethods::UT_DEFINE_SCRIPT_METHOD_EXT | ( | WsfPlatform | , |
| RoundsFiredAt | , | ||
| 1 | , | ||
| "int" | , | ||
| "WsfTrackId" | ) |
Returned the number of rounds that have been fired for the specified task. int count = RoundsFiredAt(WsfTrackId aTrackId);
References WsfWeapon::RoundsFiredAt().
| WsfPlatformScriptMethods::UT_DEFINE_SCRIPT_METHOD_EXT | ( | WsfPlatform | , |
| SalvosFiredAt | , | ||
| 1 | , | ||
| "int" | , | ||
| "WsfTrackId" | ) |
Returned the number of salvos that have been fired for the specified task. int count = RoundsFiredAt(WsfTrackId aTrackId);
References WsfWeapon::SalvosFiredAt().
| WsfPlatformScriptMethods::UT_DEFINE_SCRIPT_METHOD_EXT | ( | WsfPlatform | , |
| StartUplinking_1 | , | ||
| 1 | , | ||
| "bool" | , | ||
| "WsfPlatform" | ) |
| WsfPlatformScriptMethods::UT_DEFINE_SCRIPT_METHOD_EXT | ( | WsfPlatform | , |
| StartUplinking_2 | , | ||
| 2 | , | ||
| "bool" | , | ||
| " | WsfPlatform, | ||
| WsfTrack" | ) |
| WsfPlatformScriptMethods::UT_DEFINE_SCRIPT_METHOD_EXT | ( | WsfPlatform | , |
| StopUplinking | , | ||
| 1 | , | ||
| "bool" | , | ||
| "WsfPlatform" | ) |
| WsfPlatformScriptMethods::UT_DEFINE_SCRIPT_METHOD_EXT | ( | WsfPlatform | , |
| TimeSinceWeaponLastFiredFor | , | ||
| 1 | , | ||
| "double" | , | ||
| "WsfTrackId" | ) |
References WsfScriptContext::GetTIME_NOW(), and WsfWeapon::TimeWeaponLastFiredFor().
| WsfPlatformScriptMethods::UT_DEFINE_SCRIPT_METHOD_EXT | ( | WsfPlatform | , |
| TimeSinceWeaponLastTerminatedFor | , | ||
| 1 | , | ||
| "double" | , | ||
| "WsfTrackId" | ) |
References WsfScriptContext::GetTIME_NOW(), and WsfWeapon::TimeWeaponLastTerminatedFor().
| WsfPlatformScriptMethods::UT_DEFINE_SCRIPT_METHOD_EXT | ( | WsfPlatform | , |
| UplinkCapable | , | ||
| 0 | , | ||
| "bool" | , | ||
| "" | ) |
| WsfPlatformScriptMethods::UT_DEFINE_SCRIPT_METHOD_EXT | ( | WsfPlatform | , |
| UplinkCount | , | ||
| 0 | , | ||
| "int" | , | ||
| "" | ) |
| WsfPlatformScriptMethods::UT_DEFINE_SCRIPT_METHOD_EXT | ( | WsfPlatform | , |
| UplinkPlatformEntry | , | ||
| 1 | , | ||
| "WsfPlatform" | , | ||
| "int" | ) |
| WsfPlatformScriptMethods::UT_DEFINE_SCRIPT_METHOD_EXT | ( | WsfPlatform | , |
| UplinkProcessor | , | ||
| 0 | , | ||
| "WsfUplinkProcessor" | , | ||
| "" | ) |
References WsfUplinkProcessor::GetUplinkProcessor().
| WsfPlatformScriptMethods::UT_DEFINE_SCRIPT_METHOD_EXT | ( | WsfPlatform | , |
| Weapon | , | ||
| 1 | , | ||
| "WsfWeapon" | , | ||
| "string" | ) |
| WsfPlatformScriptMethods::UT_DEFINE_SCRIPT_METHOD_EXT | ( | WsfPlatform | , |
| WeaponCount | , | ||
| 0 | , | ||
| "int" | , | ||
| "" | ) |
| WsfPlatformScriptMethods::UT_DEFINE_SCRIPT_METHOD_EXT | ( | WsfPlatform | , |
| WeaponEngagement | , | ||
| 0 | , | ||
| "WsfWeaponEngagement" | , | ||
| "" | ) |
References WsfWeaponEngagement::Find().
| WsfPlatformScriptMethods::UT_DEFINE_SCRIPT_METHOD_EXT | ( | WsfPlatform | , |
| WeaponEntry | , | ||
| 1 | , | ||
| "WsfWeapon" | , | ||
| "int" | ) |
| WsfPlatformScriptMethods::UT_DEFINE_SCRIPT_METHOD_EXT | ( | WsfPlatform | , |
| WeaponsActiveFor | , | ||
| 1 | , | ||
| "int" | , | ||
| "WsfTrackId" | ) |
Returned the number of weapons that are active for the specified task. int count = WeaponsActiveFor(WsfTrackId aTrackId);
References WsfWeapon::WeaponsActiveFor().
| WsfPlatformScriptMethods::UT_DEFINE_SCRIPT_METHOD_EXT | ( | WsfPlatform | , |
| WeaponsPendingFor | , | ||
| 1 | , | ||
| "int" | , | ||
| "WsfTrackId" | ) |
Returned the number of weapons that are pending for the specified task. int count = WeaponsPendingFor(WsfTrackId aTrackId);
References WsfWeapon::WeaponsPendingFor().
| WsfPlatformScriptMethods::UT_DEFINE_SCRIPT_METHOD_EXT | ( | WsfPlatform | , |
| WithinFieldOfView_1 | , | ||
| 2 | , | ||
| "bool" | , | ||
| " | WsfTrack, | ||
| string" | ) |
bool withinFieldOfView = WithinFieldOfView(WsfTrack aTrack, string aSensorOrWeapon)
References simTime, TIME_NOW, trackPtr, WsfSensor::WithinFieldOfView(), and WsfWeapon::WithinFieldOfView().
| WsfPlatformScriptMethods::UT_DEFINE_SCRIPT_METHOD_EXT | ( | WsfPlatform | , |
| WithinFieldOfView_2 | , | ||
| 2 | , | ||
| "bool" | , | ||
| " | WsfPlatform, | ||
| string" | ) |
bool withinFieldOfView = WithinFieldOfView(WsfPlatform aPlatform, string aSensorOrWeapon)
References platformPtr, simTime, TIME_NOW, WsfSensor::WithinFieldOfView(), and WsfWeapon::WithinFieldOfView().
| bool WsfPlatformScriptMethods::hasOpSub = ::HasOperationalSubordinate(aObjectPtr, subType, checked) |
Referenced by SetBool().
| WsfStringId WsfPlatformScriptMethods::subType = WsfStringId(aVarArgs[0].GetString()) |
bool hasOpSub = HasOperationalSubordinate(string aType) This emulates the Suppressor SUB-STATUS IS SUB-OP (or SUB-O/A) resource allocation phrase.