Oolite 1.91.0.7646-241128-10e222e
Loading...
Searching...
No Matches
PlayerEntityLegacyScriptEngine.m File Reference
+ Include dependency graph for PlayerEntityLegacyScriptEngine.m:

Go to the source code of this file.

Classes

category  PlayerEntity(ScriptingPrivate)
 

Macros

#define ACTIONS_TEMP_PREFIX   "__oolite_actions_temp"
 
#define DOUBLEVAL(x)
 

Functions

NSString * OOComparisonTypeToString (OOComparisonType type)
 

Variables

static NSString *const kOOLogScriptAddShipsFailed = @"script.addShips.failed"
 
static NSString *const kOOLogScriptMissionDescNoText = @"script.missionDescription.noMissionText"
 
static NSString *const kOOLogScriptMissionDescNoKey = @"script.missionDescription.noMissionKey"
 
static NSString *const kOOLogDebugOnMetaClass = @"$scriptDebugOn"
 
static NSString *const kOOLogDebugMessage = @"script.debug.message"
 
static NSString *const kOOLogDebugOnOff = @"script.debug.onOff"
 
static NSString *const kOOLogDebugAddPlanet = @"script.debug.addPlanet"
 
static NSString *const kOOLogDebugReplaceVariablesInString = @"script.debug.replaceVariablesInString"
 
static NSString *const kOOLogDebugProcessSceneStringAddScene = @"script.debug.processSceneString.addScene"
 
static NSString *const kOOLogDebugProcessSceneStringAddModel = @"script.debug.processSceneString.addModel"
 
static NSString *const kOOLogDebugProcessSceneStringAddMiniPlanet = @"script.debug.processSceneString.addMiniPlanet"
 
static NSString *const kOOLogNoteRemoveAllCargo = @"script.debug.note.removeAllCargo"
 
static NSString *const kOOLogNoteUseSpecialCargo = @"script.debug.note.useSpecialCargo"
 
static NSString *const kOOLogNoteAddShips = @"script.debug.note.addShips"
 
static NSString *const kOOLogNoteSet = @"script.debug.note.set"
 
static NSString *const kOOLogNoteShowShipModel = @"script.debug.note.showShipModel"
 
static NSString *const kOOLogNoteFuelLeak = @"script.debug.note.setFuelLeak"
 
static NSString *const kOOLogNoteAddPlanet = @"script.debug.note.addPlanet"
 
static NSString *const kOOLogNoteProcessSceneString = @"script.debug.note.processSceneString"
 
static NSString *const kOOLogSyntaxSetPlanetInfo = @"script.debug.syntax.setPlanetInfo"
 
static NSString *const kOOLogSyntaxAwardCargo = @"script.debug.syntax.awardCargo"
 
static NSString *const kOOLogSyntaxAwardEquipment = @"script.debug.syntax.awardEquipment"
 
static NSString *const kOOLogSyntaxRemoveEquipment = @"script.debug.syntax.removeEquipment"
 
static NSString *const kOOLogSyntaxMessageShipAIs = @"script.debug.syntax.messageShipAIs"
 
static NSString *const kOOLogSyntaxAddShips = @"script.debug.syntax.addShips"
 
static NSString *const kOOLogSyntaxSet = @"script.debug.syntax.set"
 
static NSString *const kOOLogSyntaxReset = @"script.debug.syntax.reset"
 
static NSString *const kOOLogSyntaxIncrement = @"script.debug.syntax.increment"
 
static NSString *const kOOLogSyntaxDecrement = @"script.debug.syntax.decrement"
 
static NSString *const kOOLogSyntaxAdd = @"script.debug.syntax.add"
 
static NSString *const kOOLogSyntaxSubtract = @"script.debug.syntax.subtract"
 
static NSString *const kOOLogRemoveAllCargoNotDocked = @"script.error.removeAllCargo.notDocked"
 
static NSString *const kActionTempPrefix = @ ACTIONS_TEMP_PREFIX
 
static NSString * sMissionStringValue = nil
 
static NSString * sCurrentMissionKey = nil
 
static ShipEntityscriptTarget = nil
 
static BOOL sRunningScript = NO
 
static int shipsFound
 

Macro Definition Documentation

◆ ACTIONS_TEMP_PREFIX

#define ACTIONS_TEMP_PREFIX   "__oolite_actions_temp"

Definition at line 96 of file PlayerEntityLegacyScriptEngine.m.

◆ DOUBLEVAL

