|
Oolite
|
import "OOJSGlobal.h"import "OOJavaScriptEngine.h"import "OOJSPlayer.h"import "PlayerEntityScriptMethods.h"import "OOStringExpander.h"import "OOConstToString.h"import "OOConstToJSString.h"import "OOCollectionExtractors.h"import "OOTexture.h"import "GuiDisplayGen.h"import "MyOpenGLView.h"import "ResourceManager.h"import "OOSystemDescriptionManager.h"import "NSFileManagerOOExtensions.h"import "OOJSGuiScreenKeyDefinition.h"
Include dependency graph for OOJSGlobal.m:Go to the source code of this file.
Enumerations | |
| enum | { kGlobal_galaxyNumber , kGlobal_global , kGlobal_guiScreen , kGlobal_timeAccelerationFactor } |
Functions | |
| static JSBool | GlobalGetProperty (JSContext *context, JSObject *this, jsid propID, jsval *value) |
| static JSBool | GlobalSetProperty (JSContext *context, JSObject *this, jsid propID, JSBool strict, jsval *value) |
| static JSBool | GlobalLog (JSContext *context, uintN argc, jsval *vp) |
| static JSBool | GlobalExpandDescription (JSContext *context, uintN argc, jsval *vp) |
| static JSBool | GlobalKeyBindingDescription (JSContext *context, uintN argc, jsval *vp) |
| static JSBool | GlobalExpandMissionText (JSContext *context, uintN argc, jsval *vp) |
| static JSBool | GlobalDisplayNameForCommodity (JSContext *context, uintN argc, jsval *vp) |
| static JSBool | GlobalRandomName (JSContext *context, uintN argc, jsval *vp) |
| static JSBool | GlobalRandomInhabitantsDescription (JSContext *context, uintN argc, jsval *vp) |
| static JSBool | GlobalSetScreenBackground (JSContext *context, uintN argc, jsval *vp) |
| static JSBool | GlobalSetScreenOverlay (JSContext *context, uintN argc, jsval *vp) |
| static JSBool | GlobalGetScreenBackgroundForKey (JSContext *context, uintN argc, jsval *vp) |
| static JSBool | GlobalSetScreenBackgroundForKey (JSContext *context, uintN argc, jsval *vp) |
| static JSBool | GlobalAutoAIForRole (JSContext *context, uintN argc, jsval *vp) |
| static JSBool | GlobalPauseGame (JSContext *context, uintN argc, jsval *vp) |
| static JSBool | GlobalQuitGame (JSContext *context, uintN argc, jsval *vp) |
| static JSBool | GlobalGetGuiColorSettingForKey (JSContext *context, uintN argc, jsval *vp) |
| static JSBool | GlobalSetGuiColorSettingForKey (JSContext *context, uintN argc, jsval *vp) |
| static JSBool | GlobalSetExtraGuiScreenKeys (JSContext *context, uintN argc, jsval *vp) |
| static JSBool | GlobalClearExtraGuiScreenKeys (JSContext *context, uintN argc, jsval *vp) |
| static JSBool | GlobalTakeSnapShot (JSContext *context, uintN argc, jsval *vp) |
| void | CreateOOJSGlobal (JSContext *context, JSObject **outGlobal) |
| void | SetUpOOJSGlobal (JSContext *context, JSObject *global) |
Variables | |
| static NSString *const | kOOLogDebugMessage = @"script.debug.message" |
| static JSClass | sGlobalClass |
| static JSPropertySpec | sGlobalProperties [] |
| static JSFunctionSpec | sGlobalMethods [] |
| anonymous enum |
| Enumerator | |
|---|---|
| kGlobal_galaxyNumber | |
| kGlobal_global | |
| kGlobal_guiScreen | |
| kGlobal_timeAccelerationFactor | |
Definition at line 109 of file OOJSGlobal.m.
| void CreateOOJSGlobal | ( | JSContext * | context, |
| JSObject ** | outGlobal | ||
| ) |
Definition at line 162 of file OOJSGlobal.m.
References OOJS_PROP_READONLY, and sGlobalClass.
|
static |
Definition at line 810 of file OOJSGlobal.m.
References ResourceManager::dictionaryFromFilesNamed:inFolder:andMerge:, MIN, nil, OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_OBJECT, OOJSReportBadArguments(), and OOStringFromJSValue().
Here is the call graph for this function:
|
static |
Definition at line 434 of file OOJSGlobal.m.
References PlayerEntity::clearExtraGuiScreenKeys:key:, EXPECT_NOT, nil, OOGUIScreenIDFromJSValue(), OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_BOOL, OOJSReportBadArguments(), OOPlayerForScripting(), and OOStringFromJSValue().
Here is the call graph for this function:
|
static |
Definition at line 371 of file OOJSGlobal.m.
References CommodityDisplayNameForSymbolicName(), MIN, nil, OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_OBJECT, OOJSReportBadArguments(), and OOStringFromJSValue().
Here is the call graph for this function:
|
static |
Definition at line 291 of file OOJSGlobal.m.
References kNilRandomSeed, kOOExpandForJavaScript, kOOExpandGoodRNG, MIN, nil, OOExpandDescriptionString(), OOJS_ARGV, OOJS_BEGIN_FULL_NATIVE, OOJS_END_FULL_NATIVE, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_OBJECT, OOJSDictionaryFromStringTable(), OOJSReportBadArguments(), and OOStringFromJSValue().
Here is the call graph for this function:
|
static |
Definition at line 343 of file OOJSGlobal.m.
References kNilRandomSeed, kOOExpandBackslashN, kOOExpandForJavaScript, kOOExpandGoodRNG, MIN, nil, OOExpandDescriptionString(), OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_OBJECT, OOJSDictionaryFromStringTable(), OOJSReportBadArguments(), and OOStringFromJSValue().
Here is the call graph for this function:
|
static |
Definition at line 686 of file OOJSGlobal.m.
References GuiDisplayGen::colorFromSetting:defaultValue:, EXPECT_NOT, nil, OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_OBJECT, OOJSReportBadArguments(), and OOStringFromJSValue().
Here is the call graph for this function:
|
static |
Definition at line 180 of file OOJSGlobal.m.
References kGlobal_galaxyNumber, kGlobal_guiScreen, kGlobal_timeAccelerationFactor, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJSReportBadPropertySelector(), OOJSValueFromGUIScreenID(), OOPlayerForScripting(), sGlobalProperties, and UNIVERSE.
Here is the call graph for this function:
|
static |
Definition at line 599 of file OOJSGlobal.m.
References EXPECT_NOT, nil, OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_OBJECT, OOJSReportBadArguments(), and OOStringFromJSValue().
Here is the call graph for this function:
|
static |
Definition at line 318 of file OOJSGlobal.m.
References PlayerEntity::keyBindingDescription2:, MIN, nil, OOJS_ARGV, OOJS_BEGIN_FULL_NATIVE, OOJS_END_FULL_NATIVE, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_OBJECT, OOJSReportBadArguments(), OOPlayerForScripting(), and OOStringFromJSValue().
Here is the call graph for this function:
|
static |
Definition at line 246 of file OOJSGlobal.m.
References EXPECT_NOT, kOOLogDebugMessage, nil, OOJS_ARGV, OOJS_BEGIN_FULL_NATIVE, OOJS_END_FULL_NATIVE, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_VOID, OOLog, OOLogWillDisplayMessagesInClass(), OOStringFromJSValue(), OOStringFromJSValueEvenIfNull(), and OOJavaScriptEngine::sharedEngine.
Here is the call graph for this function:
|
static |
Definition at line 832 of file OOJSGlobal.m.
References PlayerEntity::guiScreen, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_BOOL, and PLAYER.
Here is the call graph for this function:
|
static |
Definition at line 860 of file OOJSGlobal.m.
References OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_BOOL, and OOLog.
|
static |
Definition at line 412 of file OOJSGlobal.m.
References make_pseudo_random_seed(), nil, OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_OBJECT, and OOJSReportBadArguments().
Here is the call graph for this function:
|
static |
Definition at line 390 of file OOJSGlobal.m.
References currentRandomSeed(), OOExpand, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_OBJECT, Ranrot(), and setRandomSeed().
Here is the call graph for this function:
|
static |
Definition at line 469 of file OOJSGlobal.m.
References EXPECT_NOT, nil, OOGUIScreenIDFromJSValue(), OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_BOOL, OOJSNativeObjectFromJSObject(), OOJSReportBadArguments(), OOJSValueIsFunction(), OOPlayerForScripting(), OOStringFromJSValue(), OOJSGuiScreenKeyDefinition::setCallback:, OOJSGuiScreenKeyDefinition::setCallbackThis:, PlayerEntity::setExtraGuiScreenKeys:definition:, OOJSGuiScreenKeyDefinition::setName:, and OOJSGuiScreenKeyDefinition::setRegisterKeys:.
Here is the call graph for this function:
|
static |
Definition at line 717 of file OOJSGlobal.m.
References OOColor::colorWithDescription:, EXPECT_NOT, nil, OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_BOOL, OOJSReportBadArguments(), OOStringFromJSValue(), and GuiDisplayGen::setGuiColorSettingFromKey:color:.
Here is the call graph for this function:
|
static |
Definition at line 213 of file OOJSGlobal.m.
References kGlobal_timeAccelerationFactor, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJSReportBadPropertySelector(), OOJSReportBadPropertyValue(), and sGlobalProperties.
Here is the call graph for this function:
|
static |
Definition at line 565 of file OOJSGlobal.m.
References EXPECT_NOT, nil, OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_BOOL, OOJSReportBadArguments(), OOJSReportWarning(), PLAYER, GuiDisplayGen::setBackgroundTextureDescriptor:, GuiDisplayGen::textureDescriptorFromJSValue:inContext:callerDescription:, and UNIVERSE.
Here is the call graph for this function:
|
static |
Definition at line 622 of file OOJSGlobal.m.
References EXPECT_NOT, nil, OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_BOOL, OOJSReportBadArguments(), OOStringFromJSValue(), and GuiDisplayGen::textureDescriptorFromJSValue:inContext:callerDescription:.
Here is the call graph for this function:
|
static |
Definition at line 655 of file OOJSGlobal.m.
References EXPECT_NOT, nil, OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_BOOL, OOJSReportBadArguments(), OOJSReportWarning(), GuiDisplayGen::setForegroundTextureDescriptor:, GuiDisplayGen::textureDescriptorFromJSValue:inContext:callerDescription:, and UNIVERSE.
Here is the call graph for this function:
|
static |
Definition at line 765 of file OOJSGlobal.m.
References EXPECT_NOT, nil, OOJS_ARGV, OOJS_BEGIN_FULL_NATIVE, OOJS_END_FULL_NATIVE, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_BOOL, OOJSReportBadArguments(), OOJSReportWarning(), and OOStringFromJSValue().
Here is the call graph for this function:| void SetUpOOJSGlobal | ( | JSContext * | context, |
| JSObject * | global | ||
| ) |
Definition at line 173 of file OOJSGlobal.m.
References sGlobalMethods, and sGlobalProperties.
|
static |
Definition at line 56 of file OOJSGlobal.m.
|
static |
Definition at line 88 of file OOJSGlobal.m.
Referenced by CreateOOJSGlobal().
|
static |
Definition at line 133 of file OOJSGlobal.m.
Referenced by SetUpOOJSGlobal().
|
static |
Definition at line 121 of file OOJSGlobal.m.
Referenced by GlobalGetProperty(), GlobalSetProperty(), and SetUpOOJSGlobal().