Oolite 1.91.0.7644-241112-7f5034b
|
import "OOJSEquipmentInfo.h"
import "OOJavaScriptEngine.h"
import "OOEquipmentType.h"
import "OOJSPlayer.h"
import "OODebugStandards.h"
Go to the source code of this file.
Functions | |
static JSBool | EquipmentInfoGetProperty (JSContext *context, JSObject *this, jsid propID, jsval *value) |
static JSBool | EquipmentInfoSetProperty (JSContext *context, JSObject *this, jsid propID, JSBool strict, jsval *value) |
static JSBool | EquipmentInfoGetAllEqipment (JSContext *context, JSObject *this, jsid propID, jsval *value) |
static JSBool | EquipmentInfoStaticInfoForKey (JSContext *context, uintN argc, jsval *vp) |
DEFINE_JS_OBJECT_GETTER (JSEquipmentInfoGetEquipmentType, &sEquipmentInfoClass, sEquipmentInfoPrototype, OOEquipmentType) | |
void | InitOOJSEquipmentInfo (JSContext *context, JSObject *global) |
OOEquipmentType * | JSValueToEquipmentType (JSContext *context, jsval value) |
NSString * | JSValueToEquipmentKey (JSContext *context, jsval value) |
NSString * | JSValueToEquipmentKeyRelaxed (JSContext *context, jsval value, BOOL *outExists) |
Variables | |
static JSObject * | sEquipmentInfoPrototype |
static JSPropertySpec | sEquipmentInfoProperties [] |
static JSPropertySpec | sEquipmentInfoStaticProperties [] |
static JSFunctionSpec | sEquipmentInfoMethods [] |
static JSFunctionSpec | sEquipmentInfoStaticMethods [] |
static JSClass | sEquipmentInfoClass |
anonymous enum |
Definition at line 45 of file OOJSEquipmentInfo.m.
DEFINE_JS_OBJECT_GETTER | ( | JSEquipmentInfoGetEquipmentType | , |
& | sEquipmentInfoClass, | ||
sEquipmentInfoPrototype | , | ||
OOEquipmentType | ) |
|
static |
Definition at line 485 of file OOJSEquipmentInfo.m.
References OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, and OOJSValueFromNativeObject().
|
static |
Definition at line 245 of file OOJSEquipmentInfo.m.
References OOEquipmentType::defaultActivateKey, OOEquipmentType::defaultModeKey, OOEquipmentType::descriptiveText, OOEquipmentType::displayColor, EXPECT_NOT, OOEquipmentType::identifier, OOEquipmentType::incompatibleEquipment, kEquipmentInfo_calculatedPrice, kEquipmentInfo_canBeDamaged, kEquipmentInfo_canCarryMultiple, kEquipmentInfo_damageProbability, kEquipmentInfo_defaultActivateKey, kEquipmentInfo_defaultModeKey, kEquipmentInfo_description, kEquipmentInfo_displayColor, kEquipmentInfo_effectiveTechLevel, kEquipmentInfo_equipmentKey, kEquipmentInfo_fastAffinityDefensive, kEquipmentInfo_fastAffinityOffensive, kEquipmentInfo_incompatibleEquipment, kEquipmentInfo_isAvailableToAll, kEquipmentInfo_isAvailableToNPCs, kEquipmentInfo_isAvailableToPlayer, kEquipmentInfo_isExternalStore, kEquipmentInfo_isPortableBetweenShips, kEquipmentInfo_isVisible, kEquipmentInfo_name, kEquipmentInfo_price, kEquipmentInfo_provides, kEquipmentInfo_requiredCargoSpace, kEquipmentInfo_requiresAnyEquipment, kEquipmentInfo_requiresCleanLegalRecord, kEquipmentInfo_requiresEmptyPylon, kEquipmentInfo_requiresEquipment, kEquipmentInfo_requiresFreePassengerBerth, kEquipmentInfo_requiresFullFuel, kEquipmentInfo_requiresMountedPylon, kEquipmentInfo_requiresNonCleanLegalRecord, kEquipmentInfo_requiresNonFullFuel, kEquipmentInfo_scriptInfo, kEquipmentInfo_scriptName, kEquipmentInfo_techLevel, kEquipmentInfo_weaponInfo, OOEquipmentType::name, nil, OOColor::normalizedArray, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJSReportBadPropertySelector(), OOJSValueFromBOOL(), OOJSValueFromNativeObject(), OOPlayerForScripting(), PLAYER_MAX_FUEL, OOEquipmentType::providesForScripting, OOEquipmentType::requiresAnyEquipment, OOEquipmentType::requiresEquipment, OOEquipmentType::scriptInfo, OOEquipmentType::scriptName, sEquipmentInfoProperties, and OOEquipmentType::weaponInfo.
|
static |
Definition at line 424 of file OOJSEquipmentInfo.m.
References OOColor::colorWithDescription:, EXPECT_NOT, OOEquipmentType::identifier, kEquipmentInfo_displayColor, kEquipmentInfo_effectiveTechLevel, kOOVariableTechLevel, nil, OOEnforceStandards(), OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJSReportBadPropertySelector(), OOJSReportBadPropertyValue(), OOJSReportWarning(), OOStandardsDeprecated(), sEquipmentInfoProperties, and OOEquipmentType::setDisplayColor:.
|
static |
Definition at line 530 of file OOJSEquipmentInfo.m.
void InitOOJSEquipmentInfo | ( | JSContext * | context, |
JSObject * | global ) |
Definition at line 175 of file OOJSEquipmentInfo.m.
References OOJSBasicPrivateObjectConverter(), OOJSRegisterObjectConverter(), OOJSUnconstructableConstruct(), sEquipmentInfoClass, sEquipmentInfoMethods, sEquipmentInfoProperties, sEquipmentInfoPrototype, sEquipmentInfoStaticMethods, and sEquipmentInfoStaticProperties.
NSString * JSValueToEquipmentKey | ( | JSContext * | context, |
jsval | value ) |
Definition at line 204 of file OOJSEquipmentInfo.m.
Referenced by PlayerShipAwardEquipmentToCurrentPylon(), ShipEquipmentStatus(), and ShipRemoveEquipment().
NSString * JSValueToEquipmentKeyRelaxed | ( | JSContext * | context, |
jsval | value, | ||
BOOL * | outExists ) |
Definition at line 210 of file OOJSEquipmentInfo.m.
References nil, OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, and OOJSNativeObjectFromJSValue().
Referenced by PlayerShipSetProperty(), ShipCanAwardEquipment(), and ShipSetProperty().
OOEquipmentType * JSValueToEquipmentType | ( | JSContext * | context, |
jsval | value ) |
Definition at line 183 of file OOJSEquipmentInfo.m.
References OOEquipmentType::equipmentTypeWithIdentifier:, nil, OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, OOStringFromJSValue(), and sEquipmentInfoClass.
Referenced by ShipAwardEquipment(), and ShipSetEquipmentStatus().
|
static |
Definition at line 153 of file OOJSEquipmentInfo.m.
Referenced by InitOOJSEquipmentInfo(), and JSValueToEquipmentType().
|
static |
Definition at line 137 of file OOJSEquipmentInfo.m.
Referenced by InitOOJSEquipmentInfo().
|
static |
Definition at line 87 of file OOJSEquipmentInfo.m.
Referenced by EquipmentInfoGetProperty(), EquipmentInfoSetProperty(), and InitOOJSEquipmentInfo().
|
static |
Definition at line 32 of file OOJSEquipmentInfo.m.
Referenced by InitOOJSEquipmentInfo().
|
static |
Definition at line 145 of file OOJSEquipmentInfo.m.
Referenced by InitOOJSEquipmentInfo().
|
static |
Definition at line 130 of file OOJSEquipmentInfo.m.
Referenced by InitOOJSEquipmentInfo().