Oolite 1.91.0.7645-241119-222d325
|
import "OOJSDock.h"
import "OOJSEntity.h"
import "OOJSShip.h"
import "OOJSPlayer.h"
import "OOJavaScriptEngine.h"
import "DockEntity.h"
import "GameController.h"
Go to the source code of this file.
Enumerations | |
enum | { kDock_allowsDocking , kDock_disallowedDockingCollides , kDock_allowsLaunching , kDock_dockingQueueLength , kDock_launchingQueueLength } |
Functions | |
static BOOL | JSDockGetDockEntity (JSContext *context, JSObject *stationObj, DockEntity **outEntity) |
static BOOL | JSDockGetShipEntity (JSContext *context, JSObject *shipObj, ShipEntity **outEntity) |
static JSBool | DockIsQueued (JSContext *context, uintN argc, jsval *vp) |
static JSBool | DockGetProperty (JSContext *context, JSObject *this, jsid propID, jsval *value) |
static JSBool | DockSetProperty (JSContext *context, JSObject *this, jsid propID, JSBool strict, jsval *value) |
void | InitOOJSDock (JSContext *context, JSObject *global) |
Variables | |
static JSObject * | sDockPrototype |
static JSClass | sDockClass |
static JSPropertySpec | sDockProperties [] |
static JSFunctionSpec | sDockMethods [] |
anonymous enum |
Enumerator | |
---|---|
kDock_allowsDocking | |
kDock_disallowedDockingCollides | |
kDock_allowsLaunching | |
kDock_dockingQueueLength | |
kDock_launchingQueueLength |
Definition at line 63 of file OOJSDock.m.
|
static |
Definition at line 163 of file OOJSDock.m.
References JSDockGetDockEntity(), kDock_allowsDocking, kDock_allowsLaunching, kDock_disallowedDockingCollides, kDock_dockingQueueLength, kDock_launchingQueueLength, nil, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJSReportBadPropertySelector(), OOJSValueFromBOOL(), and sDockProperties.
|
static |
Definition at line 256 of file OOJSDock.m.
|
static |
Definition at line 203 of file OOJSDock.m.
References JSDockGetDockEntity(), kDock_allowsDocking, kDock_allowsLaunching, kDock_disallowedDockingCollides, nil, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJSReportBadPropertySelector(), OOJSReportBadPropertyValue(), sDockProperties, DockEntity::setAllowsDocking:, DockEntity::setAllowsLaunching:, and DockEntity::setDisallowedDockingCollides:.
void InitOOJSDock | ( | JSContext * | context, |
JSObject * | global ) |
Definition at line 94 of file OOJSDock.m.
References JSShipClass(), JSShipPrototype(), OOJSBasicPrivateObjectConverter(), OOJSRegisterObjectConverter(), OOJSRegisterSubclass(), OOJSUnconstructableConstruct(), sDockClass, sDockMethods, sDockProperties, and sDockPrototype.
|
static |
Definition at line 102 of file OOJSDock.m.
References nil, OOJS_PROFILE_ENTER, and OOJS_PROFILE_EXIT.
Referenced by DockGetProperty(), DockSetProperty(), and DockEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:.
|
static |
Definition at line 124 of file OOJSDock.m.
References nil, OOJS_PROFILE_ENTER, and OOJS_PROFILE_EXIT.
Referenced by DockEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:.
|
static |
Definition at line 46 of file OOJSDock.m.
Referenced by InitOOJSDock().
|
static |
Definition at line 86 of file OOJSDock.m.
Referenced by InitOOJSDock().
|
static |
Definition at line 74 of file OOJSDock.m.
Referenced by DockGetProperty(), DockSetProperty(), and InitOOJSDock().
|
static |
Definition at line 34 of file OOJSDock.m.
Referenced by InitOOJSDock().