Oolite 1.91.0.7644-241112-7f5034b
|
import "OOEntityWithDrawable.h"
import "OOPlanetEntity.h"
import "OOJSPropID.h"
#include "OOBehaviour.tbl"
#include "OOShipDamageType.tbl"
Go to the source code of this file.
Classes | |
class | ShipEntity |
category | ShipEntity(Debug) |
category | Entity(SubEntityRelationship) |
Typedefs | |
typedef enum OOBehaviour | OOBehaviour |
typedef OOEquipmentType * | OOWeaponType |
Enumerations | |
enum | OOBehaviour |
enum | OOAlertCondition { ALERT_CONDITION_DOCKED = 0 , ALERT_CONDITION_GREEN = 1 , ALERT_CONDITION_YELLOW = 2 , ALERT_CONDITION_RED = 3 } |
enum | OOShipDamageType { kOOShipDamageTypeDefault = kOODamageTypeEnergy } |
Functions | |
NSDictionary * | OODefaultShipShaderMacros (void) |
GLfloat | getWeaponRangeFromType (OOWeaponType weapon_type) |
NSString * | OOStringFromBehaviour (OOBehaviour behaviour) CONST_FUNC |
NSString * | OOEquipmentIdentifierFromWeaponType (OOWeaponType weapon) CONST_FUNC |
OOWeaponType | OOWeaponTypeFromEquipmentIdentifierSloppy (NSString *string) PURE_FUNC |
OOWeaponType | OOWeaponTypeFromEquipmentIdentifierStrict (NSString *string) PURE_FUNC |
OOWeaponType | OOWeaponTypeFromEquipmentIdentifierLegacy (NSString *string) |
NSString * | OOStringFromWeaponType (OOWeaponType weapon) CONST_FUNC |
OOWeaponType | OOWeaponTypeFromString (NSString *string) PURE_FUNC |
BOOL | isWeaponNone (OOWeaponType weapon) |
NSString * | OODisplayStringFromAlertCondition (OOAlertCondition alertCondition) |
NSString * | OOStringFromShipDamageType (OOShipDamageType type) CONST_FUNC |
#define AFTERBURNER_BURNRATE 0.25f |
Definition at line 45 of file ShipEntity.h.
#define AIMS_AGGRESSOR_SWITCHED_TARGET @"AGGRESSOR_SWITCHED_TARGET" |
Definition at line 94 of file ShipEntity.h.
#define BASELINE_SHIELD_LEVEL 128.0f |
Definition at line 99 of file ShipEntity.h.
#define CLOAKING_DEVICE_ENERGY_RATE 12.8f |
Definition at line 47 of file ShipEntity.h.
#define CLOAKING_DEVICE_MIN_ENERGY 128 |
Definition at line 48 of file ShipEntity.h.
#define CLOAKING_DEVICE_START_ENERGY 0.75f |
Definition at line 49 of file ShipEntity.h.
#define COMBAT_AI_CONFIDENCE_FACTOR 1250000.0f |
Definition at line 122 of file ShipEntity.h.
#define COMBAT_AI_DOGFIGHTER 6.5f |
Definition at line 129 of file ShipEntity.h.
#define COMBAT_AI_FLEES_BETTER 6.0f |
Definition at line 127 of file ShipEntity.h.
#define COMBAT_AI_FLEES_BETTER_2 9.0f |
Definition at line 134 of file ShipEntity.h.
#define COMBAT_AI_IS_SMART 5.0f |
Definition at line 125 of file ShipEntity.h.
#define COMBAT_AI_ISNT_AWFUL 0.0f |
Definition at line 123 of file ShipEntity.h.
#define COMBAT_AI_STANDARD_REACTION_TIME 1.5f |
Definition at line 136 of file ShipEntity.h.
#define COMBAT_AI_TRACKS_CLOSER 7.5f |
Definition at line 131 of file ShipEntity.h.
#define COMBAT_AI_USES_SNIPING 8.5f |
Definition at line 132 of file ShipEntity.h.
#define COMBAT_AI_WEAPON_TEMP_READY 0.25f * NPC_MAX_WEAPON_TEMP |
Definition at line 118 of file ShipEntity.h.
#define COMBAT_AI_WEAPON_TEMP_USABLE WEAPON_COOLING_CUTOUT * NPC_MAX_WEAPON_TEMP |
Definition at line 119 of file ShipEntity.h.
#define COMBAT_BROADSIDE_IN_RANGE_FACTOR 0.020f |
Definition at line 55 of file ShipEntity.h.
#define COMBAT_BROADSIDE_RANGE_FACTOR 0.900f |
Definition at line 57 of file ShipEntity.h.
#define COMBAT_IN_RANGE_FACTOR 0.035f |
Definition at line 54 of file ShipEntity.h.
#define COMBAT_JINK_OFFSET 500.0f |
Definition at line 59 of file ShipEntity.h.
#define COMBAT_OUT_RANGE_FACTOR 0.500f |
Definition at line 56 of file ShipEntity.h.
#define COMBAT_WEAPON_RANGE_FACTOR 1.200f |
Definition at line 58 of file ShipEntity.h.
#define DEFAULT_HYPERSPACE_SPIN_TIME 15.0f |
Definition at line 70 of file ShipEntity.h.
#define DIFF_STRING_ENTRY | ( | label, | |
string ) |
Definition at line 184 of file ShipEntity.h.
#define EJECTA_TEMP_FACTOR 0.85f |
Definition at line 69 of file ShipEntity.h.
#define ENTITY_PERSONALITY_INVALID 0xFFFFU |
Definition at line 111 of file ShipEntity.h.
Referenced by PersonalityForCommanderDict().
#define ENTITY_PERSONALITY_MAX 0x7FFFU |
Definition at line 110 of file ShipEntity.h.
Referenced by PersonalityForCommanderDict(), PlayerReplaceShip(), and ShipSetProperty().
#define ENTRY | ( | label, | |
value ) |
Definition at line 147 of file ShipEntity.h.
#define ESCORT_SPACING_FACTOR 3.0 |
Definition at line 75 of file ShipEntity.h.
#define INITIAL_SHOT_TIME 100.0 |
Definition at line 100 of file ShipEntity.h.
#define MAIN_PLASMA_DURATION 5.0 |
Definition at line 86 of file ShipEntity.h.
#define MAX_COS 0.995 |
Definition at line 143 of file ShipEntity.h.
Definition at line 144 of file ShipEntity.h.
#define MAX_ESCORTS 16 |
Definition at line 74 of file ShipEntity.h.
Referenced by ShipSetProperty().
#define MAX_JUMP_RANGE 7.0 |
Definition at line 107 of file ShipEntity.h.
Referenced by PlayerSetEscapePodDestination(), and ShipSetProperty().
#define MAX_LANDING_SPEED 50.0 |
Definition at line 140 of file ShipEntity.h.
#define MAX_LANDING_SPEED2 (MAX_LANDING_SPEED * MAX_LANDING_SPEED) |
Definition at line 141 of file ShipEntity.h.
#define MAX_SCAN_NUMBER 32 |
Definition at line 97 of file ShipEntity.h.
#define MAX_TARGETS 24 |
Definition at line 36 of file ShipEntity.h.
#define MERCHANTMAN_MAX_CARGO 125 |
Definition at line 38 of file ShipEntity.h.
#define MILITARY_JAMMER_ENERGY_RATE 3 |
Definition at line 51 of file ShipEntity.h.
#define MILITARY_JAMMER_MIN_ENERGY 128 |
Definition at line 52 of file ShipEntity.h.
#define MIN_FUEL 0 |
Definition at line 102 of file ShipEntity.h.
#define NPC_MAX_WEAPON_TEMP 256.0f |
Definition at line 115 of file ShipEntity.h.
#define NPC_PLASMA_RANGE (MAIN_PLASMA_DURATION * NPC_PLASMA_SPEED) |
Definition at line 87 of file ShipEntity.h.
#define NPC_PLASMA_SPEED 1500.0f |
Definition at line 85 of file ShipEntity.h.
#define PIRATES_PREFER_PLAYER YES |
Definition at line 40 of file ShipEntity.h.
#define PLAYER_PLASMA_RANGE (MAIN_PLASMA_DURATION * PLAYER_PLASMA_SPEED) |
Definition at line 90 of file ShipEntity.h.
#define PLAYER_PLASMA_SPEED 1000.0f |
Definition at line 89 of file ShipEntity.h.
#define RAIDER_MAX_CARGO 5 |
Definition at line 37 of file ShipEntity.h.
#define SHIP_COOLING_FACTOR 0.1f |
Definition at line 61 of file ShipEntity.h.
#define SHIP_ENERGY_DAMAGE_TO_HEAT_FACTOR (mass > 400000 ? 200000 / mass : 0.5) |
Definition at line 65 of file ShipEntity.h.
#define SHIP_INSULATION_FACTOR 0.00175f |
Definition at line 66 of file ShipEntity.h.
#define SHIP_MAX_CABIN_TEMP 256.0f |
Definition at line 67 of file ShipEntity.h.
Referenced by ShipGetProperty().
#define SHIP_MIN_CABIN_TEMP 60.0f |
Definition at line 68 of file ShipEntity.h.
#define SHIP_THRUST_FACTOR 5.0f |
Definition at line 44 of file ShipEntity.h.
#define SHIPENTITY_MAX_MISSILES 32 |
Definition at line 77 of file ShipEntity.h.
#define ShipScriptEvent | ( | context, | |
ship, | |||
event, | |||
... ) |
Definition at line 1267 of file ShipEntity.h.
#define ShipScriptEventNoCx | ( | ship, | |
event, | |||
... ) |
Definition at line 1273 of file ShipEntity.h.
#define SUN_TEMPERATURE 1250.0f |
Definition at line 72 of file ShipEntity.h.
#define TRACTOR_FORCE 2500.0f |
Definition at line 92 of file ShipEntity.h.
#define TURRET_MINIMUM_COS 0.20f |
Definition at line 42 of file ShipEntity.h.
#define TURRET_SHOT_DURATION 3.0 |
Definition at line 81 of file ShipEntity.h.
#define TURRET_SHOT_FREQUENCY (TURRET_SHOT_DURATION * TURRET_SHOT_DURATION * TURRET_SHOT_DURATION / 100.0) |
Definition at line 83 of file ShipEntity.h.
#define TURRET_SHOT_RANGE (TURRET_SHOT_SPEED * TURRET_SHOT_DURATION) |
Definition at line 82 of file ShipEntity.h.
#define TURRET_SHOT_SPEED 2000.0f |
Definition at line 80 of file ShipEntity.h.
#define TURRET_TYPICAL_ENERGY 25.0f |
Definition at line 79 of file ShipEntity.h.
#define WEAPON_COOLING_CUTOUT 0.85f |
Definition at line 116 of file ShipEntity.h.
#define WEAPON_COOLING_FACTOR 6.0f |
Definition at line 114 of file ShipEntity.h.
typedef enum OOBehaviour OOBehaviour |
typedef OOEquipmentType* OOWeaponType |
Definition at line 168 of file ShipEntity.h.
enum OOAlertCondition |
Enumerator | |
---|---|
ALERT_CONDITION_DOCKED | |
ALERT_CONDITION_GREEN | |
ALERT_CONDITION_YELLOW | |
ALERT_CONDITION_RED |
Definition at line 171 of file ShipEntity.h.
enum OOBehaviour |
Definition at line 149 of file ShipEntity.h.
enum OOShipDamageType |
Enumerator | |
---|---|
kOOShipDamageTypeDefault |
Definition at line 182 of file ShipEntity.h.
GLfloat getWeaponRangeFromType | ( | OOWeaponType | weapon_type | ) |
Definition at line 14948 of file ShipEntity.m.
References OOEquipmentType::weaponRange.
BOOL isWeaponNone | ( | OOWeaponType | weapon | ) |
Definition at line 14954 of file ShipEntity.m.
Referenced by ShipThreatAssessment(), and StationAddShipToShipyard().
NSDictionary * OODefaultShipShaderMacros | ( | void | ) |
Definition at line 14898 of file ShipEntity.m.
References ResourceManager::materialDefaults, and nil.
NSString * OODisplayStringFromAlertCondition | ( | OOAlertCondition | alertCondition | ) |
Definition at line 460 of file OOConstToString.m.
NSString * OOEquipmentIdentifierFromWeaponType | ( | OOWeaponType | weapon | ) |
Definition at line 280 of file OOConstToString.m.
References OOEquipmentType::identifier.
NSString * OOStringFromBehaviour | ( | OOBehaviour | behaviour | ) |
Definition at line 51 of file OOConstToString.m.
NSString * OOStringFromShipDamageType | ( | OOShipDamageType | type | ) |
Definition at line 115 of file OOConstToString.m.
NSString * OOStringFromWeaponType | ( | OOWeaponType | weapon | ) |
Definition at line 264 of file OOConstToString.m.
References OOEquipmentType::identifier, and nil.
OOWeaponType OOWeaponTypeFromEquipmentIdentifierLegacy | ( | NSString * | string | ) |
Definition at line 307 of file OOConstToString.m.
References OOWeaponTypeFromEquipmentIdentifierSloppy().
OOWeaponType OOWeaponTypeFromEquipmentIdentifierSloppy | ( | NSString * | string | ) |
Definition at line 286 of file OOConstToString.m.
References OOEquipmentType::equipmentTypeWithIdentifier:, and nil.
Referenced by OOWeaponTypeFromEquipmentIdentifierLegacy(), OOWeaponTypeFromEquipmentIdentifierStrict(), OOWeaponTypeFromString(), and StationAddShipToShipyard().
OOWeaponType OOWeaponTypeFromEquipmentIdentifierStrict | ( | NSString * | string | ) |
Definition at line 331 of file OOConstToString.m.
References OOWeaponTypeFromEquipmentIdentifierSloppy().
OOWeaponType OOWeaponTypeFromString | ( | NSString * | string | ) |
Definition at line 274 of file OOConstToString.m.
References OOWeaponTypeFromEquipmentIdentifierSloppy().