Oolite 1.91.0.7646-241128-10e222e
|
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 Verify_Boolean(), and Verify_FuzzyBoolean().
Definition at line 402 of file OOCollectionExtractors.h.
double OODoubleFromObject | ( | id | object, |
double | defaultValue ) |
Definition at line 1363 of file OOCollectionExtractors.m.
References IsZeroString().
Referenced by 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 OOFuzzyBooleanFromObject().
BOOL OOFuzzyBooleanFromObject | ( | id | object, |
float | defaultValue ) |
Definition at line 1317 of file OOCollectionExtractors.m.
References FuzzyBooleanProbabilityFromString(), IsZeroString(), OOFloatFromObject(), and randf().
HPVector OOHPVectorFromObject | ( | id | object, |
HPVector | defaultValue ) |
Definition at line 1445 of file OOCollectionExtractors.m.
References count, nil, and ScanHPVectorFromString().
OOINLINE NSInteger OOIntegerFromObject | ( | id | object, |
NSInteger | defaultValue ) |
Definition at line 478 of file OOCollectionExtractors.h.
Definition at line 1201 of file OOCollectionExtractors.m.
Referenced by Verify_Integer().
double OONonNegativeDoubleFromObject | ( | id | object, |
double | defaultValue ) |
Definition at line 1393 of file OOCollectionExtractors.m.
float OONonNegativeFloatFromObject | ( | id | object, |
float | defaultValue ) |
Definition at line 1380 of file OOCollectionExtractors.m.
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 Verify_Quaternion().
OOINLINE NSInteger OOUIntegerFromObject | ( | id | object, |
NSUInteger | defaultValue ) |
Definition at line 483 of file OOCollectionExtractors.h.
Definition at line 1214 of file OOCollectionExtractors.m.
Referenced by PlayerEntity(LoadSave)::addScenarioModel:, and Verify_PositiveInteger().
Vector OOVectorFromObject | ( | id | object, |
Vector | defaultValue ) |
Definition at line 1407 of file OOCollectionExtractors.m.
References count, nil, and ScanVectorFromString().
Referenced by Verify_Vector().