Oolite 1.91.0.7645-241119-222d325
|
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(), 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(), 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().
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.
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().
NSString * OODisplayStringFromAlertCondition | ( | OOAlertCondition | alertCondition | ) |
Definition at line 460 of file OOConstToString.m.
NSString * OODisplayStringFromEconomyID | ( | OOEconomyID | economy | ) |
Definition at line 230 of file OOConstToString.m.
Referenced by SystemGetProperty().
NSString * OODisplayStringFromGovernmentID | ( | OOGovernmentID | government | ) |
Definition at line 214 of file OOConstToString.m.
Referenced by SystemGetProperty().
NSString * OODisplayStringFromLegalStatus | ( | int | legalStatus | ) |
Definition at line 438 of file OOConstToString.m.
References nil.
Referenced by PlayerGetProperty().
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.
OOGalacticHyperspaceBehaviour OOGalacticHyperspaceBehaviourFromString | ( | NSString * | string | ) |
Definition at line 159 of file OOConstToString.m.
References kOOGalacticHyperspaceBehaviourDefault, and OOGalacticHyperspaceBehaviourFromString().
Referenced by OOGalacticHyperspaceBehaviourFromString().
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.
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.
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 * 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().
NSString * OOStringFromScanClass | ( | OOScanClass | value | ) |
Definition at line 104 of file OOConstToString.m.
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.
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().
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().