Oolite 1.91.0.7644-241112-7f5034b
|
import "OOJSMission.h"
import "OOJavaScriptEngine.h"
import "OOJSScript.h"
import "OOConstToJSString.h"
import "OOJSVector.h"
import "OOJSPlayer.h"
import "PlayerEntityScriptMethods.h"
import "OOStringExpander.h"
import "OOCollectionExtractors.h"
import "OOMusicController.h"
import "GuiDisplayGen.h"
import "OODebugStandards.h"
Go to the source code of this file.
Enumerations | |
enum | { kMission_markedSystems , kMission_screenID , kMission_exitScreen } |
Functions | |
static JSBool | MissionGetProperty (JSContext *context, JSObject *this, jsid propID, jsval *value) |
static JSBool | MissionSetProperty (JSContext *context, JSObject *this, jsid propID, JSBool strict, jsval *value) |
static JSBool | MissionMarkSystem (JSContext *context, uintN argc, jsval *vp) |
static JSBool | MissionUnmarkSystem (JSContext *context, uintN argc, jsval *vp) |
static JSBool | MissionAddMessageText (JSContext *context, uintN argc, jsval *vp) |
static JSBool | MissionSetInstructions (JSContext *context, uintN argc, jsval *vp) |
static JSBool | MissionSetInstructionsKey (JSContext *context, uintN argc, jsval *vp) |
static JSBool | MissionRunScreen (JSContext *context, uintN argc, jsval *vp) |
static JSBool | MissionRunShipLibrary (JSContext *context, uintN argc, jsval *vp) |
static JSBool | MissionSetInstructionsInternal (JSContext *context, uintN argc, jsval *vp, BOOL isKey) |
void | InitOOJSMission (JSContext *context, JSObject *global) |
void | MissionRunCallback () |
static NSDictionary * | GetParameterDictionary (JSContext *context, JSObject *object, const char *key) |
static NSString * | GetParameterString (JSContext *context, JSObject *object, const char *key) |
static NSDictionary * | GetParameterImageDescriptor (JSContext *context, JSObject *object, const char *key) |
Variables | |
static jsval | sCallbackFunction |
static jsval | sCallbackThis |
static OOJSScript * | sCallbackScript = nil |
static JSObject * | sMissionObject |
static JSClass | sMissionClass |
static JSPropertySpec | sMissionProperties [] |
static JSFunctionSpec | sMissionMethods [] |
anonymous enum |
Enumerator | |
---|---|
kMission_markedSystems | |
kMission_screenID | |
kMission_exitScreen |
Definition at line 76 of file OOJSMission.m.
|
static |
Definition at line 460 of file OOJSMission.m.
References nil, and OOJSNativeObjectFromJSObject().
Referenced by MissionRunScreen().
|
static |
Definition at line 485 of file OOJSMission.m.
References nil.
|
static |
Definition at line 474 of file OOJSMission.m.
References nil, and OOStringFromJSValue().
Referenced by MissionRunScreen().
void InitOOJSMission | ( | JSContext * | context, |
JSObject * | global ) |
Definition at line 108 of file OOJSMission.m.
References OOJS_PROP_READONLY, OOJSAddGCValueRoot, OOJSUnconstructableConstruct(), sCallbackFunction, sCallbackThis, sMissionClass, sMissionMethods, sMissionObject, and sMissionProperties.
|
static |
Definition at line 361 of file OOJSMission.m.
References PlayerEntity::addLiteralMissionText:, EXPECT_NOT, nil, OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_VOID, OOPlayerForScripting(), and OOStringFromJSValue().
|
static |
Definition at line 187 of file OOJSMission.m.
References PlayerEntity::getMissionDestinations, kMission_exitScreen, kMission_markedSystems, kMission_screenID, PlayerEntity::missionScreenID, nil, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJSReportBadPropertySelector(), OOJSValueFromGUIScreenID(), OOJSValueFromNativeObject(), OOPlayerForScripting(), and sMissionProperties.
|
static |
Definition at line 255 of file OOJSMission.m.
References PlayerEntity::addMissionDestinationMarker:, PlayerEntity::defaultMarker:, MIN, nil, OOEnforceStandards(), OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_VOID, OOJSNativeObjectFromJSObject(), OOJSReportBadArguments(), OOPlayerForScripting(), and OOStandardsDeprecated().
void MissionRunCallback | ( | void | ) |
Definition at line 122 of file OOJSMission.m.
References OOJavaScriptEngine::callJSFunction:forObject:argc:argv:result:, kOOLogException, nil, OOJSAcquireContext(), OOJSAddGCObjectRoot, OOJSAddGCValueRoot, OOJSRelinquishContext(), OOJSValueFromNativeObject(), OOLog, OOPlayerForScripting(), OOJSScript::popScript:, OOJSScript::pushScript:, sCallbackFunction, sCallbackScript, sCallbackThis, PlayerEntity::setMissionChoice:keyPress:withEvent:, and OOJavaScriptEngine::sharedEngine.
|
static |
Definition at line 500 of file OOJSMission.m.
References PlayerEntity::addLiteralMissionText:, PlayerEntity::addMissionText:, PlayerEntity::allowMissionInterrupt, CHART_MAX_ZOOM, PlayerEntity::clearExtraMissionKeys, PlayerEntity::clearMissionScreenID, OOJSScript::currentlyRunningScript, PlayerEntity::galaxy_coordinates, GetParameterDictionary(), GetParameterString(), JSValueToVector(), MIN, nil, Entity::oo_jsValueInContext:, OOInternalCoordinatesFromGalactic(), OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_BOOL, OOJSPauseTimeLimiter(), OOJSReportBadArguments(), OOJSReportWarning(), OOJSResumeTimeLimiter(), OOJSValueFromNativeObject(), OOJSValueIsFunction(), OOPlayerForScripting(), OOStringFromJSValue(), sCallbackFunction, sCallbackScript, sCallbackThis, PlayerEntity::setCustomChartCentre:, PlayerEntity::setCustomChartZoom:, ShipEntity::setEntityPersonalityInt:, PlayerEntity::setExtraMissionKeys:, PlayerEntity::setGuiToMissionScreenWithCallback:, PlayerEntity::setMissionBackgroundDescriptor:, PlayerEntity::setMissionBackgroundSpecial:, PlayerEntity::setMissionChoiceByTextEntry:, PlayerEntity::setMissionChoices:, PlayerEntity::setMissionChoicesDictionary:, PlayerEntity::setMissionExitScreen:, OOMusicController::setMissionMusic:, PlayerEntity::setMissionMusic:, PlayerEntity::setMissionOverlayDescriptor:, PlayerEntity::setMissionScreenID:, PlayerEntity::setMissionTitle:, OOMusicController::sharedController, and sMissionObject.
|
static |
Definition at line 775 of file OOJSMission.m.
References OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_BOOL, OOJSReportWarning(), and OOPlayerForScripting().
|
static |
Definition at line 392 of file OOJSMission.m.
References MissionSetInstructionsInternal().
|
static |
Definition at line 398 of file OOJSMission.m.
References PlayerEntity::clearMissionDescriptionForMission:, OOJSScript::currentlyRunningScript, EXPECT_NOT, OOJSScript::name, nil, OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_VOID, OOJSNativeObjectFromJSValue(), OOJSReportBadArguments(), OOJSReportWarning(), OOPlayerForScripting(), OOStringFromJSValue(), OOStringFromJSValueEvenIfNull(), PlayerEntity::setMissionDescription:forMission:, PlayerEntity::setMissionInstructions:forMission:, and PlayerEntity::setMissionInstructionsList:forMission:.
Referenced by MissionSetInstructions(), and MissionSetInstructionsKey().
|
static |
Definition at line 385 of file OOJSMission.m.
References MissionSetInstructionsInternal().
|
static |
Definition at line 224 of file OOJSMission.m.
References kMission_exitScreen, OOGUIScreenIDFromJSValue(), OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJSReportBadPropertySelector(), OOJSReportBadPropertyValue(), OOPlayerForScripting(), PlayerEntity::setMissionExitScreen:, and sMissionProperties.
|
static |
Definition at line 305 of file OOJSMission.m.
References MIN, nil, OOEnforceStandards(), OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_BOOL, OOJSNativeObjectFromJSObject(), OOJSReportBadArguments(), OOPlayerForScripting(), and OOStandardsDeprecated().
|
static |
Definition at line 54 of file OOJSMission.m.
Referenced by InitOOJSMission(), MissionRunCallback(), and MissionRunScreen().
|
static |
Definition at line 56 of file OOJSMission.m.
Referenced by MissionRunCallback(), and MissionRunScreen().
|
static |
Definition at line 55 of file OOJSMission.m.
Referenced by InitOOJSMission(), MissionRunCallback(), and MissionRunScreen().
|
static |
Definition at line 60 of file OOJSMission.m.
Referenced by InitOOJSMission().
|
static |
Definition at line 94 of file OOJSMission.m.
Referenced by InitOOJSMission().
|
static |
Definition at line 58 of file OOJSMission.m.
Referenced by InitOOJSMission(), and MissionRunScreen().
|
static |
Definition at line 84 of file OOJSMission.m.
Referenced by InitOOJSMission(), MissionGetProperty(), and MissionSetProperty().