Oolite 1.91.0.7646-241128-10e222e
|
Go to the source code of this file.
Enumerations | |
enum | { kShipGroup_ships , kShipGroup_leader , kShipGroup_name , kShipGroup_count } |
Functions | |
static JSBool | ShipGroupGetProperty (JSContext *context, JSObject *this, jsid propID, jsval *value) |
static JSBool | ShipGroupSetProperty (JSContext *context, JSObject *this, jsid propID, JSBool strict, jsval *value) |
static JSBool | ShipGroupConstruct (JSContext *context, uintN argc, jsval *vp) |
static JSBool | ShipGroupAddShip (JSContext *context, uintN argc, jsval *vp) |
static JSBool | ShipGroupRemoveShip (JSContext *context, uintN argc, jsval *vp) |
static JSBool | ShipGroupContainsShip (JSContext *context, uintN argc, jsval *vp) |
DEFINE_JS_OBJECT_GETTER (JSShipGroupGetShipGroup, &sShipGroupClass, sShipGroupPrototype, OOShipGroup) | |
void | InitOOJSShipGroup (JSContext *context, JSObject *global) |
Variables | |
static JSObject * | sShipGroupPrototype |
static JSClass | sShipGroupClass |
static JSPropertySpec | sShipGroupProperties [] |
static JSFunctionSpec | sShipGroupMethods [] |
anonymous enum |
Enumerator | |
---|---|
kShipGroup_ships | |
kShipGroup_leader | |
kShipGroup_name | |
kShipGroup_count |
Definition at line 62 of file OOJSShipGroup.m.
DEFINE_JS_OBJECT_GETTER | ( | JSShipGroupGetShipGroup | , |
& | sShipGroupClass, | ||
sShipGroupPrototype | , | ||
OOShipGroup | ) |
void InitOOJSShipGroup | ( | JSContext * | context, |
JSObject * | global ) |
Definition at line 97 of file OOJSShipGroup.m.
References OOJSBasicPrivateObjectConverter(), OOJSRegisterObjectConverter(), ShipGroupConstruct(), sShipGroupClass, sShipGroupMethods, sShipGroupProperties, and sShipGroupPrototype.
|
static |
Definition at line 258 of file OOJSShipGroup.m.
References ShipEntity::acceptAsEscort:, count, EXPECT_NOT, ShipEntity::group, OOShipGroup::leader, MIN, nil, OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_BOOL, OOJS_RETURN_VOID, OOJS_THIS, OOJSNativeObjectOfClassFromJSValue(), OOJSReportBadArguments(), OOJSReportWarningForCaller(), and ShipEntity::setGroup:.
|
static |
Definition at line 186 of file OOJSShipGroup.m.
References EXPECT_NOT, nil, OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_OBJECT, OOJSNativeObjectOfClassFromJSValue(), OOJSReportBadArguments(), OOJSReportError(), and OOStringFromJSValue().
Referenced by InitOOJSShipGroup().
|
static |
Definition at line 353 of file OOJSShipGroup.m.
|
static |
Definition at line 104 of file OOJSShipGroup.m.
References count, EXPECT_NOT, kShipGroup_count, kShipGroup_leader, kShipGroup_name, kShipGroup_ships, OOShipGroup::leader, OOShipGroup::memberArray, OOShipGroup::name, nil, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJSReportBadPropertySelector(), OOJSValueFromNativeObject(), and sShipGroupProperties.
|
static |
Definition at line 328 of file OOJSShipGroup.m.
References EXPECT_NOT, MIN, nil, OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_BOOL, OOJS_RETURN_VOID, OOJS_THIS, OOJSNativeObjectOfClassFromJSValue(), and OOJSReportBadArguments().
|
static |
Definition at line 146 of file OOJSShipGroup.m.
References EXPECT_NOT, kShipGroup_leader, kShipGroup_name, nil, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJSNativeObjectOfClassFromJSValue(), OOJSReportBadPropertySelector(), OOJSReportBadPropertyValue(), OOShipGroup::setLeader:, OOShipGroup::setName:, and sShipGroupProperties.
|
static |
Definition at line 45 of file OOJSShipGroup.m.
Referenced by InitOOJSShipGroup().
|
static |
Definition at line 83 of file OOJSShipGroup.m.
Referenced by InitOOJSShipGroup().
|
static |
Definition at line 72 of file OOJSShipGroup.m.
Referenced by InitOOJSShipGroup(), ShipGroupGetProperty(), and ShipGroupSetProperty().
|
static |
Definition at line 32 of file OOJSShipGroup.m.
Referenced by InitOOJSShipGroup().