Oolite 1.91.0.7645-241119-222d325
|
import "OOJSEntity.h"
import "OOJSVector.h"
import "OOJSQuaternion.h"
import "OOJavaScriptEngine.h"
import "OOConstToJSString.h"
import "EntityOOJavaScriptExtensions.h"
import "OOJSCall.h"
import "OOJSPlayer.h"
import "PlayerEntity.h"
import "ShipEntity.h"
Go to the source code of this file.
Functions | |
static JSBool | EntityGetProperty (JSContext *context, JSObject *this, jsid propID, jsval *value) |
static JSBool | EntitySetProperty (JSContext *context, JSObject *this, jsid propID, JSBool strict, jsval *value) |
static JSBool | EntityDumpState (JSContext *context, uintN argc, jsval *vp) |
void | InitOOJSEntity (JSContext *context, JSObject *global) |
BOOL | JSValueToEntity (JSContext *context, jsval value, Entity **outEntity) |
BOOL | EntityFromArgumentList (JSContext *context, NSString *scriptClass, NSString *function, uintN argc, jsval *argv, Entity **outEntity, uintN *outConsumed) |
Variables | |
JSObject * | gOOEntityJSPrototype |
JSClass | gOOEntityJSClass |
static JSPropertySpec | sEntityProperties [] |
static JSFunctionSpec | sEntityMethods [] |
anonymous enum |
Definition at line 65 of file OOJSEntity.m.
|
static |
Definition at line 400 of file OOJSEntity.m.
References nil, OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, OOJS_RETURN_VOID, and OOJS_THIS.
BOOL EntityFromArgumentList | ( | JSContext * | context, |
NSString * | scriptClass, | ||
NSString * | function, | ||
uintN | argc, | ||
jsval * | argv, | ||
Entity ** | outEntity, | ||
uintN * | outConsumed ) |
Definition at line 157 of file OOJSEntity.m.
References count, EXPECT_NOT, JSValueToEntity(), nil, OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, OOJSReportWarning(), and OOLogGenericParameterError.
|
static |
Definition at line 188 of file OOJSEntity.m.
References EXPECT_NOT, HPVectorToJSValue(), kEntity_collisionRadius, kEntity_distanceTravelled, kEntity_energy, kEntity_heading, kEntity_isDock, kEntity_isInSpace, kEntity_isPlanet, kEntity_isPlayer, kEntity_isShip, kEntity_isStation, kEntity_isSubEntity, kEntity_isSun, kEntity_isSunlit, kEntity_isValid, kEntity_isVisible, kEntity_isVisualEffect, kEntity_isWormhole, kEntity_mass, kEntity_maxEnergy, kEntity_orientation, kEntity_owner, kEntity_position, kEntity_scanClass, kEntity_spawnTime, kEntity_status, nil, OOIsStaleEntity(), OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJSReportBadPropertySelector(), OOJSValueFromBOOL(), OOJSValueFromEntityStatus(), OOJSValueFromNativeObject(), OOJSValueFromScanClass(), Entity::owner, QuaternionToJSValue(), sEntityProperties, Entity::status, vector_forward_from_quaternion(), and VectorToJSValue().
|
static |
Definition at line 310 of file OOJSEntity.m.
References EXPECT_NOT, JSValueToHPVector(), JSValueToQuaternion(), kEntity_energy, kEntity_maxEnergy, kEntity_orientation, kEntity_position, kEntity_scanClass, nil, OOIsStaleEntity(), OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJSReportBadPropertySelector(), OOJSReportBadPropertyValue(), OOJSReportError(), OOScanClassFromJSValue(), sEntityProperties, Entity::setEnergy:, Entity::setMaxEnergy:, Entity::setNormalOrientation:, Entity::setPosition:, and Entity::setScanClass:.
void InitOOJSEntity | ( | JSContext * | context, |
JSObject * | global ) |
Definition at line 139 of file OOJSEntity.m.
References gOOEntityJSClass, gOOEntityJSPrototype, OOJSBasicPrivateObjectConverter(), OOJSRegisterObjectConverter(), OOJSUnconstructableConstruct(), sEntityMethods, and sEntityProperties.
BOOL JSValueToEntity | ( | JSContext * | context, |
jsval | value, | ||
Entity ** | outEntity ) |
Definition at line 146 of file OOJSEntity.m.
Referenced by ConsoleInspectEntity(), EntityFromArgumentList(), GetRelativeToAndRange(), PlayerShipSetProperty(), and ShipSetProperty().
JSClass gOOEntityJSClass |
Definition at line 48 of file OOJSEntity.m.
Referenced by InitOOJSEntity(), and JSEntityClass().
JSObject* gOOEntityJSPrototype |
Definition at line 38 of file OOJSEntity.m.
Referenced by InitOOJSEntity(), and JSEntityPrototype().
|
static |
Definition at line 128 of file OOJSEntity.m.
Referenced by InitOOJSEntity().
|
static |
Definition at line 96 of file OOJSEntity.m.
Referenced by EntityGetProperty(), EntitySetProperty(), and InitOOJSEntity().