![]() |
Oolite 1.91.0.7650-250121-affa790
|
#include <PlayerEntityLegacyScriptEngine.h>
Class Methods | |
(static NSString *) | + CurrentScriptNameOr [implementation] |
(static void) | + PerformScriptActions [implementation] |
(static void) | + PerformConditionalStatment [implementation] |
(static void) | + PerformActionStatment [implementation] |
(static BOOL) | + TestScriptConditions [implementation] |
Definition at line 57 of file PlayerEntityLegacyScriptEngine.h.
- (void) add: | (NSString *) | missionVariableString_value |
Extends class PlayerEntity.
Definition at line 1807 of file PlayerEntityLegacyScriptEngine.m.
References count, kOOLogSyntaxAdd, PlayerEntity::localVariableForKey:andMission:, PlayerEntity::missionVariableForKey:, nil, OOLog, ScanTokensFromString(), PlayerEntity::setLocalVariable:forKey:andMission:, and PlayerEntity::setMissionVariable:forKey:.
- (BOOL) addEqScriptForKey: | (NSString *) | eq_key |
Extends class PlayerEntity.
Definition at line 2853 of file PlayerEntityLegacyScriptEngine.m.
References count, OOEquipmentType::equipmentTypeWithIdentifier:, OOScript::jsScriptFromFileNamed:properties:, nil, OOLog, and OOEquipmentType::scriptName.
- (void) addLiteralMissionText: | (NSString *) | text |
Extends class PlayerEntity.
Definition at line 1919 of file PlayerEntityLegacyScriptEngine.m.
References GuiDisplayGen::addLongText:startingAtRow:align:, and nil.
- (void) addMissionDestination: | (NSString *) | destinations |
Extends class PlayerEntity.
Definition at line 2117 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::addMissionDestinationMarker:, PlayerEntity::defaultMarker:, and ScanTokensFromString().
- (void) addMissionText: | (NSString *) | textKey |
Extends class PlayerEntity.
Definition at line 1901 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::addLiteralMissionText:, kOOExpandBackslashN, nil, OOExpandWithOptions, OOStringExpanderDefaultRandomSeed(), and PlayerEntity::replaceVariablesInString:.
- (OOPlanetEntity *) addMoon: | (NSString *) | moonKey |
Extends class PlayerEntity.
Definition at line 2361 of file PlayerEntityLegacyScriptEngine.m.
References kOOLogDebugAddPlanet, kOOLogNoteAddPlanet, nil, OOLog, OOLogWARN, ScanHPVectorFromString(), ScanQuaternionFromString(), and UNIVERSE.
- (OOPlanetEntity *) addPlanet: | (NSString *) | planetKey |
Extends class PlayerEntity.
Definition at line 2309 of file PlayerEntityLegacyScriptEngine.m.
References kOOLogDebugAddPlanet, kOOLogNoteAddPlanet, nil, OOLog, OOLogWARN, ScanHPVectorFromString(), ScanQuaternionFromString(), and UNIVERSE.
- (void) addScene: | (NSArray *) | items | |
atOffset: | (Vector) | off |
Extends class PlayerEntity.
Definition at line 2585 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::addScene:atOffset:, nil, PlayerEntity::processSceneDictionary:atOffset:, and PlayerEntity::processSceneString:atOffset:.
- (void) addShips: | (NSString *) | roles_number |
Extends class PlayerEntity.
Definition at line 1499 of file PlayerEntityLegacyScriptEngine.m.
References count, kOOLogNoteAddShips, kOOLogSyntaxAddShips, nil, OOLog, and ScanTokensFromString().
- (void) addShipsAt: | (NSString *) | roles_number_system_x_y_z |
Extends class PlayerEntity.
Definition at line 1560 of file PlayerEntityLegacyScriptEngine.m.
References count, kOOLogNoteAddShips, kOOLogScriptAddShipsFailed, kOOLogSyntaxAddShips, nil, OOLog, ScanTokensFromString(), and UNIVERSE.
- (void) addShipsAtPrecisely: | (NSString *) | roles_number_system_x_y_z |
Extends class PlayerEntity.
Definition at line 1602 of file PlayerEntityLegacyScriptEngine.m.
References count, kOOLogNoteAddShips, kOOLogScriptAddShipsFailed, kOOLogSyntaxAddShips, nil, OOLog, ScanTokensFromString(), and UNIVERSE.
- (void) addShipsWithinRadius: | (NSString *) | roles_number_system_x_y_z_r |
Extends class PlayerEntity.
Definition at line 1644 of file PlayerEntityLegacyScriptEngine.m.
References count, kOOLogNoteAddShips, kOOLogScriptAddShipsFailed, kOOLogSyntaxAddShips, OOLog, ScanTokensFromString(), UNIVERSE, x, and y.
- (void) addSystemShips: | (NSString *) | roles_number_position |
Extends class PlayerEntity.
Definition at line 1528 of file PlayerEntityLegacyScriptEngine.m.
References count, kOOLogNoteAddShips, kOOLogSyntaxAddShips, nil, OOLog, and ScanTokensFromString().
- (void) awardCargo: | (NSString *) | amount_typeString |
Extends class PlayerEntity.
Definition at line 1346 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::awardCommodityType:amount:, count, kOOLogSyntaxAwardCargo, OOLog, ScanTokensFromString(), scriptTarget, UNITS_TONS, and UNIVERSE.
- (void) awardCredits: | (NSString *) | valueString |
Extends class PlayerEntity.
Definition at line 1223 of file PlayerEntityLegacyScriptEngine.m.
References scriptTarget.
- (void) awardEquipment: | (NSString *) | equipString |
Extends class PlayerEntity.
Definition at line 1247 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::addEquipmentItem:withValidation:inContext:, OOEquipmentType::equipmentTypeWithIdentifier:, ShipEntity::fuelCapacity, kOOLogSyntaxAwardEquipment, PlayerEntity::mountMissileWithRole:, OOLog, scriptTarget, and ShipEntity::setFuel:.
- (void) awardFuel: | (NSString *) | valueString |
Extends class PlayerEntity.
Definition at line 1451 of file PlayerEntityLegacyScriptEngine.m.
References ShipEntity::fuel, and ShipEntity::setFuel:.
- (void) awardShipKills: | (NSString *) | valueString |
Extends class PlayerEntity.
Definition at line 1238 of file PlayerEntityLegacyScriptEngine.m.
References scriptTarget.
- (void) blowUpStation |
Extends class PlayerEntity.
Definition at line 2256 of file PlayerEntityLegacyScriptEngine.m.
References blowUpStation, nil, and StationEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:.
Referenced by blowUpStation.
- (void) checkForShips: | (NSString *) | roleString |
Extends class PlayerEntity.
Definition at line 1887 of file PlayerEntityLegacyScriptEngine.m.
References shipsFound.
- (void) checkScript |
Extends class PlayerEntity.
Definition at line 302 of file PlayerEntityLegacyScriptEngine.m.
References checkScript, count, kOOLogException, OOLog, RecursiveRemapStatus, PlayerEntity::setScriptTarget:, ShipEntity::setStatus:, sRunningScript, Entity::status, and PlayerEntity::worldScriptsRequiringTickle.
Referenced by checkScript.
- (void) clearMissionDescription |
Extends class PlayerEntity.
Definition at line 887 of file PlayerEntityLegacyScriptEngine.m.
References clearMissionDescription, and PlayerEntity::clearMissionDescriptionForMission:.
Referenced by clearMissionDescription.
- (void) clearMissionDescriptionForMission: | (NSString *) | key |
Extends class PlayerEntity.
Definition at line 893 of file PlayerEntityLegacyScriptEngine.m.
References kOOLogScriptMissionDescNoKey, and OOLogERR.
- (void) clearMissionScreen |
Extends class PlayerEntity.
Definition at line 2106 of file PlayerEntityLegacyScriptEngine.m.
References clearMissionScreen, PlayerEntity::setMissionBackgroundDescriptor:, PlayerEntity::setMissionBackgroundSpecial:, PlayerEntity::setMissionMusic:, PlayerEntity::setMissionOverlayDescriptor:, PlayerEntity::setMissionTitle:, and PlayerEntity::showShipModel:.
Referenced by clearMissionScreen.
- (void) clearMissionScreenID |
Extends class PlayerEntity.
Definition at line 2447 of file PlayerEntityLegacyScriptEngine.m.
References clearMissionScreenID, and nil.
Referenced by clearMissionScreenID.
- (NSNumber *) clock_days_number |
Extends class PlayerEntity.
Definition at line 1030 of file PlayerEntityLegacyScriptEngine.m.
References clock_days_number.
Referenced by clock_days_number.
- (NSNumber *) clock_hours_number |
Extends class PlayerEntity.
Definition at line 1024 of file PlayerEntityLegacyScriptEngine.m.
References clock_hours_number.
Referenced by clock_hours_number.
- (NSNumber *) clock_mins_number |
Extends class PlayerEntity.
Definition at line 1018 of file PlayerEntityLegacyScriptEngine.m.
References clock_mins_number.
Referenced by clock_mins_number.
- (NSNumber *) clock_number |
Extends class PlayerEntity.
Definition at line 1006 of file PlayerEntityLegacyScriptEngine.m.
References clock_number.
Referenced by clock_number.
- (NSNumber *) clock_secs_number |
Extends class PlayerEntity.
Definition at line 1012 of file PlayerEntityLegacyScriptEngine.m.
References clock_secs_number.
Referenced by clock_secs_number.
- (NSNumber *) commanderLegalStatus_number |
Extends class PlayerEntity.
Definition at line 962 of file PlayerEntityLegacyScriptEngine.m.
References commanderLegalStatus_number, and PlayerEntity::legalStatus.
Referenced by commanderLegalStatus_number.
- (NSString *) commanderLegalStatus_string |
Extends class PlayerEntity.
Definition at line 974 of file PlayerEntityLegacyScriptEngine.m.
References commanderLegalStatus_string, and OODisplayStringFromLegalStatus().
Referenced by commanderLegalStatus_string.
- (NSString *) commanderName_string |
Extends class PlayerEntity.
Definition at line 1155 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::commanderName, and commanderName_string.
Referenced by commanderName_string.
- (NSString *) commanderRank_string |
Extends class PlayerEntity.
Definition at line 1161 of file PlayerEntityLegacyScriptEngine.m.
References commanderRank_string, and OODisplayRatingStringFromKillCount().
Referenced by commanderRank_string.
- (NSString *) commanderShip_string |
Extends class PlayerEntity.
Definition at line 1167 of file PlayerEntityLegacyScriptEngine.m.
References commanderShip_string, and ShipEntity::name.
Referenced by commanderShip_string.
- (NSString *) commanderShipDisplayName_string |
Extends class PlayerEntity.
Definition at line 1173 of file PlayerEntityLegacyScriptEngine.m.
References commanderShipDisplayName_string, and ShipEntity::displayName.
Referenced by commanderShipDisplayName_string.
- (void) commsMessage: | (NSString *) | valueString |
Extends class PlayerEntity.
Definition at line 1196 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::expandMessage:.
- (void) commsMessageByUnpiloted: | (NSString *) | valueString |
Extends class PlayerEntity.
Definition at line 1205 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::commsMessage:.
- (void) consoleMessage3s: | (NSString *) | valueString |
Extends class PlayerEntity.
Definition at line 1211 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::expandMessage:.
- (void) consoleMessage6s: | (NSString *) | valueString |
Extends class PlayerEntity.
Definition at line 1217 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::expandMessage:.
- (NSNumber *) credits_number |
Extends class PlayerEntity.
Definition at line 943 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::creditBalance, and credits_number.
Referenced by credits_number.
|
implementation |
Extends class PlayerEntity.
Definition at line 129 of file PlayerEntityLegacyScriptEngine.m.
References CurrentScriptNameOr, and OOINLINE.
|
implementation |
Extends class PlayerEntity.
Definition at line 119 of file PlayerEntityLegacyScriptEngine.m.
References kActionTempPrefix, nil, and sCurrentMissionKey.
Referenced by CurrentScriptDesc(void).
- (NSNumber *) d100_number |
Extends class PlayerEntity.
Definition at line 980 of file PlayerEntityLegacyScriptEngine.m.
References d100_number, and ranrot_rand.
Referenced by d100_number.
- (NSNumber *) d256_number |
Extends class PlayerEntity.
Definition at line 993 of file PlayerEntityLegacyScriptEngine.m.
References d256_number, and ranrot_rand.
Referenced by d256_number.
- (void) debugMessage: | (NSString *) | args |
Extends class PlayerEntity.
Definition at line 2425 of file PlayerEntityLegacyScriptEngine.m.
References kOOLogDebugMessage, and OOLog.
- (void) debugOff |
Extends class PlayerEntity.
Definition at line 2418 of file PlayerEntityLegacyScriptEngine.m.
References debugOff, kOOLogDebugOnMetaClass, kOOLogDebugOnOff, OOLog, and OOLogSetDisplayMessagesInClass().
Referenced by debugOff.
- (void) debugOn |
Extends class PlayerEntity.
Definition at line 2411 of file PlayerEntityLegacyScriptEngine.m.
References debugOn, kOOLogDebugOnMetaClass, kOOLogDebugOnOff, OOLog, and OOLogSetDisplayMessagesInClass().
Referenced by debugOn.
- (void) decrement: | (NSString *) | missionVariableString |
Extends class PlayerEntity.
Definition at line 1780 of file PlayerEntityLegacyScriptEngine.m.
References kOOLogSyntaxDecrement, PlayerEntity::localVariableForKey:andMission:, PlayerEntity::missionVariableForKey:, OOLog, PlayerEntity::setLocalVariable:forKey:andMission:, and PlayerEntity::setMissionVariable:forKey:.
- (NSString *) dockedAtMainStation_bool |
Extends class PlayerEntity.
Definition at line 1042 of file PlayerEntityLegacyScriptEngine.m.
References dockedAtMainStation_bool.
Referenced by dockedAtMainStation_bool.
- (NSString *) dockedStationName_string |
Extends class PlayerEntity.
Definition at line 1089 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::dockedStationName, dockedStationName_string, and nil.
Referenced by dockedStationName_string.
- (NSNumber *) dockedTechLevel_number |
Extends class PlayerEntity.
Definition at line 1079 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::dockedStation, dockedTechLevel_number, StationEntity::equivalentTechLevel, and PlayerEntity::systemTechLevel_number.
Referenced by dockedTechLevel_number.
- (void) doMissionCallback |
Extends class PlayerEntity.
Definition at line 2439 of file PlayerEntityLegacyScriptEngine.m.
References doMissionCallback, OOJavaScriptEngine::runMissionCallback, and OOJavaScriptEngine::sharedEngine.
Referenced by doMissionCallback.
- (void) ejectItem: | (NSString *) | item_key |
Extends class PlayerEntity.
Definition at line 1492 of file PlayerEntityLegacyScriptEngine.m.
References ShipEntity::ejectShipOfType:, nil, and scriptTarget.
- (void) endMissionScreenAndNoteOpportunity |
Extends class PlayerEntity.
Definition at line 2466 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::clearMissionScreenID, PlayerEntity::doWorldEventUntilMissionScreen:, endMissionScreenAndNoteOpportunity, and OOJSID.
Referenced by endMissionScreenAndNoteOpportunity.
- (NSUInteger) eqScriptIndexForKey: | (NSString *) | eq_key |
Extends class PlayerEntity.
Definition at line 2911 of file PlayerEntityLegacyScriptEngine.m.
|
implementation |
Extends class PlayerEntity.
Definition at line 1181 of file PlayerEntityLegacyScriptEngine.m.
|
implementation |
Extends class PlayerEntity.
Definition at line 610 of file PlayerEntityLegacyScriptEngine.m.
- (NSString *) foundEquipment_bool |
Extends class PlayerEntity.
Definition at line 1049 of file PlayerEntityLegacyScriptEngine.m.
References foundEquipment_bool.
Referenced by foundEquipment_bool.
- (NSNumber *) fuelLeakRate_number |
Extends class PlayerEntity.
Definition at line 2234 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::fuelLeakRate, and fuelLeakRate_number.
Referenced by fuelLeakRate_number.
- (NSNumber *) fuelLevel_number |
Extends class PlayerEntity.
Definition at line 1036 of file PlayerEntityLegacyScriptEngine.m.
References fuelLevel_number.
Referenced by fuelLevel_number.
- (NSNumber *) galaxy_number |
Extends class PlayerEntity.
Definition at line 925 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::currentGalaxyID, and galaxy_number.
Referenced by PlayerEntity::doBookkeeping:, PlayerEntity::enterGalacticWitchspace, galaxy_number, PlayerEntity::galaxyNumber, PlayerEntity::setCommanderDataFromDictionary:, PlayerEntity::setSystemID:, PlayerEntity::setTargetSystemID:, and PlayerEntity::setUpAndConfirmOK:saveGame:.
- (NSString *) gui_screen_string |
Extends class PlayerEntity.
Definition at line 919 of file PlayerEntityLegacyScriptEngine.m.
References gui_screen_string, and OOStringFromGUIScreenID().
Referenced by gui_screen_string.
- (void) increment: | (NSString *) | missionVariableString |
Extends class PlayerEntity.
Definition at line 1753 of file PlayerEntityLegacyScriptEngine.m.
References kOOLogSyntaxIncrement, PlayerEntity::localVariableForKey:andMission:, PlayerEntity::missionVariableForKey:, OOLog, PlayerEntity::setLocalVariable:forKey:andMission:, and PlayerEntity::setMissionVariable:forKey:.
- (void) launchFromStation |
Extends class PlayerEntity.
Definition at line 2247 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::dockedStation, launchFromStation, PlayerEntity::leaveDock:, ShipEntity::setStatus:, and UNIVERSE.
Referenced by launchFromStation.
- (NSString *) localVariableForKey: | (NSString *) | variableName | |
andMission: | (NSString *) | missionKey |
Extends class PlayerEntity.
Definition at line 686 of file PlayerEntityLegacyScriptEngine.m.
- (NSMutableDictionary *) localVariablesForMission: | (NSString *) | missionKey |
Extends class PlayerEntity.
Definition at line 669 of file PlayerEntityLegacyScriptEngine.m.
References nil.
- (void) messageShipAIs: | (NSString *) | roles_message |
Extends class PlayerEntity.
Definition at line 1464 of file PlayerEntityLegacyScriptEngine.m.
References count, ShipEntity::getAI, kOOLogSyntaxMessageShipAIs, nil, OOLog, AI::reactToMessage:context:, and ScanTokensFromString().
- (NSString *) mission_string |
Extends class PlayerEntity.
Definition at line 907 of file PlayerEntityLegacyScriptEngine.m.
References mission_string, and sMissionStringValue.
Referenced by mission_string.
- (NSString *) missionChoice_string |
Extends class PlayerEntity.
Definition at line 1067 of file PlayerEntityLegacyScriptEngine.m.
References missionChoice_string.
Referenced by missionChoice_string.
- (NSString *) missionKeyPress_string |
Extends class PlayerEntity.
Definition at line 1073 of file PlayerEntityLegacyScriptEngine.m.
References missionKeyPress_string.
Referenced by missionKeyPress_string.
- (NSString *) missionScreenID |
Extends class PlayerEntity.
Definition at line 2460 of file PlayerEntityLegacyScriptEngine.m.
References missionScreenID.
Referenced by missionScreenID.
- (NSArray *) missionsList |
Extends class PlayerEntity.
Definition at line 711 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::contractList, count, missionsList, nil, PlayerEntity::parcelList, and PlayerEntity::passengerList.
Referenced by missionsList.
- (NSString *) missionTitle |
Extends class PlayerEntity.
Definition at line 2173 of file PlayerEntityLegacyScriptEngine.m.
References missionTitle.
Referenced by missionTitle.
- (NSString *) missionVariableForKey: | (NSString *) | key |
Extends class PlayerEntity.
Definition at line 651 of file PlayerEntityLegacyScriptEngine.m.
References nil.
- (NSDictionary *) missionVariables |
Extends class PlayerEntity.
Definition at line 645 of file PlayerEntityLegacyScriptEngine.m.
References missionVariables.
Referenced by missionVariables.
|
implementation |
Extends class PlayerEntity.
Definition at line 185 of file PlayerEntityLegacyScriptEngine.m.
References count, kOOExpandNoOptions, PlayerEntity::localVariablesForMission:, nil, OOExpandDescriptionString(), OOStringExpanderDefaultRandomSeed(), PerformActionStatment, and PLAYER.
Referenced by PerformActionStatment, and PerformScriptActions.
|
implementation |
Extends class PlayerEntity.
Definition at line 158 of file PlayerEntityLegacyScriptEngine.m.
References nil, PerformConditionalStatment, PerformScriptActions, and TestScriptConditions.
Referenced by PerformConditionalStatment, and PerformScriptActions.
|
implementation |
Extends class PlayerEntity.
Definition at line 141 of file PlayerEntityLegacyScriptEngine.m.
References nil, PerformActionStatment, PerformConditionalStatment, and PerformScriptActions.
Referenced by PerformConditionalStatment, PerformScriptActions, and runScriptActions:withContextName:forTarget:.
- (NSNumber *) planet_number |
Extends class PlayerEntity.
Definition at line 931 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::currentSystemID, and planet_number.
Referenced by planet_number.
- (void) playSound: | (NSString *) | soundName |
Extends class PlayerEntity.
Definition at line 2431 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::playLegacyScriptSound:.
- (BOOL) processSceneDictionary: | (NSDictionary *) | couplet | |
atOffset: | (Vector) | off |
Extends class PlayerEntity.
Definition at line 2610 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::addScene:atOffset:, count, nil, OOLog, OOSanitizeLegacyScriptConditions(), and TestScriptConditions.
- (BOOL) processSceneString: | (NSString*) | item | |
atOffset: | (Vector) | off |
Extends class PlayerEntity.
Definition at line 2648 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::addScene:atOffset:, count, kOOLogDebugProcessSceneStringAddMiniPlanet, kOOLogDebugProcessSceneStringAddModel, kOOLogDebugProcessSceneStringAddScene, kOOLogNoteProcessSceneString, nil, OOLog, ScanTokensFromString(), ScanVectorAndQuaternionFromString(), ScanVectorFromString(), ShipEntity::setBehaviour:, Entity::setOrientation:, ShipEntity::setPitch:, Entity::setPosition:, ShipEntity::setRoll:, Entity::setScanClass:, ShipEntity::setStatus:, Entity::setVelocity:, ShipEntity::shipDataKey, ShipEntity::switchAITo:, and UNIVERSE.
- (NSNumber *) pseudoFixedD100_number |
Extends class PlayerEntity.
Definition at line 987 of file PlayerEntityLegacyScriptEngine.m.
References pseudoFixedD100_number, and PlayerEntity::systemPseudoRandom100.
Referenced by pseudoFixedD100_number.
- (NSNumber *) pseudoFixedD256_number |
Extends class PlayerEntity.
Definition at line 1000 of file PlayerEntityLegacyScriptEngine.m.
References pseudoFixedD256_number, and PlayerEntity::systemPseudoRandom256.
Referenced by pseudoFixedD256_number.
|
implementation |
Extends class PlayerEntity.
Definition at line 260 of file PlayerEntityLegacyScriptEngine.m.
References OOINLINE.
Referenced by checkScript.
- (void) refreshMissionScreenTextEntry |
Extends class PlayerEntity.
Definition at line 2491 of file PlayerEntityLegacyScriptEngine.m.
References OOColor::cyanColor, refreshMissionScreenTextEntry, GuiDisplayGen::setColor:forRow:, GuiDisplayGen::setCurrentRow:, GuiDisplayGen::setShowTextCursor:, GuiDisplayGen::setText:forRow:align:, and MyOpenGLView::typedString.
Referenced by refreshMissionScreenTextEntry.
- (void) removeAllCargo |
Extends class PlayerEntity.
Definition at line 1387 of file PlayerEntityLegacyScriptEngine.m.
References removeAllCargo, and PlayerEntity::removeAllCargo:.
Referenced by removeAllCargo, and removeAllCargo:.
- (void) removeAllCargo: | (BOOL) | forceRemoval |
Extends class PlayerEntity.
Definition at line 1392 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::calculateCurrentCargo, count, DESTROY, kOOLogNoteRemoveAllCargo, kOOLogRemoveAllCargoNotDocked, OOLog, OOLogWARN, removeAllCargo, scriptTarget, and UNITS_TONS.
- (void) removeEqScriptForKey: | (NSString *) | eq_key |
Extends class PlayerEntity.
Definition at line 2887 of file PlayerEntityLegacyScriptEngine.m.
- (void) removeEquipment: | (NSString *) | equipString |
Extends class PlayerEntity.
Definition at line 1277 of file PlayerEntityLegacyScriptEngine.m.
References kOOLogSyntaxRemoveEquipment, OOLog, PlayerEntity::removeEquipmentItem:, and scriptTarget.
- (void) removeMissionDestination: | (NSString *) | destinations |
Extends class PlayerEntity.
Definition at line 2134 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::defaultMarker:, PlayerEntity::removeMissionDestinationMarker:, and ScanTokensFromString().
- (NSString *) replaceVariablesInString: | (NSString*) | args |
Extends class PlayerEntity.
Definition at line 782 of file PlayerEntityLegacyScriptEngine.m.
References kOOLogDebugReplaceVariablesInString, PlayerEntity::localVariablesForMission:, OOExpand, OOLog, and ScanTokensFromString().
- (void) reset: | (NSString *) | missionvariable |
Extends class PlayerEntity.
Definition at line 1730 of file PlayerEntityLegacyScriptEngine.m.
References kOOLogSyntaxReset, OOLog, PlayerEntity::setLocalVariable:forKey:andMission:, and PlayerEntity::setMissionVariable:forKey:.
- (void) resetMissionChoice |
Extends class PlayerEntity.
Definition at line 2100 of file PlayerEntityLegacyScriptEngine.m.
References resetMissionChoice, and PlayerEntity::setMissionChoice:.
Referenced by resetMissionChoice.
- (void) resetScriptTimer |
Extends class PlayerEntity.
Definition at line 1893 of file PlayerEntityLegacyScriptEngine.m.
References resetScriptTimer, and SCRIPT_TIMER_INTERVAL.
Referenced by resetScriptTimer.
- (void) runScriptActions: | (NSArray *) | sanitizedActions | |
withContextName: | (NSString *) | contextName | |
forTarget: | (ShipEntity *) | target |
Extends class PlayerEntity.
Definition at line 361 of file PlayerEntityLegacyScriptEngine.m.
References kActionTempPrefix, nil, OOLog, PerformScriptActions, and sCurrentMissionKey.
- (void) runUnsanitizedScriptActions: | (NSArray *) | unsanitizedActions | |
allowingAIMethods: | (BOOL) | allowAIMethods | |
withContextName: | (NSString *) | contextName | |
forTarget: | (ShipEntity *) | target |
Extends class PlayerEntity.
Definition at line 392 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::runScriptActions:withContextName:forTarget:.
- (NSNumber *) score_number |
Extends class PlayerEntity.
Definition at line 937 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::score, and score_number.
Referenced by score_number.
- (ShipEntity *) scriptTarget |
Extends class PlayerEntity.
Definition at line 254 of file PlayerEntityLegacyScriptEngine.m.
References scriptTarget.
Referenced by awardCargo:, awardCredits:, awardEquipment:, awardShipKills:, ejectItem:, removeAllCargo:, removeEquipment:, scriptTarget, setFuelLeak:, setScriptTarget:, and useSpecialCargo:.
|
implementation |
Extends class PlayerEntity.
Definition at line 421 of file PlayerEntityLegacyScriptEngine.m.
- (BOOL) scriptTestConditions: | (NSArray *) | array |
Extends class PlayerEntity.
Definition at line 400 of file PlayerEntityLegacyScriptEngine.m.
References OOLog, and TestScriptConditions.
- (NSNumber *) scriptTimer_number |
Extends class PlayerEntity.
Definition at line 949 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::scriptTimer, and scriptTimer_number.
Referenced by scriptTimer_number.
- (void) sendAllShipsAway |
Extends class PlayerEntity.
Definition at line 2269 of file PlayerEntityLegacyScriptEngine.m.
References ShipEntity::fuelCapacity, ShipEntity::getAI, Entity::scanClass, sendAllShipsAway, ShipEntity::setAITo:, ShipEntity::setFuel:, AI::setNextThinkTime:, ShipEntity::setPrimaryRole:, AI::setState:, and UNIVERSE.
Referenced by sendAllShipsAway.
- (void) set: | (NSString *) | missionvariable_value |
Extends class PlayerEntity.
Definition at line 1691 of file PlayerEntityLegacyScriptEngine.m.
References count, kOOLogNoteSet, kOOLogSyntaxSet, nil, OOLog, ScanTokensFromString(), PlayerEntity::setLocalVariable:forKey:andMission:, and PlayerEntity::setMissionVariable:forKey:.
- (void) setBackgroundFromDescriptionsKey: | (NSString*) | d_key |
Extends class PlayerEntity.
Definition at line 2572 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::addScene:atOffset:, PlayerEntity::setShowDemoShips:, and UNIVERSE.
- (void) setFuelLeak: | (NSString *) | value |
Extends class PlayerEntity.
Definition at line 2216 of file PlayerEntityLegacyScriptEngine.m.
References kOOLogNoteFuelLeak, OOLog, PlayerEntity::playFuelLeak, scriptTarget, and ShipEntity::setFuel:.
- (void) setGalacticHyperspaceBehaviourTo: | (NSString *) | galacticHyperspaceBehaviourString |
Extends class PlayerEntity.
Definition at line 2954 of file PlayerEntityLegacyScriptEngine.m.
References OOGalacticHyperspaceBehaviourFromString(), OOLog, and PlayerEntity::setGalacticHyperspaceBehaviour:.
- (void) setGalacticHyperspaceFixedCoordsTo: | (NSString *) | galacticHyperspaceFixedCoordsString |
Extends class PlayerEntity.
Definition at line 2966 of file PlayerEntityLegacyScriptEngine.m.
References count, OOLog, ScanTokensFromString(), and PlayerEntity::setGalacticHyperspaceFixedCoordsX:y:.
- (void) setGuiToMissionScreen |
Extends class PlayerEntity.
Definition at line 2479 of file PlayerEntityLegacyScriptEngine.m.
References setGuiToMissionScreen, PlayerEntity::setGuiToMissionScreenWithCallback:, PlayerEntity::setMissionBackgroundSpecial:, and PlayerEntity::setMissionExitScreen:.
Referenced by setGuiToMissionScreen.
- (void) setGuiToMissionScreenWithCallback: | (BOOL) | callback |
Extends class PlayerEntity.
Definition at line 2510 of file PlayerEntityLegacyScriptEngine.m.
References GuiDisplayGen::clear, PlayerEntity::missionBackgroundDescriptor, PlayerEntity::missionBackgroundDescriptorOrDefault, PlayerEntity::missionBackgroundSpecial, PlayerEntity::missionOverlayDescriptorOrDefault, PlayerEntity::missionTitle, nil, PlayerEntity::noteGUIDidChangeFrom:to:, OOMusicController::playMissionMusic, PlayerEntity::refreshMissionScreenTextEntry, GuiDisplayGen::setBackgroundTextureDescriptor:, GuiDisplayGen::setBackgroundTextureSpecial:withBackground:, GuiDisplayGen::setColor:forRow:, GuiDisplayGen::setForegroundTextureDescriptor:, GuiDisplayGen::setKey:forRow:, GuiDisplayGen::setSelectableRange:, GuiDisplayGen::setShowTextCursor:, GuiDisplayGen::setText:forRow:align:, GuiDisplayGen::setTitle:, OOMusicController::sharedController, and OOColor::yellowColor.
- (void) setLegalStatus: | (NSString *) | valueString |
Extends class PlayerEntity.
Definition at line 968 of file PlayerEntityLegacyScriptEngine.m.
- (void) setLocalVariable: | (NSString *) | value | |
forKey: | (NSString *) | variableName | |
andMission: | (NSString *) | missionKey |
Extends class PlayerEntity.
Definition at line 692 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::localVariablesForMission:, and nil.
|
implementation |
Extends class PlayerEntity.
Definition at line 2203 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::setMissionBackgroundDescriptor:.
- (void) setMissionChoiceByTextEntry: | (BOOL) | enable |
Extends class PlayerEntity.
Definition at line 1934 of file PlayerEntityLegacyScriptEngine.m.
References MyOpenGLView::resetTypedString.
- (void) setMissionChoices: | (NSString *) | choicesKey |
Extends class PlayerEntity.
Definition at line 1942 of file PlayerEntityLegacyScriptEngine.m.
References count, and PlayerEntity::setMissionChoicesDictionary:.
- (void) setMissionChoicesDictionary: | (NSDictionary *) | choicesDict |
Extends class PlayerEntity.
Definition at line 1953 of file PlayerEntityLegacyScriptEngine.m.
References OOColor::colorWithDescription:, count, OOColor::darkGrayColor, GUI_ALIGN_CENTER, GUI_ALIGN_LEFT, GUI_ALIGN_RIGHT, kOOLogException, nil, OOExpand, OOLog, OOLogERR, PlayerEntity::replaceVariablesInString:, PlayerEntity::resetMissionChoice, GuiDisplayGen::setColor:forRow:, GuiDisplayGen::setKey:forRow:, GuiDisplayGen::setSelectableRange:, GuiDisplayGen::setSelectedRow:, GuiDisplayGen::setText:forRow:, GuiDisplayGen::setText:forRow:align:, and OOColor::yellowColor.
- (void) setMissionDescription: | (NSString *) | textKey |
Extends class PlayerEntity.
Definition at line 825 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::setMissionDescription:forMission:.
- (void) setMissionDescription: | (NSString *) | textKey | |
forMission: | (NSString *) | key |
Extends class PlayerEntity.
Definition at line 831 of file PlayerEntityLegacyScriptEngine.m.
References kOOLogScriptMissionDescNoText, OOLogERR, PlayerEntity::setMissionInstructions:forMission:, and UNIVERSE.
|
implementation |
Extends class PlayerEntity.
Definition at line 2189 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::setMissionOverlayDescriptor:.
- (void) setMissionInstructions: | (NSString *) | text | |
forMission: | (NSString *) | key |
Extends class PlayerEntity.
Definition at line 846 of file PlayerEntityLegacyScriptEngine.m.
References kOOLogScriptMissionDescNoKey, OOExpand, OOLogERR, and PlayerEntity::replaceVariablesInString:.
- (void) setMissionInstructionsList: | (NSArray *) | list | |
forMission: | (NSString *) | key |
Extends class PlayerEntity.
Definition at line 861 of file PlayerEntityLegacyScriptEngine.m.
References kOOLogScriptMissionDescNoKey, nil, OOExpand, OOLogERR, and PlayerEntity::replaceVariablesInString:.
- (void) setMissionMusic: | (NSString *) | value |
Extends class PlayerEntity.
Definition at line 2163 of file PlayerEntityLegacyScriptEngine.m.
References nil, OOMusicController::setMissionMusic:, and OOMusicController::sharedController.
- (void) setMissionScreenID: | (NSString *) | msid |
Extends class PlayerEntity.
Definition at line 2454 of file PlayerEntityLegacyScriptEngine.m.
- (void) setMissionTitle: | (NSString *) | value |
Extends class PlayerEntity.
Definition at line 2179 of file PlayerEntityLegacyScriptEngine.m.
- (void) setMissionVariable: | (NSString *) | value | |
forKey: | (NSString *) | key |
Extends class PlayerEntity.
Definition at line 659 of file PlayerEntityLegacyScriptEngine.m.
References nil.
- (void) setPlanetinfo: | (NSString *) | key_valueString |
Extends class PlayerEntity.
Definition at line 1301 of file PlayerEntityLegacyScriptEngine.m.
References count, kOOLogSyntaxSetPlanetInfo, nil, and OOLog.
- (void) setScriptTarget: | (ShipEntity *) | ship |
Extends class PlayerEntity.
Definition at line 248 of file PlayerEntityLegacyScriptEngine.m.
References scriptTarget.
- (void) setSpecificPlanetInfo: | (NSString *) | key_valueString |
Extends class PlayerEntity.
Definition at line 1324 of file PlayerEntityLegacyScriptEngine.m.
References count, kOOLogSyntaxSetPlanetInfo, nil, and OOLog.
- (void) setSunNovaIn: | (NSString *) | time_value |
Extends class PlayerEntity.
Definition at line 2240 of file PlayerEntityLegacyScriptEngine.m.
- (NSNumber *) shipsFound_number |
Extends class PlayerEntity.
Definition at line 956 of file PlayerEntityLegacyScriptEngine.m.
References shipsFound_number.
Referenced by shipsFound_number.
- (void) showShipModel: | (NSString *) | shipKey |
Extends class PlayerEntity.
Definition at line 2150 of file PlayerEntityLegacyScriptEngine.m.
References kOOLogNoteShowShipModel, and OOLog.
- (void) spawnShip: | (NSString *) | ship_key |
Extends class PlayerEntity.
Definition at line 1678 of file PlayerEntityLegacyScriptEngine.m.
References kOOLogNoteAddShips, kOOLogScriptAddShipsFailed, OOLog, and UNIVERSE.
- (NSString *) status_string |
Extends class PlayerEntity.
Definition at line 913 of file PlayerEntityLegacyScriptEngine.m.
References OOStringFromEntityStatus(), and status_string.
Referenced by status_string.
- (void) subtract: | (NSString *) | missionVariableString_value |
Extends class PlayerEntity.
Definition at line 1847 of file PlayerEntityLegacyScriptEngine.m.
References count, kOOLogSyntaxSubtract, PlayerEntity::localVariableForKey:andMission:, PlayerEntity::missionVariableForKey:, nil, OOLog, ScanTokensFromString(), PlayerEntity::setLocalVariable:forKey:andMission:, and PlayerEntity::setMissionVariable:forKey:.
- (NSString *) sunGoneNova_bool |
Extends class PlayerEntity.
Definition at line 1061 of file PlayerEntityLegacyScriptEngine.m.
References sunGoneNova_bool, and UNIVERSE.
Referenced by sunGoneNova_bool.
- (NSString *) sunWillGoNova_bool |
Extends class PlayerEntity.
Definition at line 1055 of file PlayerEntityLegacyScriptEngine.m.
References sunWillGoNova_bool, and UNIVERSE.
Referenced by sunWillGoNova_bool.
- (NSNumber *) systemEconomy_number |
Extends class PlayerEntity.
Definition at line 1127 of file PlayerEntityLegacyScriptEngine.m.
References systemEconomy_number.
Referenced by systemEconomy_number.
- (NSString *) systemEconomy_string |
Extends class PlayerEntity.
Definition at line 1117 of file PlayerEntityLegacyScriptEngine.m.
References nil, OODisplayStringFromEconomyID(), PlayerEntity::systemEconomy_number, and systemEconomy_string.
Referenced by systemEconomy_string.
- (NSNumber *) systemGovernment_number |
Extends class PlayerEntity.
Definition at line 1110 of file PlayerEntityLegacyScriptEngine.m.
References systemGovernment_number.
Referenced by systemGovernment_number.
- (NSString *) systemGovernment_string |
Extends class PlayerEntity.
Definition at line 1100 of file PlayerEntityLegacyScriptEngine.m.
References nil, OODisplayStringFromGovernmentID(), PlayerEntity::systemGovernment_number, and systemGovernment_string.
Referenced by systemGovernment_string.
- (NSNumber *) systemPopulation_number |
Extends class PlayerEntity.
Definition at line 1141 of file PlayerEntityLegacyScriptEngine.m.
References systemPopulation_number.
Referenced by systemPopulation_number.
- (NSNumber *) systemProductivity_number |
Extends class PlayerEntity.
Definition at line 1148 of file PlayerEntityLegacyScriptEngine.m.
References systemProductivity_number.
Referenced by systemProductivity_number.
- (NSNumber *) systemTechLevel_number |
Extends class PlayerEntity.
Definition at line 1134 of file PlayerEntityLegacyScriptEngine.m.
References systemTechLevel_number.
Referenced by systemTechLevel_number.
- (void) targetNearestHostile |
Extends class PlayerEntity.
Definition at line 2928 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::addTarget:, ShipEntity::foundTarget, MISSILE_STATUS_TARGET_LOCKED, nil, ShipEntity::scanForHostiles, and targetNearestHostile.
Referenced by targetNearestHostile.
- (void) targetNearestIncomingMissile |
Extends class PlayerEntity.
Definition at line 2941 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::addTarget:, ShipEntity::foundTarget, MISSILE_STATUS_TARGET_LOCKED, nil, ShipEntity::scanForNearestIncomingMissile, and targetNearestIncomingMissile.
Referenced by targetNearestIncomingMissile.
- (void) testForEquipment: | (NSString *) | equipString |
Extends class PlayerEntity.
Definition at line 1445 of file PlayerEntityLegacyScriptEngine.m.
References ShipEntity::hasEquipmentItem:.
|
implementation |
Extends class PlayerEntity.
Definition at line 233 of file PlayerEntityLegacyScriptEngine.m.
References nil, PLAYER, and TestScriptConditions.
Referenced by PerformConditionalStatment, processSceneDictionary:atOffset:, scriptTestConditions:, and TestScriptConditions.
- (void) useSpecialCargo: | (NSString *) | descriptionString |
Extends class PlayerEntity.
Definition at line 1435 of file PlayerEntityLegacyScriptEngine.m.
References kOOLogNoteUseSpecialCargo, OOLog, PlayerEntity::removeAllCargo:, and scriptTarget.
|
implementation |
Extends class PlayerEntity.
Definition at line 282 of file PlayerEntityLegacyScriptEngine.m.
References foreachkey, nil, and worldScriptsRequiringTickle.
Referenced by checkScript, PlayerEntity::dealloc, PlayerEntity::setUpAndConfirmOK:saveGame:, and worldScriptsRequiringTickle.