|
Oolite 1.91.0.7712-251017-85ce217
|
import "OOConstToString.h"#include <jsapi.h>import "OOCollectionExtractors.h"import "Universe.h"import "PlayerEntity.h"import "OOEquipmentType.h"#include "OOEntityStatus.tbl"#include "OOBehaviour.tbl"#include "OOCompassMode.tbl"#include "OOLongRangeChartMode.tbl"#include "OOGalacticHyperspaceBehaviour.tbl"#include "OOGUIScreenID.tbl"#include "OOScanClass.tbl"#include "OOShipDamageType.tbl"#include "OOLegalStatusReason.tbl"Go to the source code of this file.
Macros | |
| #define | CASE(foo) |
| #define | REVERSE_CASE(foo) |
| #define | ENTRY(label, value) |
| #define | GALACTIC_HYPERSPACE_ENTRY(label, value) |
| #define | DIFF_STRING_ENTRY(label, string) |
| #define | ENTRY(label, value) |
| #define | GALACTIC_HYPERSPACE_ENTRY(label, value) |
| #define CASE | ( | foo | ) |
Definition at line 33 of file OOConstToString.m.
Referenced by CargoTypeToString(), DockingClearanceStatusToString(), EnergyUnitTypeToString(), JSTypeToString(), OOStringFromGraphicsDetail(), OOStringFromHDRToneMapper(), OOStringFromSDRToneMapper(), OOStringFromShaderSetting(), and RouteTypeToString().
| #define DIFF_STRING_ENTRY | ( | label, | |
| string ) |
Definition at line 39 of file OOConstToString.m.
| #define ENTRY | ( | label, | |
| value ) |
Definition at line 37 of file OOConstToString.m.
| #define ENTRY | ( | label, | |
| value ) |
Definition at line 37 of file OOConstToString.m.
| #define GALACTIC_HYPERSPACE_ENTRY | ( | label, | |
| value ) |
Definition at line 38 of file OOConstToString.m.
| #define GALACTIC_HYPERSPACE_ENTRY | ( | label, | |
| value ) |
Definition at line 38 of file OOConstToString.m.
| #define REVERSE_CASE | ( | foo | ) |
Definition at line 34 of file OOConstToString.m.
Referenced by OOGraphicsDetailFromString(), OOHDRToneMapperFromString(), OOSDRToneMapperFromString(), OOShaderSettingFromString(), StringToCargoType(), StringToEnergyUnitType(), and StringToRouteType().
| NSString * CargoTypeToString | ( | OOCargoType | cargo | ) |
Definition at line 338 of file OOConstToString.m.
References CARGO_ALLOY, CARGO_CHARACTER, CARGO_MINERALS, CARGO_NOT_CARGO, CARGO_RANDOM, CARGO_SCRIPTED_ITEM, CARGO_SLAVES, CARGO_THARGOID, and CASE.
| NSString * CommodityDisplayNameForCommodityArray | ( | NSArray * | commodityDefinition | ) |
Definition at line 513 of file OOConstToString.m.
References CommodityDisplayNameForSymbolicName(), and MARKET_NAME.
| NSString * CommodityDisplayNameForSymbolicName | ( | NSString * | symbolicName | ) |
Definition at line 506 of file OOConstToString.m.
Referenced by CommodityDisplayNameForCommodityArray(), and GlobalDisplayNameForCommodity().
| NSString * DisplayStringForMassUnit | ( | OOMassUnit | unit | ) |
Definition at line 519 of file OOConstToString.m.
References DESC, UNITS_GRAMS, UNITS_KILOGRAMS, and UNITS_TONS.
Referenced by DisplayStringForMassUnitForCommodity(), and PlayerEntity(OOPrivate)::showMarketScreenDataLine:forGood:inMarket:holdQuantity:.
| NSString * DisplayStringForMassUnitForCommodity | ( | OOCommodityType | commodity | ) |
Definition at line 532 of file OOConstToString.m.
References DisplayStringForMassUnit(), and UNIVERSE.
| NSString * DockingClearanceStatusToString | ( | OODockingClearanceStatus | dockingClearanceStatus | ) |
Definition at line 548 of file OOConstToString.m.
References CASE, DOCKING_CLEARANCE_STATUS_GRANTED, DOCKING_CLEARANCE_STATUS_NONE, DOCKING_CLEARANCE_STATUS_NOT_REQUIRED, DOCKING_CLEARANCE_STATUS_REQUESTED, and DOCKING_CLEARANCE_STATUS_TIMING_OUT.
Referenced by PlayerGetProperty().
| NSString * EnergyUnitTypeToString | ( | OOEnergyUnitType | unit | ) |
Definition at line 373 of file OOConstToString.m.
References CASE, ENERGY_UNIT_NAVAL, ENERGY_UNIT_NAVAL_DAMAGED, ENERGY_UNIT_NONE, ENERGY_UNIT_NORMAL, ENERGY_UNIT_NORMAL_DAMAGED, OLD_ENERGY_UNIT_NAVAL, and OLD_ENERGY_UNIT_NORMAL.
Referenced by PlayerEntity::dumpSelfState.
| NSString * JSTypeToString | ( | int | type | ) |
Definition at line 246 of file OOConstToString.m.
References CASE.
| NSString * KillCountToRatingAndKillString | ( | unsigned | kills | ) |
Definition at line 432 of file OOConstToString.m.
Referenced by PlayerEntity::setGuiToStatusScreen, and PlayerEntity(OOLoadSavePrivate)::showCommanderShip:.
| OOCompassMode OOCompassModeFromString | ( | NSString * | string | ) |
Definition at line 151 of file OOConstToString.m.
References kOOCompassModeDefault.
| NSString * OODisplayRatingStringFromKillCount | ( | unsigned | kills | ) |
Definition at line 404 of file OOConstToString.m.
References nil.
Referenced by PlayerEntity(Scripting)::commanderRank_string, PlayerEntity(OOLoadSavePrivate)::lsCommanders:directory:pageNumber:highlightName:, and PlayerGetProperty().
| NSString * OODisplayStringFromAlertCondition | ( | OOAlertCondition | alertCondition | ) |
Definition at line 460 of file OOConstToString.m.
Referenced by PlayerEntity::setGuiToStatusScreen.
| NSString * OODisplayStringFromEconomyID | ( | OOEconomyID | economy | ) |
Definition at line 230 of file OOConstToString.m.
Referenced by PlayerEntity(Scripting)::systemEconomy_string, and SystemGetProperty().
| NSString * OODisplayStringFromGovernmentID | ( | OOGovernmentID | government | ) |
Definition at line 214 of file OOConstToString.m.
Referenced by SystemGetProperty(), and PlayerEntity(Scripting)::systemGovernment_string.
| NSString * OODisplayStringFromLegalStatus | ( | int | legalStatus | ) |
Definition at line 438 of file OOConstToString.m.
References nil.
Referenced by PlayerEntity(Scripting)::commanderLegalStatus_string, PlayerGetProperty(), PlayerEntity::setGuiToStatusScreen, and PlayerEntity(OOLoadSavePrivate)::showCommanderShip:.
| NSString * OODisplayStringFromShaderSetting | ( | OOShaderSetting | setting | ) |
Definition at line 467 of file OOConstToString.m.
References DESC, SHADERS_FULL, SHADERS_NOT_SUPPORTED, SHADERS_OFF, and SHADERS_SIMPLE.
| OOEntityStatus OOEntityStatusFromString | ( | NSString * | string | ) |
Definition at line 143 of file OOConstToString.m.
References kOOEntityStatusDefault.
| NSString * OOEquipmentIdentifierFromWeaponType | ( | OOWeaponType | weapon | ) |
Definition at line 280 of file OOConstToString.m.
References OOEquipmentType::identifier.
Referenced by Universe::tradeInValueForCommanderDictionary:.
| OOGalacticHyperspaceBehaviour OOGalacticHyperspaceBehaviourFromString | ( | NSString * | string | ) |
Definition at line 159 of file OOConstToString.m.
References kOOGalacticHyperspaceBehaviourDefault, and OOGalacticHyperspaceBehaviourFromString().
Referenced by OOGalacticHyperspaceBehaviourFromString(), and PlayerEntity(Scripting)::setGalacticHyperspaceBehaviourTo:.
| OOGraphicsDetail OOGraphicsDetailFromString | ( | NSString * | string | ) |
Definition at line 577 of file OOConstToString.m.
References DETAIL_LEVEL_EXTRAS, DETAIL_LEVEL_MINIMUM, DETAIL_LEVEL_NORMAL, DETAIL_LEVEL_SHADERS, and REVERSE_CASE.
| OOGUIScreenID OOGUIScreenIDFromString | ( | NSString * | string | ) |
Definition at line 175 of file OOConstToString.m.
References kOOGUIScreenIDDefault.
| OOHDRToneMapper OOHDRToneMapperFromString | ( | NSString * | string | ) |
Definition at line 603 of file OOConstToString.m.
References OOHDR_TONEMAPPER_ACES_APPROX, OOHDR_TONEMAPPER_DICE, OOHDR_TONEMAPPER_NONE, OOHDR_TONEMAPPER_REINHARD, OOHDR_TONEMAPPER_UCHIMURA, and REVERSE_CASE.
Referenced by MyOpenGLView::init.
| OOLongRangeChartMode OOLongRangeChartModeFromString | ( | NSString * | string | ) |
Definition at line 190 of file OOConstToString.m.
References kOOLongRangeChartModeDefault.
Referenced by PlayerShipSetProperty().
| OOScanClass OOScanClassFromString | ( | NSString * | string | ) |
Definition at line 183 of file OOConstToString.m.
References kOOScanClassDefault.
Referenced by ShipEntity::setUpShipFromDictionary:.
| OOSDRToneMapper OOSDRToneMapperFromString | ( | NSString * | string | ) |
Definition at line 632 of file OOConstToString.m.
References OOSDR_TONEMAPPER_ACES, OOSDR_TONEMAPPER_AgX, OOSDR_TONEMAPPER_HEJLDAWSON, OOSDR_TONEMAPPER_NONE, OOSDR_TONEMAPPER_REINHARD, OOSDR_TONEMAPPER_UC2, OOSDR_TONEMAPPER_UCHIMURA, and REVERSE_CASE.
Referenced by MyOpenGLView::init.
| OOShaderSetting OOShaderSettingFromString | ( | NSString * | string | ) |
Definition at line 495 of file OOConstToString.m.
References kOOShaderSettingDefault, REVERSE_CASE, SHADERS_FULL, SHADERS_NOT_SUPPORTED, SHADERS_OFF, and SHADERS_SIMPLE.
Referenced by OOOpenGLExtensionManager::reset.
| NSString * OOStringFromBehaviour | ( | OOBehaviour | value | ) |
Definition at line 51 of file OOConstToString.m.
Referenced by ShipEntity::dumpSelfState, and ShipEntity::update:.
| NSString * OOStringFromCompassMode | ( | OOCompassMode | value | ) |
Definition at line 62 of file OOConstToString.m.
| NSString * OOStringFromEntityStatus | ( | OOEntityStatus | value | ) |
Definition at line 41 of file OOConstToString.m.
Referenced by Entity::dumpSelfState, Entity(OOEntityInspectorExtensions)::inspStatusLine, PlayerEntity::isDocked, and PlayerEntity(Scripting)::status_string.
| NSString * OOStringFromGalacticHyperspaceBehaviour | ( | OOGalacticHyperspaceBehaviour | value | ) |
Definition at line 82 of file OOConstToString.m.
| NSString * OOStringFromGraphicsDetail | ( | OOGraphicsDetail | detail | ) |
Definition at line 563 of file OOConstToString.m.
References CASE, DETAIL_LEVEL_EXTRAS, DETAIL_LEVEL_MINIMUM, DETAIL_LEVEL_NORMAL, and DETAIL_LEVEL_SHADERS.
Referenced by Universe::setDetailLevel:.
| NSString * OOStringFromGUIScreenID | ( | OOGUIScreenID | value | ) |
Definition at line 93 of file OOConstToString.m.
Referenced by PlayerEntity(Scripting)::gui_screen_string.
| NSString * OOStringFromHDRToneMapper | ( | OOHDRToneMapper | toneMapper | ) |
Definition at line 588 of file OOConstToString.m.
References CASE, OOHDR_TONEMAPPER_ACES_APPROX, OOHDR_TONEMAPPER_DICE, OOHDR_TONEMAPPER_NONE, OOHDR_TONEMAPPER_REINHARD, and OOHDR_TONEMAPPER_UCHIMURA.
Referenced by OoliteGetProperty().
| NSString * OOStringFromLegalStatusReason | ( | OOLegalStatusReason | value | ) |
Definition at line 125 of file OOConstToString.m.
Referenced by PlayerEntity::setBounty:withReason:, and ShipEntity::setBounty:withReason:.
| NSString * OOStringFromLongRangeChartMode | ( | OOLongRangeChartMode | value | ) |
Definition at line 72 of file OOConstToString.m.
Referenced by PlayerShipGetProperty().
| NSString * OOStringFromScanClass | ( | OOScanClass | value | ) |
Definition at line 104 of file OOConstToString.m.
Referenced by Entity::dumpSelfState, and Entity(OOEntityInspectorExtensions)::inspScanClassLine.
| NSString * OOStringFromSDRToneMapper | ( | OOSDRToneMapper | toneMapper | ) |
Definition at line 615 of file OOConstToString.m.
References CASE, OOSDR_TONEMAPPER_ACES, OOSDR_TONEMAPPER_AgX, OOSDR_TONEMAPPER_HEJLDAWSON, OOSDR_TONEMAPPER_NONE, OOSDR_TONEMAPPER_REINHARD, OOSDR_TONEMAPPER_UC2, and OOSDR_TONEMAPPER_UCHIMURA.
Referenced by OoliteGetProperty().
| NSString * OOStringFromShaderSetting | ( | OOShaderSetting | setting | ) |
Definition at line 481 of file OOConstToString.m.
References CASE, SHADERS_FULL, SHADERS_NOT_SUPPORTED, SHADERS_OFF, and SHADERS_SIMPLE.
| NSString * OOStringFromShipDamageType | ( | OOShipDamageType | value | ) |
Definition at line 115 of file OOConstToString.m.
Referenced by PlayerEntity::getDestroyedBy:damageType:.
| NSString * OOStringFromWeaponType | ( | OOWeaponType | weapon | ) |
Definition at line 264 of file OOConstToString.m.
References OOEquipmentType::identifier, and nil.
Referenced by HeadUpDisplay(Private)::crosshairDefinitionForWeaponType:.
| OOWeaponType OOWeaponTypeFromEquipmentIdentifierLegacy | ( | NSString * | string | ) |
Definition at line 307 of file OOConstToString.m.
References OOWeaponTypeFromEquipmentIdentifierSloppy().
Referenced by PlayerEntity::setCommanderDataFromDictionary:.
| OOWeaponType OOWeaponTypeFromEquipmentIdentifierSloppy | ( | NSString * | string | ) |
Definition at line 286 of file OOConstToString.m.
References OOEquipmentType::equipmentTypeWithIdentifier:, and nil.
Referenced by ShipEntity::behaviour_attack_target:, PlayerEntity(Contracts)::newShipCommonSetup:yardInfo:baseInfo:, OOWeaponTypeFromEquipmentIdentifierLegacy(), OOWeaponTypeFromEquipmentIdentifierStrict(), OOWeaponTypeFromString(), PlayerEntity(OOControlsPrivate)::pollGuiArrowKeyControls:, PlayerEntity::setCommanderDataFromDictionary:, Universe::shipsForSaleForSystem:withTL:atTime:, and StationAddShipToShipyard().
| OOWeaponType OOWeaponTypeFromEquipmentIdentifierStrict | ( | NSString * | string | ) |
Definition at line 331 of file OOConstToString.m.
References OOWeaponTypeFromEquipmentIdentifierSloppy().
Referenced by ShipEntity::hasOneEquipmentItem:includeWeapons:whileLoading:, ShipEntity::setWeaponMount:toWeapon:, PlayerEntity::setWeaponMount:toWeapon:inContext:, and PlayerEntity(OOPrivate)::tryBuyingItem:.
| OOWeaponType OOWeaponTypeFromString | ( | NSString * | string | ) |
Definition at line 274 of file OOConstToString.m.
References OOWeaponTypeFromEquipmentIdentifierSloppy().
| NSString * RouteTypeToString | ( | OORouteType | routeType | ) |
Definition at line 201 of file OOConstToString.m.
References CASE, OPTIMIZED_BY_JUMPS, OPTIMIZED_BY_NONE, and OPTIMIZED_BY_TIME.
| OOCargoType StringToCargoType | ( | NSString * | string | ) |
Definition at line 355 of file OOConstToString.m.
References CARGO_ALLOY, CARGO_CHARACTER, CARGO_MINERALS, CARGO_NOT_CARGO, CARGO_RANDOM, CARGO_SCRIPTED_ITEM, CARGO_SLAVES, CARGO_THARGOID, kOOCargoTypeDefault, and REVERSE_CASE.
Referenced by ShipEntity::setUpCargoType:.
| OOEnergyUnitType StringToEnergyUnitType | ( | NSString * | string | ) |
Definition at line 392 of file OOConstToString.m.
References ENERGY_UNIT_NAVAL, ENERGY_UNIT_NAVAL_DAMAGED, ENERGY_UNIT_NONE, ENERGY_UNIT_NORMAL, ENERGY_UNIT_NORMAL_DAMAGED, kOOEnergyUnitTypeDefault, and REVERSE_CASE.
| OORouteType StringToRouteType | ( | NSString * | string | ) |
Definition at line 538 of file OOConstToString.m.
References kOORouteTypeDefault, OPTIMIZED_BY_JUMPS, OPTIMIZED_BY_NONE, OPTIMIZED_BY_TIME, and REVERSE_CASE.
Referenced by SystemInfoRouteToSystem().