#define DOUBLEVAL ( x)
Value:
((x != nil) ? [x doubleValue] : 0.0)
return nil
float x

Function Documentation

◆ OOComparisonTypeToString()

NSString * OOComparisonTypeToString ( OOComparisonType type)

Definition at line 2983 of file PlayerEntityLegacyScriptEngine.m.

2984{
2985 switch (type)
2986 {
2987 case COMPARISON_EQUAL: return @"equal";
2988 case COMPARISON_NOTEQUAL: return @"notequal";
2989 case COMPARISON_LESSTHAN: return @"lessthan";
2990 case COMPARISON_GREATERTHAN: return @"greaterthan";
2991 case COMPARISON_ONEOF: return @"oneof";
2992 case COMPARISON_UNDEFINED: return @"undefined";
2993 }
2994 return @"<error: invalid comparison type>";
2995}

Referenced by SanitizeCondition().

+ Here is the caller graph for this function:

Variable Documentation

◆ kActionTempPrefix

NSString* const kActionTempPrefix = @ ACTIONS_TEMP_PREFIX
static

◆ kOOLogDebugAddPlanet

NSString* const kOOLogDebugAddPlanet = @"script.debug.addPlanet"
static

Definition at line 65 of file PlayerEntityLegacyScriptEngine.m.

◆ kOOLogDebugMessage

NSString* const kOOLogDebugMessage = @"script.debug.message"
static

Definition at line 63 of file PlayerEntityLegacyScriptEngine.m.

◆ kOOLogDebugOnMetaClass

NSString* const kOOLogDebugOnMetaClass = @"$scriptDebugOn"
static

Definition at line 62 of file PlayerEntityLegacyScriptEngine.m.

◆ kOOLogDebugOnOff

NSString* const kOOLogDebugOnOff = @"script.debug.onOff"
static

Definition at line 64 of file PlayerEntityLegacyScriptEngine.m.

◆ kOOLogDebugProcessSceneStringAddMiniPlanet

NSString* const kOOLogDebugProcessSceneStringAddMiniPlanet = @"script.debug.processSceneString.addMiniPlanet"
static

Definition at line 69 of file PlayerEntityLegacyScriptEngine.m.

◆ kOOLogDebugProcessSceneStringAddModel

NSString* const kOOLogDebugProcessSceneStringAddModel = @"script.debug.processSceneString.addModel"
static

Definition at line 68 of file PlayerEntityLegacyScriptEngine.m.

◆ kOOLogDebugProcessSceneStringAddScene

NSString* const kOOLogDebugProcessSceneStringAddScene = @"script.debug.processSceneString.addScene"
static

Definition at line 67 of file PlayerEntityLegacyScriptEngine.m.

◆ kOOLogDebugReplaceVariablesInString

NSString* const kOOLogDebugReplaceVariablesInString = @"script.debug.replaceVariablesInString"
static

Definition at line 66 of file PlayerEntityLegacyScriptEngine.m.

◆ kOOLogNoteAddPlanet

NSString* const kOOLogNoteAddPlanet = @"script.debug.note.addPlanet"
static

Definition at line 77 of file PlayerEntityLegacyScriptEngine.m.

◆ kOOLogNoteAddShips

NSString* const kOOLogNoteAddShips = @"script.debug.note.addShips"
static

Definition at line 73 of file PlayerEntityLegacyScriptEngine.m.

◆ kOOLogNoteFuelLeak

NSString* const kOOLogNoteFuelLeak = @"script.debug.note.setFuelLeak"
static

Definition at line 76 of file PlayerEntityLegacyScriptEngine.m.

◆ kOOLogNoteProcessSceneString

NSString* const kOOLogNoteProcessSceneString = @"script.debug.note.processSceneString"
static

Definition at line 78 of file PlayerEntityLegacyScriptEngine.m.

◆ kOOLogNoteRemoveAllCargo

NSString* const kOOLogNoteRemoveAllCargo = @"script.debug.note.removeAllCargo"
static

Definition at line 71 of file PlayerEntityLegacyScriptEngine.m.

◆ kOOLogNoteSet

NSString* const kOOLogNoteSet = @"script.debug.note.set"
static

Definition at line 74 of file PlayerEntityLegacyScriptEngine.m.

◆ kOOLogNoteShowShipModel

NSString* const kOOLogNoteShowShipModel = @"script.debug.note.showShipModel"
static

Definition at line 75 of file PlayerEntityLegacyScriptEngine.m.

◆ kOOLogNoteUseSpecialCargo

