![]() |
Oolite 1.91.0.7658-250404-b1488af
|
import <Foundation/Foundation.h>
import "OOFunctionAttributes.h"
#include <limits.h>
import "OOMaths.h"
Go to the source code of this file.
Classes | |
category | NSArray(OOExtractor) |
category | NSDictionary(OOExtractor) |
category | NSUserDefaults(OOExtractor) |
category | NSMutableArray(OOInserter) |
category | NSMutableDictionary(OOInserter) |
category | NSMutableSet(OOInserter) |
Macros | |
#define | OO_DEFINE_CLAMP(type, typeName, min, max) |
#define | OO_DEFINE_CLAMP_PAIR(type, typeName, minMaxSymb) |
#define | OO_ALIAS_CLAMP_LONG_LONG(type, typeName) |
#define | OO_ALIAS_CLAMP_PAIR_LONG_LONG(type, typeName) |
Functions | |
BOOL | OOBooleanFromObject (id object, BOOL defaultValue) |
BOOL | OOFuzzyBooleanFromObject (id object, float defaultValue) |
float | OOFloatFromObject (id object, float defaultValue) |
double | OODoubleFromObject (id object, double defaultValue) |
float | OONonNegativeFloatFromObject (id object, float defaultValue) |
double | OONonNegativeDoubleFromObject (id object, double defaultValue) |
Vector | OOVectorFromObject (id object, Vector defaultValue) |
HPVector | OOHPVectorFromObject (id object, HPVector defaultValue) |
Quaternion | OOQuaternionFromObject (id object, Quaternion defaultValue) |
NSDictionary * | OOPropertyListFromVector (Vector value) |
NSDictionary * | OOPropertyListFromHPVector (HPVector value) |
NSDictionary * | OOPropertyListFromQuaternion (Quaternion value) |
OOINLINE long long | OOClampInteger (long long value, long long minValue, long long maxValue) ALWAYS_INLINE_FUNC |
long long | OOLongLongFromObject (id object, long long defaultValue) |
unsigned long long | OOUnsignedLongLongFromObject (id object, unsigned long long defaultValue) |
OOINLINE NSInteger | OOIntegerFromObject (id object, NSInteger defaultValue) |
OOINLINE NSInteger | OOUIntegerFromObject (id object, NSUInteger defaultValue) |
#define OO_ALIAS_CLAMP_LONG_LONG | ( | type, | |
typeName ) |
Definition at line 444 of file OOCollectionExtractors.h.
#define OO_ALIAS_CLAMP_PAIR_LONG_LONG | ( | type, | |
typeName ) |
Definition at line 449 of file OOCollectionExtractors.h.
#define OO_DEFINE_CLAMP | ( | type, | |
typeName, | |||
min, | |||
max ) |
Definition at line 424 of file OOCollectionExtractors.h.
#define OO_DEFINE_CLAMP_PAIR | ( | type, | |
typeName, | |||
minMaxSymb ) |
Definition at line 430 of file OOCollectionExtractors.h.
BOOL OOBooleanFromObject | ( | id | object, |
BOOL | defaultValue ) |
Definition at line 1297 of file OOCollectionExtractors.m.
References BooleanFromString().
Referenced by OOMacDebugger::configurationBoolValueForKey:, OODebugMonitor(Private)::jsEngine:context:error:stackSkip:showingLocation:withMessage:, OODebugMonitor(Private)::jsEngine:context:logMessage:ofClass:, OODebugMonitor(Private)::normalizeConfigValue:forKey:, NSArray(OOExtractor)::oo_boolAtIndex:defaultValue:, NSDictionary(OOExtractor)::oo_boolForKey:defaultValue:, NSUserDefaults(OOExtractor)::oo_boolForKey:defaultValue:, OOOXPVerifier(OOPrivate)::setUpLogOverrides, Verify_Boolean(), and Verify_FuzzyBoolean().
Definition at line 402 of file OOCollectionExtractors.h.
References OOINLINE.
Referenced by GuiDisplayGen(Internal)::drawEquipmentList:z:, and PlayerEntity(OOControlsPrivate)::handleGameOptionsScreenKeys.
double OODoubleFromObject | ( | id | object, |
double | defaultValue ) |
Definition at line 1363 of file OOCollectionExtractors.m.
References IsZeroString().
Referenced by Universe::addEntity:, NSArray(OOExtractor)::oo_doubleAtIndex:, NSArray(OOExtractor)::oo_doubleAtIndex:defaultValue:, NSDictionary(OOExtractor)::oo_doubleForKey:, NSUserDefaults(OOExtractor)::oo_doubleForKey:, NSDictionary(OOExtractor)::oo_doubleForKey:defaultValue:, NSUserDefaults(OOExtractor)::oo_doubleForKey:defaultValue:, Verify_Float(), Verify_FuzzyBoolean(), and Verify_PositiveFloat().
float OOFloatFromObject | ( | id | object, |
float | defaultValue ) |
Definition at line 1346 of file OOCollectionExtractors.m.
References IsZeroString().
Referenced by NSArray(OOExtractor)::oo_floatAtIndex:, NSArray(OOExtractor)::oo_floatAtIndex:defaultValue:, NSDictionary(OOExtractor)::oo_floatForKey:, NSDictionary(OOExtractor)::oo_floatForKey:defaultValue:, NSUserDefaults(OOExtractor)::oo_floatForKey:defaultValue:, and OOFuzzyBooleanFromObject().
BOOL OOFuzzyBooleanFromObject | ( | id | object, |
float | defaultValue ) |
Definition at line 1317 of file OOCollectionExtractors.m.
References FuzzyBooleanProbabilityFromString(), IsZeroString(), OOFloatFromObject(), and randf().
Referenced by StationEntity::hasShipyard, NSArray(OOExtractor)::oo_fuzzyBooleanAtIndex:defaultValue:, NSDictionary(OOExtractor)::oo_fuzzyBooleanForKey:defaultValue:, and NSUserDefaults(OOExtractor)::oo_fuzzyBooleanForKey:defaultValue:.
HPVector OOHPVectorFromObject | ( | id | object, |
HPVector | defaultValue ) |
Definition at line 1445 of file OOCollectionExtractors.m.
References count, nil, and ScanHPVectorFromString().
Referenced by NSDictionary(OOExtractor)::oo_hpvectorForKey:defaultValue:.
OOINLINE NSInteger OOIntegerFromObject | ( | id | object, |
NSInteger | defaultValue ) |
Definition at line 478 of file OOCollectionExtractors.h.
References OOINLINE.
Referenced by NSArray(OOExtractor)::oo_integerAtIndex:defaultValue:, NSDictionary(OOExtractor)::oo_integerForKey:defaultValue:, and NSUserDefaults(OOExtractor)::oo_integerForKey:defaultValue:.
Definition at line 1201 of file OOCollectionExtractors.m.
Referenced by NSArray(OOExtractor)::oo_longLongAtIndex:defaultValue:, NSDictionary(OOExtractor)::oo_longLongForKey:defaultValue:, NSUserDefaults(OOExtractor)::oo_longLongForKey:defaultValue:, and Verify_Integer().
double OONonNegativeDoubleFromObject | ( | id | object, |
double | defaultValue ) |
Definition at line 1393 of file OOCollectionExtractors.m.
Referenced by NSArray(OOExtractor)::oo_nonNegativeDoubleAtIndex:, NSArray(OOExtractor)::oo_nonNegativeDoubleAtIndex:defaultValue:, NSDictionary(OOExtractor)::oo_nonNegativeDoubleForKey:, NSUserDefaults(OOExtractor)::oo_nonNegativeDoubleForKey:, NSDictionary(OOExtractor)::oo_nonNegativeDoubleForKey:defaultValue:, and NSUserDefaults(OOExtractor)::oo_nonNegativeDoubleForKey:defaultValue:.
float OONonNegativeFloatFromObject | ( | id | object, |
float | defaultValue ) |
Definition at line 1380 of file OOCollectionExtractors.m.
Referenced by NSArray(OOExtractor)::oo_nonNegativeFloatAtIndex:, NSArray(OOExtractor)::oo_nonNegativeFloatAtIndex:defaultValue:, NSDictionary(OOExtractor)::oo_nonNegativeFloatForKey:, NSUserDefaults(OOExtractor)::oo_nonNegativeFloatForKey:, NSDictionary(OOExtractor)::oo_nonNegativeFloatForKey:defaultValue:, and NSUserDefaults(OOExtractor)::oo_nonNegativeFloatForKey:defaultValue:.
NSDictionary * OOPropertyListFromHPVector | ( | HPVector | value | ) |
Definition at line 1527 of file OOCollectionExtractors.m.
NSDictionary * OOPropertyListFromQuaternion | ( | Quaternion | value | ) |
Definition at line 1537 of file OOCollectionExtractors.m.
NSDictionary * OOPropertyListFromVector | ( | Vector | value | ) |
Definition at line 1518 of file OOCollectionExtractors.m.
Quaternion OOQuaternionFromObject | ( | id | object, |
Quaternion | defaultValue ) |
Definition at line 1480 of file OOCollectionExtractors.m.
References count, nil, and ScanQuaternionFromString().
Referenced by NSArray(OOExtractor)::oo_quaternionAtIndex:defaultValue:, NSDictionary(OOExtractor)::oo_quaternionForKey:defaultValue:, and Verify_Quaternion().
OOINLINE NSInteger OOUIntegerFromObject | ( | id | object, |
NSUInteger | defaultValue ) |
Definition at line 483 of file OOCollectionExtractors.h.
References OOINLINE.
Referenced by OOEquipmentType(Conveniences)::effectiveTechLevel, NSArray(OOExtractor)::oo_unsignedIntegerAtIndex:defaultValue:, NSDictionary(OOExtractor)::oo_unsignedIntegerForKey:defaultValue:, and NSUserDefaults(OOExtractor)::oo_unsignedIntegerForKey:defaultValue:.
Definition at line 1214 of file OOCollectionExtractors.m.
Referenced by NSArray(OOExtractor)::oo_unsignedLongLongAtIndex:defaultValue:, NSDictionary(OOExtractor)::oo_unsignedLongLongForKey:defaultValue:, NSUserDefaults(OOExtractor)::oo_unsignedLongLongForKey:defaultValue:, OODeciCreditsFromObject(), and Verify_PositiveInteger().
Vector OOVectorFromObject | ( | id | object, |
Vector | defaultValue ) |
Definition at line 1407 of file OOCollectionExtractors.m.
References count, nil, and ScanVectorFromString().
Referenced by NSArray(OOExtractor)::oo_vectorAtIndex:defaultValue:, NSDictionary(OOExtractor)::oo_vectorForKey:defaultValue:, and Verify_Vector().