Oolite 1.91.0.7644-241112-7f5034b
|
import <Foundation/Foundation.h>
import "WormholeEntity.h"
import "ShipEntity.h"
import "GuiDisplayGen.h"
import "OOTypes.h"
import "OOJSPropID.h"
import "OOCommodityMarket.h"
#include "OOGUIScreenID.tbl"
#include "OOGalacticHyperspaceBehaviour.tbl"
Go to the source code of this file.
Classes | |
class | PlayerEntity |
Typedefs | |
typedef uint16_t | OOAlertFlags |
Functions | |
OOINLINE PlayerEntity * | OOGetPlayer (void) INLINE_CONST_FUNC |
NSString * | OODisplayRatingStringFromKillCount (unsigned kills) |
NSString * | KillCountToRatingAndKillString (unsigned kills) |
NSString * | OODisplayStringFromLegalStatus (int legalStatus) |
NSString * | OOStringFromGUIScreenID (OOGUIScreenID screen) CONST_FUNC |
OOGUIScreenID | OOGUIScreenIDFromString (NSString *string) PURE_FUNC |
OOGalacticHyperspaceBehaviour | OOGalacticHyperspaceBehaviourFromString (NSString *string) PURE_FUNC |
NSString * | OOStringFromGalacticHyperspaceBehaviour (OOGalacticHyperspaceBehaviour behaviour) CONST_FUNC |
#define AFT_FACING_STRING DESC(@"aft-facing-string") |
Definition at line 332 of file PlayerEntity.h.
#define ALLOW_CUSTOM_VIEWS_WHILE_PAUSED 1 |
Definition at line 42 of file PlayerEntity.h.
#define CHART_CLIP_BORDER 10.0 |
Definition at line 106 of file PlayerEntity.h.
#define CHART_HEIGHT_AT_MAX_ZOOM 64.0 |
Definition at line 100 of file PlayerEntity.h.
#define CHART_MAX_ZOOM (256.0/CHART_WIDTH_AT_MAX_ZOOM) |
Definition at line 102 of file PlayerEntity.h.
Referenced by MissionRunScreen().
#define CHART_SCREEN_VERTICAL_CENTRE (10*MAIN_GUI_ROW_HEIGHT) |
Definition at line 107 of file PlayerEntity.h.
#define CHART_SCREEN_VERTICAL_CENTRE_COMPACT (7*MAIN_GUI_ROW_HEIGHT) |
Definition at line 108 of file PlayerEntity.h.
#define CHART_SCROLL_AT_X 25.0 |
Definition at line 104 of file PlayerEntity.h.
#define CHART_SCROLL_AT_Y 31.0 |
Definition at line 105 of file PlayerEntity.h.
#define CHART_WIDTH_AT_MAX_ZOOM 64.0 |
Definition at line 99 of file PlayerEntity.h.
#define CHART_ZOOM_SHOW_LABELS 2.0 |
Definition at line 111 of file PlayerEntity.h.
#define CHART_ZOOM_SPEED_FACTOR 1.05 |
Definition at line 109 of file PlayerEntity.h.
#define CONTRACTS_BAD_KEY @"contracts_expired" |
Definition at line 343 of file PlayerEntity.h.
#define CONTRACTS_GOOD_KEY @"contracts_fulfilled" |
Definition at line 342 of file PlayerEntity.h.
#define CONTRACTS_UNKNOWN_KEY @"contracts_unknown" |
Definition at line 344 of file PlayerEntity.h.
#define CUSTOM_VIEW_MAX_ZOOM_IN 1.5 |
Definition at line 54 of file PlayerEntity.h.
#define CUSTOM_VIEW_MAX_ZOOM_OUT 25 |
Definition at line 55 of file PlayerEntity.h.
#define CUSTOMEQUIP_BUTTONACTIVATE @"buttonActivate" |
Definition at line 125 of file PlayerEntity.h.
#define CUSTOMEQUIP_BUTTONMODE @"buttonMode" |
Definition at line 126 of file PlayerEntity.h.
#define CUSTOMEQUIP_EQUIPKEY @"equipmentKey" |
Definition at line 121 of file PlayerEntity.h.
#define CUSTOMEQUIP_EQUIPNAME @"equipmentName" |
Definition at line 122 of file PlayerEntity.h.
#define CUSTOMEQUIP_KEYACTIVATE @"keyActivate" |
Definition at line 123 of file PlayerEntity.h.
#define CUSTOMEQUIP_KEYMODE @"keyMode" |
Definition at line 124 of file PlayerEntity.h.
#define ECM_DURATION 2.5f |
Definition at line 296 of file PlayerEntity.h.
#define ECM_ENERGY_DRAIN_FACTOR 20.0f |
Definition at line 295 of file PlayerEntity.h.
#define ENTRY | ( | label, | |
value ) |
Definition at line 57 of file PlayerEntity.h.
#define ESCAPE_SEQUENCE_TIME 10.0 |
Definition at line 329 of file PlayerEntity.h.
#define FORWARD_FACING_STRING DESC(@"forward-facing-string") |
Definition at line 331 of file PlayerEntity.h.
#define GALACTIC_HYPERSPACE_ENTRY | ( | label, | |
value ) |
Definition at line 64 of file PlayerEntity.h.
#define GRAMS_PER_POD (KILOGRAMS_PER_POD * 1000) |
Definition at line 1334 of file PlayerEntity.h.
#define GUI_FIRST_ROW | ( | GROUP | ) |
Definition at line 50 of file PlayerEntity.h.
#define GUI_ROW | ( | GROUP, | |
ITEM ) |
Definition at line 52 of file PlayerEntity.h.
#define GUI_ROW_INIT | ( | GUI | ) |
Definition at line 49 of file PlayerEntity.h.
#define HYPERSPEED_FACTOR [PLAYER hyperspeedFactor] |
Definition at line 320 of file PlayerEntity.h.
Referenced by ShipSetProperty().
#define KEY_REPEAT_INTERVAL 0.20 |
Definition at line 336 of file PlayerEntity.h.
#define KEYCONFIG_CUSTOMEQUIP @"CustomEquipActivation" |
Definition at line 127 of file PlayerEntity.h.
#define KILOGRAMS_PER_POD 1000 |
Definition at line 1332 of file PlayerEntity.h.
#define MANIFEST_SCREEN_ROW_BACK 1 |
Definition at line 361 of file PlayerEntity.h.
#define MANIFEST_SCREEN_ROW_NEXT ([[PLAYER hud] isHidden]?27:20) |
Definition at line 362 of file PlayerEntity.h.
#define MAX_GRAMS_IN_SAFE ((GRAMS_PER_POD / 2) - 1) |
Definition at line 1335 of file PlayerEntity.h.
#define MAX_HYPERSPEED_FACTOR 1024.0 |
Definition at line 322 of file PlayerEntity.h.
#define MAX_KILOGRAMS_IN_SAFE ((KILOGRAMS_PER_POD / 2) - 1) |
Definition at line 1333 of file PlayerEntity.h.
#define MIN_HYPERSPEED_FACTOR 32.0 |
Definition at line 321 of file PlayerEntity.h.
Referenced by ShipSetProperty().
#define MISSION_DEST_LEGACY @"__oolite_legacy_destinations" |
Definition at line 364 of file PlayerEntity.h.
#define OO_RESOLUTION_OPTION 1 |
Definition at line 117 of file PlayerEntity.h.
#define OO_VARIABLE_TORUS_SPEED 1 |
Definition at line 46 of file PlayerEntity.h.
#define PARCEL_BAD_KEY @"parcels_expired" |
Definition at line 349 of file PlayerEntity.h.
#define PARCEL_GOOD_KEY @"parcels_fulfilled" |
Definition at line 348 of file PlayerEntity.h.
#define PARCEL_UNKNOWN_KEY @"parcels_unknown" |
Definition at line 350 of file PlayerEntity.h.
#define PASSAGE_BAD_KEY @"passage_expired" |
Definition at line 346 of file PlayerEntity.h.
#define PASSAGE_GOOD_KEY @"passage_fulfilled" |
Definition at line 345 of file PlayerEntity.h.
#define PASSAGE_UNKNOWN_KEY @"passage_unknown" |
Definition at line 347 of file PlayerEntity.h.
#define PITCH_DAMPING_FACTOR 1.0f |
Definition at line 299 of file PlayerEntity.h.
#define PLAYER OOGetPlayer() |
Definition at line 1330 of file PlayerEntity.h.
Referenced by ExpandStringKeySpecial(), OOWaypointEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, StationEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, GlobalSetScreenBackground(), HeadUpDisplay::hudDrawReticleOnTarget, PlayerEntity(OOJavaScriptExtensions)::javaScriptEngineWillReset:, LookUpLegacySelector(), OOPlayerForScripting(), PlayerEntity(Scripting)::PerformActionStatment, PlayerEndScenario(), PlayerEntity(Scripting)::scriptTarget, OOJavaScriptEngine(OOMonitorSupportInternal)::sendMonitorLogMessage:withMessageClass:inContext:, ShipEnterWormhole(), ShipSetProperty(), ShipThreatAssessment(), SoundFromJSValue(), StationAddShipToShipyard(), StationSetMarketPrice(), StationSetMarketQuantity(), and VisualEffectSetProperty().
#define PLAYER_DIAL_MAX_ALTITUDE 40000.0 |
Definition at line 312 of file PlayerEntity.h.
#define PLAYER_DOCKING_AI_NAME @"oolite-player-AI.plist" |
Definition at line 359 of file PlayerEntity.h.
#define PLAYER_INTERNAL_DAMAGE_FACTOR 31 |
Definition at line 357 of file PlayerEntity.h.
#define PLAYER_MAX_FUEL 70 |
Definition at line 307 of file PlayerEntity.h.
Referenced by EquipmentInfoGetProperty().
#define PLAYER_MAX_MISSILES 16 |
Definition at line 309 of file PlayerEntity.h.
#define PLAYER_MAX_TRUMBLES 24 |
Definition at line 315 of file PlayerEntity.h.
#define PLAYER_MAX_WEAPON_TEMP 256.0f |
Definition at line 302 of file PlayerEntity.h.
#define PLAYER_SHIP_CLOCK_START (2084004 * 86400.0) |
Definition at line 338 of file PlayerEntity.h.
#define PLAYER_SHIP_DESC @"cobra3-player" |
Definition at line 327 of file PlayerEntity.h.
#define PLAYER_SHIP_SUBENTITY_TRADE_IN_VALUE 3 |
Definition at line 340 of file PlayerEntity.h.
Referenced by ShipRestoreSubEntities().
#define PLAYER_STARTING_MAX_MISSILES 4 |
Definition at line 310 of file PlayerEntity.h.
#define PLAYER_STARTING_MISSILES 3 |
Definition at line 311 of file PlayerEntity.h.
#define PLAYER_SUPER_ALTITUDE2 10000000000.0 |
Definition at line 313 of file PlayerEntity.h.
#define PLAYER_TARGET_MEMORY_SIZE 16 |
Definition at line 317 of file PlayerEntity.h.
#define PORT_FACING_STRING DESC(@"port-facing-string") |
Definition at line 333 of file PlayerEntity.h.
#define ROLL_DAMPING_FACTOR 1.0f |
Definition at line 298 of file PlayerEntity.h.
#define SCANNER_ECM_FUZZINESS 1.25 |
Definition at line 355 of file PlayerEntity.h.
#define SCANNER_ZOOM_RATE_DOWN -8.0 |
Definition at line 354 of file PlayerEntity.h.
#define SCANNER_ZOOM_RATE_UP 2.0 |
Definition at line 353 of file PlayerEntity.h.
#define SCRIPT_TIMER_INTERVAL 10.0 |
Definition at line 43 of file PlayerEntity.h.
#define STARBOARD_FACING_STRING DESC(@"starboard-facing-string") |
Definition at line 334 of file PlayerEntity.h.
#define YAW_DAMPING_FACTOR 1.0f |
Definition at line 300 of file PlayerEntity.h.
typedef uint16_t OOAlertFlags |
Definition at line 246 of file PlayerEntity.h.
anonymous enum |
Enumerator | |
---|---|
kOOGUIScreenIDDefault | |
kOOGalacticHyperspaceBehaviourDefault |
Definition at line 77 of file PlayerEntity.h.
anonymous enum |
Definition at line 129 of file PlayerEntity.h.
anonymous enum |
Definition at line 176 of file PlayerEntity.h.
anonymous enum |
Enumerator | |
---|---|
GUI_ROW_GAMEOPTIONS_HDRPAPERWHITE | |
GUI_ROW_GAMEOPTIONS_HDRMAXBRIGHTNESS |
Definition at line 219 of file PlayerEntity.h.
anonymous enum |
Enumerator | |
---|---|
ALERT_FLAG_DOCKED | |
ALERT_FLAG_MASS_LOCK | |
ALERT_FLAG_YELLOW_LIMIT | |
ALERT_FLAG_TEMP | |
ALERT_FLAG_ALT | |
ALERT_FLAG_ENERGY | |
ALERT_FLAG_HOSTILES |
Definition at line 236 of file PlayerEntity.h.
enum OOFuelScoopStatus |
Enumerator | |
---|---|
SCOOP_STATUS_NOT_INSTALLED | |
SCOOP_STATUS_FULL_HOLD | |
SCOOP_STATUS_OKAY | |
SCOOP_STATUS_ACTIVE |
Definition at line 226 of file PlayerEntity.h.
Enumerator | |
---|---|
GALACTIC_HYPERSPACE_MAX |
Definition at line 66 of file PlayerEntity.h.
enum OOGUIScreenID |
Definition at line 59 of file PlayerEntity.h.
enum OOMarketFilterMode |
Enumerator | |
---|---|
MARKET_FILTER_MODE_OFF | |
MARKET_FILTER_MODE_TRADE | |
MARKET_FILTER_MODE_HOLD | |
MARKET_FILTER_MODE_STOCK | |
MARKET_FILTER_MODE_LEGAL | |
MARKET_FILTER_MODE_RESTRICTED | |
MARKET_FILTER_MODE_MAX |
Definition at line 268 of file PlayerEntity.h.
enum OOMarketSorterMode |
Enumerator | |
---|---|
MARKET_SORTER_MODE_OFF | |
MARKET_SORTER_MODE_ALPHA | |
MARKET_SORTER_MODE_PRICE | |
MARKET_SORTER_MODE_STOCK | |
MARKET_SORTER_MODE_HOLD | |
MARKET_SORTER_MODE_UNIT | |
MARKET_SORTER_MODE_MAX |
Definition at line 282 of file PlayerEntity.h.
enum OOMissileStatus |
Enumerator | |
---|---|
MISSILE_STATUS_SAFE | |
MISSILE_STATUS_ARMED | |
MISSILE_STATUS_TARGET_LOCKED |
Definition at line 249 of file PlayerEntity.h.
Enumerator | |
---|---|
PLAYER_FLEEING_UNLIKELY | |
PLAYER_FLEEING_NONE | |
PLAYER_FLEEING_MAYBE | |
PLAYER_FLEEING_CARGO | |
PLAYER_FLEEING_LIKELY |
Definition at line 258 of file PlayerEntity.h.
Enumerator | |
---|---|
OOPRIMEDEQUIP_ACTIVATED | |
OOPRIMEDEQUIP_MODE |
Definition at line 84 of file PlayerEntity.h.
enum OOSpeechSettings |
Enumerator | |
---|---|
OOSPEECHSETTINGS_OFF | |
OOSPEECHSETTINGS_COMMS | |
OOSPEECHSETTINGS_ALL |
Definition at line 90 of file PlayerEntity.h.
NSString * KillCountToRatingAndKillString | ( | unsigned | kills | ) |
Definition at line 432 of file OOConstToString.m.
NSString * OODisplayRatingStringFromKillCount | ( | unsigned | kills | ) |
Definition at line 404 of file OOConstToString.m.
References nil.
Referenced by PlayerGetProperty().
NSString * OODisplayStringFromLegalStatus | ( | int | legalStatus | ) |
Definition at line 438 of file OOConstToString.m.
References nil.
Referenced by PlayerGetProperty().
OOGalacticHyperspaceBehaviour OOGalacticHyperspaceBehaviourFromString | ( | NSString * | string | ) |
Definition at line 159 of file OOConstToString.m.
References kOOGalacticHyperspaceBehaviourDefault, and OOGalacticHyperspaceBehaviourFromString().
Referenced by OOGalacticHyperspaceBehaviourFromString().
OOINLINE PlayerEntity * OOGetPlayer | ( | void | ) |
Definition at line 1322 of file PlayerEntity.h.
OOGUIScreenID OOGUIScreenIDFromString | ( | NSString * | string | ) |
Definition at line 175 of file OOConstToString.m.
References kOOGUIScreenIDDefault.
NSString * OOStringFromGalacticHyperspaceBehaviour | ( | OOGalacticHyperspaceBehaviour | behaviour | ) |
Definition at line 82 of file OOConstToString.m.
NSString * OOStringFromGUIScreenID | ( | OOGUIScreenID | screen | ) |
Definition at line 93 of file OOConstToString.m.