NSString* const kOOLogNoteUseSpecialCargo = @"script.debug.note.useSpecialCargo"
static

Definition at line 72 of file PlayerEntityLegacyScriptEngine.m.

◆ kOOLogRemoveAllCargoNotDocked

NSString* const kOOLogRemoveAllCargoNotDocked = @"script.error.removeAllCargo.notDocked"
static

Definition at line 93 of file PlayerEntityLegacyScriptEngine.m.

◆ kOOLogScriptAddShipsFailed

NSString* const kOOLogScriptAddShipsFailed = @"script.addShips.failed"
static

Definition at line 58 of file PlayerEntityLegacyScriptEngine.m.

◆ kOOLogScriptMissionDescNoKey

NSString* const kOOLogScriptMissionDescNoKey = @"script.missionDescription.noMissionKey"
static

Definition at line 60 of file PlayerEntityLegacyScriptEngine.m.

◆ kOOLogScriptMissionDescNoText

NSString* const kOOLogScriptMissionDescNoText = @"script.missionDescription.noMissionText"
static

Definition at line 59 of file PlayerEntityLegacyScriptEngine.m.

◆ kOOLogSyntaxAdd

NSString* const kOOLogSyntaxAdd = @"script.debug.syntax.add"
static

Definition at line 90 of file PlayerEntityLegacyScriptEngine.m.

◆ kOOLogSyntaxAddShips

NSString* const kOOLogSyntaxAddShips = @"script.debug.syntax.addShips"
static

Definition at line 85 of file PlayerEntityLegacyScriptEngine.m.

◆ kOOLogSyntaxAwardCargo

NSString* const kOOLogSyntaxAwardCargo = @"script.debug.syntax.awardCargo"
static

Definition at line 81 of file PlayerEntityLegacyScriptEngine.m.

◆ kOOLogSyntaxAwardEquipment

NSString* const kOOLogSyntaxAwardEquipment = @"script.debug.syntax.awardEquipment"
static

Definition at line 82 of file PlayerEntityLegacyScriptEngine.m.

◆ kOOLogSyntaxDecrement

NSString* const kOOLogSyntaxDecrement = @"script.debug.syntax.decrement"
static

Definition at line 89 of file PlayerEntityLegacyScriptEngine.m.

◆ kOOLogSyntaxIncrement

NSString* const kOOLogSyntaxIncrement = @"script.debug.syntax.increment"
static

Definition at line 88 of file PlayerEntityLegacyScriptEngine.m.

◆ kOOLogSyntaxMessageShipAIs

NSString* const kOOLogSyntaxMessageShipAIs = @"script.debug.syntax.messageShipAIs"
static

Definition at line 84 of file PlayerEntityLegacyScriptEngine.m.

◆ kOOLogSyntaxRemoveEquipment

NSString* const kOOLogSyntaxRemoveEquipment = @"script.debug.syntax.removeEquipment"
static

Definition at line 83 of file PlayerEntityLegacyScriptEngine.m.

◆ kOOLogSyntaxReset

NSString* const kOOLogSyntaxReset = @"script.debug.syntax.reset"
static

Definition at line 87 of file PlayerEntityLegacyScriptEngine.m.

◆ kOOLogSyntaxSet

NSString* const kOOLogSyntaxSet = @"script.debug.syntax.set"
static

Definition at line 86 of file PlayerEntityLegacyScriptEngine.m.

◆ kOOLogSyntaxSetPlanetInfo

NSString* const kOOLogSyntaxSetPlanetInfo = @"script.debug.syntax.setPlanetInfo"
static

Definition at line 80 of file PlayerEntityLegacyScriptEngine.m.

◆ kOOLogSyntaxSubtract

NSString* const kOOLogSyntaxSubtract = @"script.debug.syntax.subtract"
static

Definition at line 91 of file PlayerEntityLegacyScriptEngine.m.

◆ scriptTarget

ShipEntity* scriptTarget = nil
static

Definition at line 102 of file PlayerEntityLegacyScriptEngine.m.

◆ sCurrentMissionKey

NSString* sCurrentMissionKey = nil
static

◆ shipsFound

int shipsFound
static

Definition at line 955 of file PlayerEntityLegacyScriptEngine.m.

◆ sMissionStringValue

NSString* sMissionStringValue = nil
static

Definition at line 100 of file PlayerEntityLegacyScriptEngine.m.

◆ sRunningScript

BOOL sRunningScript = NO
static

Definition at line 278 of file PlayerEntityLegacyScriptEngine.m.