Oolite 1.91.0.7646-241128-10e222e
|
import "OOCocoa.h"
import "OOStringParsing.h"
import "OOCollectionExtractors.h"
#include <limits.h>
import "OOMaths.h"
Go to the source code of this file.
Macros | |
#define | PEEK() |
Functions | |
static NSSet * | SetForObject (id object, NSSet *defaultValue) |
static NSString * | StringForObject (id object, NSString *defaultValue) |
long long | OOLongLongFromObject (id object, long long defaultValue) |
unsigned long long | OOUnsignedLongLongFromObject (id object, unsigned long long defaultValue) |
static BOOL | IsSpaceOrTab (int value) |
static BOOL | IsZeroString (NSString *string) |
static BOOL | BooleanFromString (NSString *string, BOOL defaultValue) |
static float | FuzzyBooleanProbabilityFromString (NSString *string, float defaultValue) |
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) |
#define PEEK | ( | ) |
Referenced by IsZeroString().
|
static |
Definition at line 1255 of file OOCollectionExtractors.m.
References IsZeroString().
Referenced by OOBooleanFromObject().
|
static |
Definition at line 1276 of file OOCollectionExtractors.m.
References IsZeroString().
Referenced by OOFuzzyBooleanFromObject().
|
inlinestatic |
Definition at line 1228 of file OOCollectionExtractors.m.
Referenced by IsZeroString().
|
static |
Definition at line 1234 of file OOCollectionExtractors.m.
References count, IsSpaceOrTab(), and PEEK.
Referenced by BooleanFromString(), FuzzyBooleanProbabilityFromString(), OODoubleFromObject(), OOFloatFromObject(), and OOFuzzyBooleanFromObject().
BOOL OOBooleanFromObject | ( | id | object, |
BOOL | defaultValue ) |
Definition at line 1297 of file OOCollectionExtractors.m.
References BooleanFromString().
Referenced by Verify_Boolean(), and Verify_FuzzyBoolean().
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().
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().
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().
|
static |
Definition at line 1549 of file OOCollectionExtractors.m.
|
static |
Definition at line 1558 of file OOCollectionExtractors.m.