|
Oolite
|
#include <OOScript.h>
Instance Methods | |
| (NSString *) | - name |
| (NSString *) | - scriptDescription |
| (NSString *) | - version |
| (NSString *) | - displayName |
| (BOOL) | - requiresTickle |
| (void) | - runWithTarget: |
| (NSString *) | - descriptionComponents [implementation] |
| (BOOL) | - callMethod:inContext:withArguments:count:result: |
| (BOOL) | - callMethod:inContext:withArguments:count:result: |
Class Methods | |
| (NSArray *) | + worldScriptsAtPath: |
| (NSArray *) | + scriptsFromFileNamed: |
| (NSArray *) | + scriptsFromList: |
| (NSArray *) | + scriptsFromFileAtPath: |
| (id) | + jsScriptFromFileNamed:properties: |
| (id) | + jsAIScriptFromFileNamed:properties: |
Definition at line 40 of file OOScript.h.
| - (BOOL) callMethod: | (JSAtom) | methodID | |
| inContext: | (JSContext*) | context | |
| withArguments: | (JSValueConst*) | argv | |
| count: | (int) | argc | |
| result: | (JSValue*) | outResult |
Reimplemented in OOJSScript.
Provided by category OOScript(JavaScriptEvents).
Definition at line 600 of file OOJSScript.m.
| - (BOOL) callMethod: | (jsid) | methodID | |
| inContext: | (JSContext*) | context | |
| withArguments: | (jsval*) | argv | |
| count: | (intN) | argc | |
| result: | (jsval*) | outResult |
Reimplemented in OOJSScript.
Provided by category OOScript(JavaScriptEvents).
Definition at line 600 of file OOJSScript.m.
Referenced by PlayerEntity::doWorldEventUntilMissionScreen:, PlayerEntity::doWorldScriptEvent:inContext:withArguments:count:timeLimit:, and OOCommodities(OOPrivate)::modifyGood:withScript:atStation:inSystem:localMode:.
|
implementation |
Reimplemented in OOJSScript.
Definition at line 227 of file OOScript.m.
References descriptionComponents, name, and version.
Referenced by descriptionComponents.
| - (NSString *) displayName |
Reimplemented in OOJSScript.
Definition at line 250 of file OOScript.m.
References displayName, name, nil, and version.
Referenced by displayName, ResourceManager::loadScripts, and OOPListScript::runWithTarget:.
| + (id) jsAIScriptFromFileNamed: | (NSString*) | fileName | |
| properties: | (NSDictionary*) | properties |
Definition at line 202 of file OOScript.m.
References nil, OOLogERR, ResourceManager::pathForFileNamed:inFolder:, and OOJSScript::scriptWithPath:properties:.
Referenced by ShipEntity(AI)::setAIScript:.
| + (id) jsScriptFromFileNamed: | (NSString*) | fileName | |
| properties: | (NSDictionary*) | properties |
Definition at line 177 of file OOScript.m.
References nil, OOLogERR, ResourceManager::pathForFileNamed:inFolder:, and OOJSScript::scriptWithPath:properties:.
Referenced by Universe::addConditionScripts:, PlayerEntity(Scripting)::addEqScriptForKey:, PlayerEntity::commodityScriptNamed:, OOJavaScriptEngine(Private)::createMainThreadContext, OOCharacter::setCharacterScript:, OOVisualEffectEntity::setScript:, ShipEntity::setShipScript:, PlayerEntity::setUpAndConfirmOK:saveGame:, and PlayerEntity::setUpShipFromDictionary:.
| - (NSString *) name |
Reimplemented in OOJSScript, and OOPListScript.
Definition at line 232 of file OOScript.m.
References kOOLogSubclassResponsibility, name, nil, and OOLogERR.
Referenced by descriptionComponents, displayName, ResourceManager::loadScripts, name, and scriptsFromList:.
| - (BOOL) requiresTickle |
Reimplemented in OOPListScript.
Definition at line 263 of file OOScript.m.
References requiresTickle.
Referenced by requiresTickle.
| - (void) runWithTarget: | (Entity*) | target |
Reimplemented in OOJSScript, and OOPListScript.
Definition at line 268 of file OOScript.m.
References kOOLogSubclassResponsibility, and OOLogERR.
| - (NSString *) scriptDescription |
Reimplemented in OOJSScript, and OOPListScript.
Definition at line 238 of file OOScript.m.
References kOOLogSubclassResponsibility, nil, OOLogERR, and scriptDescription.
Referenced by scriptDescription.
| + (NSArray *) scriptsFromFileAtPath: | (NSString*) | filePath |
Definition at line 151 of file OOScript.m.
References nil, OOEnforceStandards(), OOLogERR, OOStandardsDeprecated(), OOPListScript::scriptsInPListFile:, and OOJSScript::scriptWithPath:properties:.
Referenced by scriptsFromFileNamed:.
| + (NSArray *) scriptsFromFileNamed: | (NSString*) | fileName |
Definition at line 119 of file OOScript.m.
References nil, OOLogERR, ResourceManager::pathForFileNamed:inFolder:, and scriptsFromFileAtPath:.
Referenced by scriptsFromList:.
| + (NSArray *) scriptsFromList: | (NSArray*) | fileNames |
Definition at line 134 of file OOScript.m.
References name, nil, and scriptsFromFileNamed:.
Referenced by worldScriptsAtPath:.
| - (NSString *) version |
Reimplemented in OOJSScript, and OOPListScript.
Definition at line 244 of file OOScript.m.
References kOOLogSubclassResponsibility, nil, OOLogERR, and version.
Referenced by descriptionComponents, displayName, and version.
| + (NSArray *) worldScriptsAtPath: | (NSString*) | path |
Definition at line 45 of file OOScript.m.
References kOOLogLoadScriptJavaScript, kOOLogLoadScriptNone, kOOLogLoadScriptOK, kOOLogLoadScriptParseError, kOOLogLoadScriptPList, nil, OOArrayFromFile(), OOEnforceStandards(), OOLog, OOLogERR, OOLogIndentIf, OOLogOutdentIf, OOStandardsDeprecated(), scriptsFromList:, OOPListScript::scriptsInPListFile:, and OOJSScript::scriptWithPath:properties:.
Referenced by ResourceManager::loadScripts.