39#define RAIDER_MAX_CARGO 5
40#define MERCHANTMAN_MAX_CARGO 125
42#define PIRATES_PREFER_PLAYER YES
44#define TURRET_MINIMUM_COS 0.20f
46#define SHIP_THRUST_FACTOR 5.0f
47#define AFTERBURNER_BURNRATE 0.25f
49#define CLOAKING_DEVICE_ENERGY_RATE 12.8f
50#define CLOAKING_DEVICE_MIN_ENERGY 128
51#define CLOAKING_DEVICE_START_ENERGY 0.75f
53#define MILITARY_JAMMER_ENERGY_RATE 3
54#define MILITARY_JAMMER_MIN_ENERGY 128
56#define COMBAT_IN_RANGE_FACTOR 0.035f
57#define COMBAT_BROADSIDE_IN_RANGE_FACTOR 0.020f
58#define COMBAT_OUT_RANGE_FACTOR 0.500f
59#define COMBAT_BROADSIDE_RANGE_FACTOR 0.900f
60#define COMBAT_WEAPON_RANGE_FACTOR 1.200f
61#define COMBAT_JINK_OFFSET 500.0f
63#define SHIP_COOLING_FACTOR 0.1f
67#define SHIP_ENERGY_DAMAGE_TO_HEAT_FACTOR (mass > 400000 ? 200000 / mass : 0.5)
68#define SHIP_INSULATION_FACTOR 0.00175f
69#define SHIP_MAX_CABIN_TEMP 256.0f
70#define SHIP_MIN_CABIN_TEMP 60.0f
71#define EJECTA_TEMP_FACTOR 0.85f
72#define DEFAULT_HYPERSPACE_SPIN_TIME 15.0f
74#define SUN_TEMPERATURE 1250.0f
77#define ESCORT_SPACING_FACTOR 3.0
79#define SHIPENTITY_MAX_MISSILES 32
81#define TURRET_TYPICAL_ENERGY 25.0f
82#define TURRET_SHOT_SPEED 2000.0f
83#define TURRET_SHOT_DURATION 3.0
84#define TURRET_SHOT_RANGE (TURRET_SHOT_SPEED * TURRET_SHOT_DURATION)
85#define TURRET_SHOT_FREQUENCY (TURRET_SHOT_DURATION * TURRET_SHOT_DURATION * TURRET_SHOT_DURATION / 100.0)
87#define NPC_PLASMA_SPEED 1500.0f
88#define MAIN_PLASMA_DURATION 5.0
89#define NPC_PLASMA_RANGE (MAIN_PLASMA_DURATION * NPC_PLASMA_SPEED)
91#define PLAYER_PLASMA_SPEED 1000.0f
92#define PLAYER_PLASMA_RANGE (MAIN_PLASMA_DURATION * PLAYER_PLASMA_SPEED)
94#define TRACTOR_FORCE 2500.0f
96#define AIMS_AGGRESSOR_SWITCHED_TARGET @"AGGRESSOR_SWITCHED_TARGET"
99#define MAX_SCAN_NUMBER 32
101#define BASELINE_SHIELD_LEVEL 128.0f
102#define INITIAL_SHOT_TIME 100.0
105#ifdef OO_DUMP_PLANETINFO
107#define MAX_JUMP_RANGE 150.0
109#define MAX_JUMP_RANGE 7.0
112#define ENTITY_PERSONALITY_MAX 0x7FFFU
113#define ENTITY_PERSONALITY_INVALID 0xFFFFU
115#define WEAPON_COOLING_FACTOR 6.0f
116#define NPC_MAX_WEAPON_TEMP 256.0f
117#define WEAPON_COOLING_CUTOUT 0.85f
119#define COMBAT_AI_WEAPON_TEMP_READY 0.25f * NPC_MAX_WEAPON_TEMP
120#define COMBAT_AI_WEAPON_TEMP_USABLE WEAPON_COOLING_CUTOUT* NPC_MAX_WEAPON_TEMP
123#define COMBAT_AI_CONFIDENCE_FACTOR 1250000.0f
124#define COMBAT_AI_ISNT_AWFUL 0.0f
126#define COMBAT_AI_IS_SMART 5.0f
128#define COMBAT_AI_FLEES_BETTER 6.0f
130#define COMBAT_AI_DOGFIGHTER 6.5f
132#define COMBAT_AI_TRACKS_CLOSER 7.5f
133#define COMBAT_AI_USES_SNIPING 8.5f
135#define COMBAT_AI_FLEES_BETTER_2 9.0f
137#define COMBAT_AI_STANDARD_REACTION_TIME 1.5f
139#define MAX_LANDING_SPEED 50.0
140#define MAX_LANDING_SPEED2 (MAX_LANDING_SPEED * MAX_LANDING_SPEED)
143#define MAX_COS2 (MAX_COS * MAX_COS)
145#define ENTRY(label, value) label = value,
148#include "OOBehaviour.tbl"
176#define DIFF_STRING_ENTRY(label, string) label,
177#include "OOShipDamageType.tbl"
178#undef DIFF_STRING_ENTRY
350 NSMutableArray*
cargo;
413#ifdef OO_DEBUG_MONITOR_ENABLED
486- (void)setStateMachine:(NSString*)ai_desc;
487- (void)setAI:(
AI*)ai;
491- (void)setShipScript:(NSString*)script_name;
498- (void)setLaunchDelay:(
double)delay;
500- (void)interpretAIMessage:(NSString*)message;
503- (void)setAccuracy:(GLfloat)new_accuracy;
506- (void)setMesh:(
OOMesh*)mesh;
516- (BOOL)hasSubEntity:(
Entity<OOSubEntity>*)sub;
524- (void)setSubEntityTakingDamage:(
ShipEntity*)sub;
529- (void)setSubEntityRotationalVelocity:(
Quaternion)rv;
533- (void)deserializeShipSubEntitiesFrom:(NSString*)string;
535- (void)setSubIdx:(NSUInteger)value;
552- (void)setIsBoulder:(BOOL)flag;
561- (id)initWithKey:(NSString*)key definition:(NSDictionary*)dict;
562- (BOOL)setUpFromDictionary:(NSDictionary*)shipDict;
563- (BOOL)setUpShipFromDictionary:(NSDictionary*)shipDict;
565- (BOOL)setUpOneStandardSubentity:(NSDictionary*)subentDict asTurret:(BOOL)asTurret;
570- (void)setShipDataKey:(NSString*)key;
574- (NSArray*)getWeaponOffsetFrom:(NSDictionary*)dict withKey:(NSString*)key inMode:(NSString*)mode;
584- (void)respondToAttackFrom:(
Entity*)from becauseOf:(
Entity*)other;
588- (BOOL)hasEquipmentItem:(
id)equipmentKeys includeWeapons:(BOOL)includeWeapons whileLoading:(BOOL)loading;
589- (BOOL)hasEquipmentItem:(
id)equipmentKeys;
590- (NSUInteger)countEquipmentItem:(NSString*)eqkey;
591- (NSString*)equipmentItemProviding:(NSString*)equipmentType;
592- (BOOL)hasEquipmentItemProviding:(NSString*)equipmentType;
593- (BOOL)hasAllEquipment:(
id)equipmentKeys includeWeapons:(BOOL)includeWeapons whileLoading:(BOOL)loading;
594- (BOOL)hasAllEquipment:(
id)equipmentKeys;
595- (BOOL)setWeaponMount:(
OOWeaponFacing)facing toWeapon:(NSString*)eqKey;
596- (BOOL)canAddEquipment:(NSString*)equipmentKey inContext:(NSString*)context;
597- (BOOL)equipmentValidToAdd:(NSString*)equipmentKey inContext:(NSString*)context;
598- (BOOL)equipmentValidToAdd:(NSString*)equipmentKey whileLoading:(BOOL)loading inContext:(NSString*)context;
599- (BOOL)addEquipmentItem:(NSString*)equipmentKey inContext:(NSString*)context;
600- (BOOL)addEquipmentItem:(NSString*)equipmentKey withValidation:(BOOL)validateAddition inContext:(NSString*)context;
603- (void)setHyperspaceSpinTime:(
float)new;
607- (void)removeEquipmentItem:(NSString*)equipmentKey;
613- (BOOL)hasOneEquipmentItem:(NSString*)itemKey includeWeapons:(BOOL)includeMissiles whileLoading:(BOOL)loading;
614- (BOOL)hasOneEquipmentItem:(NSString*)itemKey includeMissiles:(BOOL)includeMissiles whileLoading:(BOOL)loading;
656- (void)setAfterburnerFactor:(GLfloat)new;
657- (void)setAfterburnerRate:(GLfloat)new;
661- (void)setMaxThrust:(GLfloat)new;
662- (void)setMaxFlightPitch:(GLfloat)new;
663- (void)setMaxFlightSpeed:(GLfloat)new;
664- (void)setMaxFlightRoll:(GLfloat)new;
665- (void)setMaxFlightYaw:(GLfloat)new;
666- (void)setEnergyRechargeRate:(GLfloat)new;
670- (void)behaviour_stop_still:(
double)delta_t;
671- (void)behaviour_idle:(
double)delta_t;
672- (void)behaviour_tumble:(
double)delta_t;
673- (void)behaviour_tractored:(
double)delta_t;
674- (void)behaviour_track_target:(
double)delta_t;
675- (void)behaviour_intercept_target:(
double)delta_t;
676- (void)behaviour_attack_target:(
double)delta_t;
677- (void)behaviour_attack_slow_dogfight:(
double)delta_t;
678- (void)behaviour_evasive_action:(
double)delta_t;
679- (void)behaviour_attack_break_off_target:(
double)delta_t;
680- (void)behaviour_fly_to_target_six:(
double)delta_t;
681- (void)behaviour_attack_mining_target:(
double)delta_t;
682- (void)behaviour_attack_fly_to_target:(
double)delta_t;
683- (void)behaviour_attack_fly_from_target:(
double)delta_t;
684- (void)behaviour_running_defense:(
double)delta_t;
685- (void)behaviour_flee_target:(
double)delta_t;
686- (void)behaviour_attack_broadside:(
double)delta_t;
687- (void)behaviour_attack_broadside_left:(
double)delta_t;
688- (void)behaviour_attack_broadside_right:(
double)delta_t;
689- (void)behaviour_close_to_broadside_range:(
double)delta_t;
690- (void)behaviour_close_with_target:(
double)delta_t;
691- (void)behaviour_attack_broadside_target:(
double)delta_t leftside:(BOOL)leftside;
692- (void)behaviour_attack_sniper:(
double)delta_t;
693- (void)behaviour_fly_range_from_destination:(
double)delta_t;
694- (void)behaviour_face_destination:(
double)delta_t;
695- (void)behaviour_land_on_planet:(
double)delta_t;
696- (void)behaviour_formation_form_up:(
double)delta_t;
697- (void)behaviour_fly_to_destination:(
double)delta_t;
698- (void)behaviour_fly_from_destination:(
double)delta_t;
699- (void)behaviour_avoid_collision:(
double)delta_t;
700- (void)behaviour_track_as_turret:(
double)delta_t;
701- (void)behaviour_fly_thru_navpoints:(
double)delta_t;
702- (void)behaviour_scripted_ai:(
double)delta_t;
705- (void)setReactionTime:(
float)newReactionTime;
711- (GLfloat*)scannerDisplayColorForShip:(
ShipEntity*)otherShip isHostile:(BOOL)isHostile flash:(BOOL)flash scannerDisplayColor1:(
OOColor*)scannerDisplayColor1 scannerDisplayColor2:(
OOColor*)scannerDisplayColor2 scannerDisplayColorH1:(
OOColor*)scannerDisplayColorH1 scannerDisplayColorH2:(
OOColor*)scannerDisplayColorH2;
712- (void)setScannerDisplayColor1:(
OOColor*)color1;
713- (void)setScannerDisplayColor2:(
OOColor*)color2;
716- (void)setScannerDisplayColorHostile1:(
OOColor*)color1;
717- (void)setScannerDisplayColorHostile2:(
OOColor*)color2;
722- (void)setCloaked:(BOOL)cloak;
724- (void)setAutoCloak:(BOOL)automatic;
726- (void)applyThrust:(
double)delta_t;
727- (void)applyAttitudeChanges:(
double)delta_t;
733- (void)setMessageTime:(
double)value;
751- (void)setPendingEscortCount:(uint8_t)count;
755- (void)setMaxEscortCount:(uint8_t)newCount;
765- (void)setName:(NSString*)inName;
766- (void)setShipUniqueName:(NSString*)inName;
767- (void)setShipClassName:(NSString*)inName;
768- (void)setDisplayName:(NSString*)inName;
769- (void)setScanDescription:(NSString*)inName;
770- (NSString*)identFromShip:(
ShipEntity*)otherShip;
772- (BOOL)hasRole:(NSString*)role;
775- (void)addRole:(NSString*)role;
776- (void)addRole:(NSString*)role withProbability:(
float)probability;
777- (void)removeRole:(NSString*)role;
780- (void)setPrimaryRole:(NSString*)role;
781- (BOOL)hasPrimaryRole:(NSString*)role;
800- (BOOL)isHostileTo:(
Entity*)entity;
807- (BOOL)addDefenseTarget:(
Entity*)target;
808- (BOOL)isDefenseTarget:(
Entity*)target;
809- (void)removeDefenseTarget:(
Entity*)target;
814- (void)addCollisionException:(
ShipEntity*)ship;
815- (void)removeCollisionException:(
ShipEntity*)ship;
816- (BOOL)collisionExceptedFor:(
ShipEntity*)ship;
819- (void)setWeaponRange:(GLfloat)value;
823- (void)setWeaponRechargeRate:(
float)value;
824- (void)setWeaponEnergy:(
float)value;
828- (void)setScannerRange:(GLfloat)value;
831- (void)setReference:(
Vector)v;
834- (void)setReportAIMessages:(BOOL)yn;
843- (void)setLastAegisLock:(
Entity<OOStellarBody>*)lastAegisLock;
852- (void)setCrew:(NSArray*)crewArray;
857- (void)setSingleCrewWithRole:(NSString*)crewRole;
866- (void)setRoll:(
double)amount;
867- (void)setRawRoll:(
double)amount;
868- (void)setPitch:(
double)amount;
869- (void)setYaw:(
double)amount;
870- (void)setThrust:(
double)amount;
871- (void)applySticks:(
double)delta_t;
873- (void)setThrustForDemo:(
float)factor;
887- (void)setUpCargoType:(NSString*)cargoString;
900- (void)setCargo:(NSArray*)some_cargo;
901- (BOOL)addCargo:(NSArray*)some_cargo;
916- (void)setSpeed:(
double)amount;
918- (void)setDesiredSpeed:(
double)amount;
920- (void)setDesiredRange:(
double)amount;
925- (void)setTotalVelocity:(
Vector)vel;
927- (void)increase_flight_speed:(
double)delta;
928- (void)decrease_flight_speed:(
double)delta;
929- (void)increase_flight_roll:(
double)delta;
930- (void)decrease_flight_roll:(
double)delta;
931- (void)increase_flight_pitch:(
double)delta;
932- (void)decrease_flight_pitch:(
double)delta;
933- (void)increase_flight_yaw:(
double)delta;
934- (void)decrease_flight_yaw:(
double)delta;
947- (void)setTemperature:(GLfloat)value;
949- (void)setHeatInsulation:(GLfloat)value;
952- (float)randomEjectaTemperatureWithMaxFactor:(
float)factor;
957- (void)dealEnergyDamage:(GLfloat)baseDamage atRange:(GLfloat)range withBias:(GLfloat)velocityBias;
959- (void)dealMomentumWithinDesiredRange:(
double)amount;
968- (void)becomeLargeExplosion:(
double)factor;
971- (void)setIsWreckage:(BOOL)isw;
974- (
Vector)positionOffsetForAlignment:(NSString*)align;
992- (void)setEntityPersonalityInt:(uint16_t)value;
994- (void)setSuppressExplosion:(BOOL)suppress;
1018- (void)setFoundTarget:(
Entity*)targetEntity;
1019- (void)setPrimaryAggressor:(
Entity*)targetEntity;
1020- (void)setLastEscortTarget:(
Entity*)targetEntity;
1021- (void)setThankedShip:(
Entity*)targetEntity;
1022- (void)setRememberedShip:(
Entity*)targetEntity;
1023- (void)setProximityAlert:(
ShipEntity*)targetEntity;
1024- (void)setTargetStation:(
Entity*)targetEntity;
1025- (BOOL)isValidTarget:(
Entity*)target;
1026- (void)addTarget:(
Entity*)targetEntity;
1027- (void)removeTarget:(
Entity*)targetEntity;
1039- (void)noteTargetDestroyed:(
ShipEntity*)target;
1044- (void)trackOntoTarget:(
double)delta_t withDForward:(GLfloat)dp;
1046- (double)ballTrackLeadingTarget:(
double)delta_t atTarget:(
Entity*)target;
1048- (GLfloat)rollToMatchUp:(
Vector)up_vec rotating:(GLfloat)match_roll;
1051- (double)trackDestination:(
double)delta_t retreat:(BOOL)retreat;
1053- (void)setCoordinate:(
HPVector)coord;
1056- (
HPVector)distance_six:(GLfloat)dist;
1057- (
HPVector)distance_twelve:(GLfloat)dist withOffset:(GLfloat)offset;
1059- (void)setEvasiveJink:(GLfloat)z;
1060- (void)evasiveAction:(
double)delta_t;
1061- (double)trackPrimaryTarget:(
double)delta_t retreat:(BOOL)retreat;
1062- (double)trackSideTarget:(
double)delta_t leftside:(BOOL)leftside;
1063- (double)missileTrackPrimaryTarget:(
double)delta_t;
1068- (double)rangeToSecondaryTarget:(
Entity*)target;
1069- (BOOL)hasProximityAlertIgnoringTarget:(BOOL)ignore_target;
1077- (GLfloat)lookingAtSunWithThresholdAngleCos:(GLfloat)thresholdAngleCos;
1084- (BOOL)fireMainWeapon:(
double)range;
1085- (BOOL)fireAftWeapon:(
double)range;
1086- (BOOL)firePortWeapon:(
double)range;
1087- (BOOL)fireStarboardWeapon:(
double)range;
1088- (BOOL)fireTurretCannon:(
double)range;
1089- (void)setLaserColor:(
OOColor*)color;
1090- (void)setExhaustEmissiveColor:(
OOColor*)color;
1093- (BOOL)fireSubentityLaserShot:(
double)range;
1094- (BOOL)fireDirectLaserShot:(
double)range;
1096- (BOOL)fireDirectLaserShotAt:(
Entity*)my_target;
1098- (BOOL)fireLaserShotInDirection:(
OOWeaponFacing)direction weaponIdentifier:(NSString*)weaponIdentifier;
1099- (void)adjustMissedShots:(
int)delta;
1101- (void)considerFiringMissile:(
double)delta_t;
1104- (
ShipEntity*)fireMissileWithIdentifier:(NSString*)identifier andTarget:(
Entity*)target;
1106- (void)setIsMissileFlag:(BOOL)newValue;
1108- (void)setMissileLoadTime:(
OOTimeDelta)newMissileLoadTime;
1111- (BOOL)cascadeIfAppropriateWithDamageAmount:(
double)amount cascadeOwner:(
Entity*)owner;
1122- (void)adjustVelocity:(
Vector)xVel;
1123- (void)addImpactMoment:(
Vector)moment fraction:(GLfloat)howmuch;
1128- (void)scoopUpProcess:(
ShipEntity*)other processEvents:(BOOL)proc_events processMessages:(BOOL)proc_messages;
1132- (void)takeScrapeDamage:(
double)amount from:(
Entity*)ent;
1133- (void)takeHeatDamage:(
double)amount;
1139- (void)enterWormhole:(
WormholeEntity*)w_hole replacing:(BOOL)replacing;
1148- (void)markAsOffender:(
int)offence_value;
1155- (void)setDestination:(
HPVector)dest;
1156- (void)setEscortDestination:(
HPVector)dest;
1158- (BOOL)canAcceptEscort:(
ShipEntity*)potentialEscort;
1159- (BOOL)acceptAsEscort:(
ShipEntity*)other_ship;
1174- (void)broadcastHitByLaserFrom:(
ShipEntity*)aggressor_ship;
1178- (void)setSunGlareFilter:(GLfloat)newValue;
1181- (void)sendExpandedMessage:(NSString*)message_text toShip:(
ShipEntity*)other_ship;
1182- (void)sendMessage:(NSString*)message_text toShip:(
ShipEntity*)other_ship withUnpilotedOverride:(BOOL)unpilotedOverride;
1183- (void)broadcastAIMessage:(NSString*)ai_message;
1184- (void)broadcastMessage:(NSString*)message_text withUnpilotedOverride:(BOOL)unpilotedOverride;
1186- (void)receiveCommsMessage:(NSString*)message_text from:(
ShipEntity*)other;
1187- (void)commsMessage:(NSString*)valueString withUnpilotedOverride:(BOOL)unpilotedOverride;
1194- (void)spawn:(NSString*)roles_number;
1199- (void)setTrackCloseContacts:(BOOL)value;
1205- (void)setHulk:(BOOL)isNowHulk;
1207#if OO_SALVAGE_SUPPORT
1208- (void)claimAsSalvage;
1209- (void)sendCoordinatesToPilot;
1210- (void)pilotArrived;
1215- (void)overrideScriptInfo:(NSDictionary*)override;
1218- (void)setScriptedMisjump:(BOOL)newValue;
1220- (void)setScriptedMisjumpRange:(GLfloat)newValue;
1225- (void)setDemoShip:(
OOScalar)demoRate;
1234- (void)doScriptEvent:(
OOJSPropID)message withArgument:(
id)argument;
1235- (void)doScriptEvent:(
OOJSPropID)message withArgument:(
id)argument1 andArgument:(
id)argument2;
1236- (void)doScriptEvent:(
OOJSPropID)message withArguments:(NSArray*)arguments;
1239- (void)doScriptEvent:(
OOJSPropID)message withArguments:(JSValue*)argv count:(
int)argc;
1240- (void)doScriptEvent:(
OOJSPropID)message inContext:(JSContext*)context withArguments:(JSValue*)argv count:(
int)argc;
1242- (void)doScriptEvent:(
OOJSPropID)message withArguments:(jsval*)argv count:(
int)argc;
1243- (void)doScriptEvent:(
OOJSPropID)message inContext:(JSContext*)context withArguments:(jsval*)argv count:(
int)argc;
1252#define ShipScriptEvent(context, ship, event, ...) \
1254 OOJSVal argv[] = { __VA_ARGS__ }; \
1255 int argc = sizeof argv / sizeof *argv; \
1256 [ship doScriptEvent:OOJSID(event) inContext:context withArguments:argv count:argc]; \
1257 for (int oojsArgIndex = 0; oojsArgIndex < argc; oojsArgIndex++) { \
1258 OOJSFreeValue(context, argv[oojsArgIndex]); \
1262#define ShipScriptEventNoCx(ship, event, ...) \
1264 JSContext* oojsEventContext = OOJSAcquireContext(); \
1265 ShipScriptEvent(oojsEventContext, ship, event, ##__VA_ARGS__); \
1266 OOJSRelinquishContext(oojsEventContext); \
1269- (void)reactToAIMessage:(NSString*)message context:(NSString*)debugContext;
1270- (void)sendAIMessage:(NSString*)message;
1271- (void)doScriptEvent:(
OOJSPropID)scriptEvent andReactToAIMessage:(NSString*)aiMessage;
1272- (void)doScriptEvent:(
OOJSPropID)scriptEvent withArgument:(
id)argument andReactToAIMessage:(NSString*)aiMessage;
1276#ifdef OO_DEBUG_MONITOR_ENABLED
1277@interface ShipEntity (Debug)
1284@interface Entity (SubEntityRelationship)
1289- (BOOL)isShipWithSubEntityShip:(
Entity*)other;
uint8_t OOWeaponFacingSet
NSString * OOCommodityType
uint64_t OOCreditsQuantity
OOEquipmentType * OOWeaponType
BOOL isWeaponNone(OOWeaponType weapon)
OOWeaponType OOWeaponTypeFromEquipmentIdentifierStrict(NSString *string) PURE_FUNC
OOWeaponType OOWeaponTypeFromEquipmentIdentifierLegacy(NSString *string)
NSDictionary * OODefaultShipShaderMacros(void)
GLfloat getWeaponRangeFromType(OOWeaponType weapon_type)
NSString * OOStringFromShipDamageType(OOShipDamageType type) CONST_FUNC
NSString * OOStringFromWeaponType(OOWeaponType weapon) CONST_FUNC
NSString * OOEquipmentIdentifierFromWeaponType(OOWeaponType weapon) CONST_FUNC
NSString * OODisplayStringFromAlertCondition(OOAlertCondition alertCondition)
NSString * OOStringFromBehaviour(OOBehaviour behaviour) CONST_FUNC
OOWeaponType OOWeaponTypeFromEquipmentIdentifierSloppy(NSString *string) PURE_FUNC
@ kOOShipDamageTypeDefault
OOWeaponType OOWeaponTypeFromString(NSString *string) PURE_FUNC
OOWeaponFacingSet weapon_facings
BOOL isExplicitlyUnpiloted()
BOOL suppressFlightNotifications()
OOTimeAbsolute last_shot_time
GLfloat laserHeatLevelAft()
OOCargoQuantity commodity_amount
Vector positionOffsetForShipInRotationToAlignment(ShipEntity *ship, Quaternion q, NSString *align)
void setCommsMessageColor()
unsigned suppressExplosion
Entity * rememberedShip()
NSUInteger passengerCount()
OOWeakReference * _targetStation
unsigned trackCloseContacts
BOOL canStillTrackPrimaryTarget()
OOCommodityType commodity_type
HPVector absoluteTractorPosition()
void resumePostProximityAlert()
OOEquipmentType * selectMissile()
GLfloat currentAimTolerance()
void transitionToAegisNone()
OOTimeAbsolute aiScriptWakeTime
OOWeakReference * _shipHitByLaser
float shieldBoostFactor()
NSArray * allDefenseTargets()
float weaponRechargeRate()
id primaryTargetWithoutValidityCheck()
NSUInteger defenseTargetCount()
ShipEntity ** scannedShips()
NSDictionary * shipInfoDictionary()
void setTargetToSystemStation()
float hyperspaceSpinTime()
NSUInteger passengerCapacity()
NSDictionary * scriptInfo
OOColor * scanner_display_color_hostile2
GLfloat scriptedMisjumpRange()
OOTimeAbsolute cargo_dump_time
void calculateTrackingCurve()
BOOL _escortPositionsValid
NSArray * contractListForScripting()
OOWeakReference * _thankedShip
OOSystemID destination_system
OOWeakReference * _rememberedShip
unsigned reportAIMessages
OOWeaponFacing currentWeaponFacing
unsigned isNearPlanetSurface
GLfloat rangeToDestination()
OOTimeAbsolute trackingCurveTimes[4]
NSDictionary * dockingInstructions
GLfloat weapon_damage_override
NSUInteger equipmentCount()
void broadcastEnergyBlastImminent()
int numberOfScannedShips()
GLfloat weapon_energy_use
BOOL witchspaceLeavingEffects()
GLfloat afterburner_speed_factor
ShipEntity * scanned_ships[MAX_SCAN_NUMBER+1]
OOAlertCondition alertCondition()
GLfloat _scriptedMisjumpRange
NSDictionary * shipinfoDictionary
ShipEntity * subEntityTakingDamage()
void broadcastThargoidDestroyed()
OOShipGroup * escortGroup()
BOOL hasMilitaryShieldEnhancer()
NSEnumerator * escortEnumerator()
unsigned suppressAegisMessages
NSMutableArray * _equipment
int checkShipsInVicinityForWitchJumpExit()
NSUInteger missileCount()
GLfloat laserHeatLevelStarboard()
OOColor * scanner_display_color2
OOCargoQuantity availableCargoSpace()
OOWeakReference * _subEntityTakingDamage
OOWeakReference * _primaryAggressor
unsigned number_of_navpoints
OOColor * scannerDisplayColor2()
float maxForwardShieldLevel()
NSArray * portWeaponOffset
Quaternion subentityRotationalVelocity
float hyperspaceMotorSpinTime
BOOL fireDirectLaserDefensiveShot()
GLint entityPersonalityInt()
OOShipGroup * stationGroup()
Entity * primaryAggressor()
OOTimeDelta missile_load_time
void validateDefenseTargets()
NSArray * equipmentListForScripting()
OOWeakSet * _collisionExceptions
OOWeaponType aft_weapon_type
void deactivateCloakingDevice()
BoundingBox totalBoundingBox
Entity * entityForShaderProperties()
OOUniversalID planetForLanding
OOCreditsQuantity removeMissiles()
OOWeakReference * _lastAegisLock
NSString * scanDescription()
OOWeakReference * _lastEscortTarget
NSEnumerator * defenseTargetEnumerator()
NSMutableDictionary * previousCondition
void updateTrackingCurve()
OOWeakReference * _primaryTarget
NSArray * starboardWeaponOffset
void setTargetToNearestFriendlyStation()
BOOL activateCloakingDevice()
NSEnumerator * equipmentEnumerator()
void resetExhaustPlumes()
OOFuelQuantity fuelCapacity()
float shieldRechargeRate()
OOEquipmentType * missile_list[SHIPENTITY_MAX_MISSILES]
id< OOHUDBeaconIcon > _beaconDrawable
NSArray * parcelListForScripting()
HPVector calculateTargetPosition()
OOAegisStatus aegis_status
void checkScannerIgnoringUnpowered()
BOOL hasMilitaryScannerFilter()
NSArray * cargoListForScripting()
NSEnumerator * flasherEnumerator()
Entity * proximityAlert()
NSMutableDictionary * closeContactsInfo
NSString * scan_description
StationEntity * targetStation()
GLfloat distance2_scanned_ships[MAX_SCAN_NUMBER+1]
uint16_t entity_personality
NSString * serializeShipSubEntities()
OOWeakReference * _proximityAlert
OOAlertCondition realAlertCondition()
OOTimeAbsolute missile_launch_time
GLfloat forward_weapon_temp
void removeAllEquipment()
ShipEntity * fireMissile()
NSString * shipUniqueName
OOCargoQuantity likely_cargo
OOTimeDelta missileLoadTime()
NSString * scanDescriptionForScripting()
NSUInteger missileCapacity()
OOColor * exhaust_emissive_color
void dealEnergyDamageWithinDesiredRange()
double approachAspectToPrimaryTarget()
Vector _escortPositions[MAX_ESCORTS]
OOPlanetEntity * findNearestPlanet()
OOCommodityType dumpCargo()
GLfloat starboard_weapon_temp
OOColor * scannerDisplayColorHostile2()
float energyRechargeRate()
BOOL isTemplateCargoPod()
ShipEntity * launchEscapeCapsule()
NSEnumerator * shipSubEntityEnumerator()
BOOL hasDockingComputer()
Vector missileLaunchPosition()
NSEnumerator * exhaustEnumerator()
NSArray * aftWeaponOffset
NSArray * forwardWeaponOffset
Entity< OOStellarBody > * findNearestStellarBody()
float maxAftShieldLevel()
OOColor * scanner_display_color1
NSArray * passengerListForScripting()
NSArray * collisionExceptions()
OOWeaponFacingSet weaponFacings()
NSEnumerator * subEntityEnumerator()
float randomEjectaTemperature()
OOWeaponType starboard_weapon_type
unsigned scripted_misjump
OOColor * scannerDisplayColorHostile1()
void removeAllDefenseTargets()
BOOL hasGalacticHyperdrive()
OOColor * exhaustEmissiveColor()
OOTimeAbsolute demoStartTime
void updateEscortFormation()
unsigned military_jammer_active
OOCargoQuantity commodityAmount()
GLfloat weapon_shot_temperature
void noteLostTargetAndGoIdle()
GLfloat energy_recharge_rate
OOCargoQuantity maxAvailableCargoSpace()
OOColor * default_laser_color
float weapon_recharge_rate
uint8_t pendingEscortCount()
OOSystemID destinationSystem()
ShipEntity * shipHitByLaser()
Quaternion subEntityRotationalVelocity()
OOShipGroup * _escortGroup
HPVector trackingCurveCoeffs[3]
GLfloat laserHeatLevelPort()
float afterburnerFactor()
NSArray * crewForScripting()
OOWeaponType port_weapon_type
double maxHyperspaceDistance()
OOCargoQuantity max_cargo
NSUInteger maxShipSubEntities()
NSUInteger subEntityCount()
NSString * shipDataKeyAutoRole()
BOOL hasHyperspaceMotor()
uint8_t _pendingEscortCount
OOAegisStatus checkForAegis()
GLfloat laserHeatLevelForward()
void setTargetToNearestStation()
Quaternion demoStartOrientation
double rangeToPrimaryTarget()
Triangle absoluteIJKForSubentity()
OOCargoQuantity cargoQuantityOnBoard()
unsigned next_navpoint_index
BOOL withinStationAegis()
OOWeakReference * _nextBeacon
GLfloat entityPersonality()
OOPlanetEntity * findNearestPlanetExcludingMoons()
OOWeakSet * _defenseTargets
OOColor * scanner_display_color_hostile1
unsigned docking_match_rotation
OOWeaponType forward_weapon_type
unsigned cloaking_device_active
OOCargoQuantity extra_cargo
void startTrackingCurve()
NSMutableArray * subEntities
OOCargoQuantity equipment_weight
unsigned _explicitlyUnpiloted
HPVector trackingCurvePositions[4]
GLfloat weaponRecoveryTime()
OOWeakReference * _prevBeacon
OOCommodityType commodityType()
BoundingBox findSubentityBoundingBox()
BOOL hasExpandedCargoBay()
OOWeakReference * _foundTarget
NSString * lastRadioMessage
Entity * lastEscortTarget()
OOColor * scannerDisplayColor1()
NSUInteger _maxShipSubIdx
unsigned haveExecutedSpawnAction
typedef int(ZCALLBACK *close_file_func) OF((voidpf opaque