|
Oolite
|
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"
Include dependency graph for OOConstToString.m:Go to the source code of this file.
Macros | |
| #define | CASE(foo) case foo: return @#foo; |
| #define | REVERSE_CASE(foo) if ([string isEqualToString:@#foo]) return foo; |
| #define | ENTRY(label, value) case label: return @#label; |
| #define | GALACTIC_HYPERSPACE_ENTRY(label, value) case GALACTIC_HYPERSPACE_##label: return @#label; |
| #define | DIFF_STRING_ENTRY(label, string) case label: return @string; |
| #define | ENTRY(label, value) if ([string isEqualToString:@#label]) return label; |
| #define | GALACTIC_HYPERSPACE_ENTRY(label, value) if ([string isEqualToString:@#label]) return GALACTIC_HYPERSPACE_##label; |
| #define CASE | ( | foo | ) | case foo: return @#foo; |
Definition at line 33 of file OOConstToString.m.
| #define DIFF_STRING_ENTRY | ( | label, | |
| string | |||
| ) | case label: return @string; |
Definition at line 39 of file OOConstToString.m.
| #define ENTRY | ( | label, | |
| value | |||
| ) | case label: return @#label; |
Definition at line 37 of file OOConstToString.m.
| #define ENTRY | ( | label, | |
| value | |||
| ) | if ([string isEqualToString:@#label]) return label; |
Definition at line 37 of file OOConstToString.m.
| #define GALACTIC_HYPERSPACE_ENTRY | ( | label, | |
| value | |||
| ) | case GALACTIC_HYPERSPACE_##label: return @#label; |
Definition at line 38 of file OOConstToString.m.
| #define GALACTIC_HYPERSPACE_ENTRY | ( | label, | |
| value | |||
| ) | if ([string isEqualToString:@#label]) return GALACTIC_HYPERSPACE_##label; |
Definition at line 38 of file OOConstToString.m.
| #define REVERSE_CASE | ( | foo | ) | if ([string isEqualToString:@#foo]) return foo; |
Definition at line 34 of file OOConstToString.m.
| 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.
Here is the call graph for this function:| NSString * CommodityDisplayNameForSymbolicName | ( | NSString * | symbolicName | ) |
Definition at line 506 of file OOConstToString.m.
Referenced by CommodityDisplayNameForCommodityArray(), and GlobalDisplayNameForCommodity().
Here is the caller graph for this function:| NSString * DisplayStringForMassUnit | ( | OOMassUnit | unit | ) |
Definition at line 519 of file OOConstToString.m.
References DESC, UNITS_GRAMS, UNITS_KILOGRAMS, and UNITS_TONS.
Referenced by DisplayStringForMassUnitForCommodity().
Here is the caller graph for this function:| NSString * DisplayStringForMassUnitForCommodity | ( | OOCommodityType | commodity | ) |
Definition at line 532 of file OOConstToString.m.
References DisplayStringForMassUnit(), and UNIVERSE.
Here is the call graph for this function:| 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().
Here is the caller graph for this function:| 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.
| 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.
| 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 PlayerGetProperty().
Here is the caller graph for this function:| NSString * OODisplayStringFromAlertCondition | ( | OOAlertCondition | alertCondition | ) |
Definition at line 460 of file OOConstToString.m.
| NSString * OODisplayStringFromEconomyID | ( | OOEconomyID | economy | ) |
Definition at line 230 of file OOConstToString.m.
References nil.
Referenced by SystemGetProperty().
Here is the caller graph for this function:| NSString * OODisplayStringFromGovernmentID | ( | OOGovernmentID | government | ) |
Definition at line 214 of file OOConstToString.m.
References nil.
Referenced by SystemGetProperty().
Here is the caller graph for this function:| NSString * OODisplayStringFromLegalStatus | ( | int | legalStatus | ) |
Definition at line 438 of file OOConstToString.m.
References nil.
Referenced by PlayerGetProperty().
Here is the caller graph for this function:| 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.
Here is the call graph for this function:| OOGalacticHyperspaceBehaviour OOGalacticHyperspaceBehaviourFromString | ( | NSString * | string | ) |
Definition at line 159 of file OOConstToString.m.
References kOOGalacticHyperspaceBehaviourDefault, and OOGalacticHyperspaceBehaviourFromString().
Referenced by OOGalacticHyperspaceBehaviourFromString().
Here is the call graph for this function:
Here is the caller graph for this function:| 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.
| OOLongRangeChartMode OOLongRangeChartModeFromString | ( | NSString * | string | ) |
Definition at line 190 of file OOConstToString.m.
References kOOLongRangeChartModeDefault.
Referenced by PlayerShipSetProperty().
Here is the caller graph for this function:| OOScanClass OOScanClassFromString | ( | NSString * | string | ) |
Definition at line 183 of file OOConstToString.m.
References kOOScanClassDefault.
| 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.
| 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.
| NSString * OOStringFromBehaviour | ( | OOBehaviour | value | ) |
Definition at line 51 of file OOConstToString.m.
| NSString * OOStringFromCompassMode | ( | OOCompassMode | value | ) |
Definition at line 62 of file OOConstToString.m.
| NSString * OOStringFromEntityStatus | ( | OOEntityStatus | value | ) |
Definition at line 41 of file OOConstToString.m.
| 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.
| NSString * OOStringFromGUIScreenID | ( | OOGUIScreenID | value | ) |
Definition at line 93 of file OOConstToString.m.
| 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().
Here is the caller graph for this function:| NSString * OOStringFromLegalStatusReason | ( | OOLegalStatusReason | value | ) |
Definition at line 125 of file OOConstToString.m.
| NSString * OOStringFromLongRangeChartMode | ( | OOLongRangeChartMode | value | ) |
Definition at line 72 of file OOConstToString.m.
Referenced by PlayerShipGetProperty().
Here is the caller graph for this function:| NSString * OOStringFromScanClass | ( | OOScanClass | value | ) |
Definition at line 104 of file OOConstToString.m.
| 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().
Here is the caller graph for this function:| 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.
| NSString * OOStringFromWeaponType | ( | OOWeaponType | weapon | ) |
Definition at line 264 of file OOConstToString.m.
References OOEquipmentType::identifier, and nil.
Here is the call graph for this function:| OOWeaponType OOWeaponTypeFromEquipmentIdentifierLegacy | ( | NSString * | string | ) |
Definition at line 307 of file OOConstToString.m.
References OOWeaponTypeFromEquipmentIdentifierSloppy().
Here is the call graph for this function:| OOWeaponType OOWeaponTypeFromEquipmentIdentifierSloppy | ( | NSString * | string | ) |
Definition at line 286 of file OOConstToString.m.
References OOEquipmentType::equipmentTypeWithIdentifier:, and nil.
Referenced by OOWeaponTypeFromEquipmentIdentifierLegacy(), OOWeaponTypeFromEquipmentIdentifierStrict(), OOWeaponTypeFromString(), and StationAddShipToShipyard().
Here is the call graph for this function:
Here is the caller graph for this function:| OOWeaponType OOWeaponTypeFromEquipmentIdentifierStrict | ( | NSString * | string | ) |
Definition at line 331 of file OOConstToString.m.
References OOWeaponTypeFromEquipmentIdentifierSloppy().
Here is the call graph for this function:| OOWeaponType OOWeaponTypeFromString | ( | NSString * | string | ) |
Definition at line 274 of file OOConstToString.m.
References OOWeaponTypeFromEquipmentIdentifierSloppy().
Here is the call graph for this function:| 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.
| 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().
Here is the caller graph for this function: