|
Oolite
|
#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 51 of file PlayerEntityLegacyScriptEngine.h.
| - (void) add: | (NSString*) | missionVariableString_value |
Extends class PlayerEntity.
Definition at line 1581 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 2483 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 1678 of file PlayerEntityLegacyScriptEngine.m.
References GuiDisplayGen::addLongText:startingAtRow:align:, and nil.
| - (void) addMissionDestination: | (NSString*) | destinations |
Extends class PlayerEntity.
Definition at line 1843 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::addMissionDestinationMarker:, PlayerEntity::defaultMarker:, and ScanTokensFromString().
| - (void) addMissionText: | (NSString*) | textKey |
Extends class PlayerEntity.
Definition at line 1659 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::addLiteralMissionText:, kOOExpandBackslashN, nil, OOExpandWithOptions, OOStringExpanderDefaultRandomSeed(), and PlayerEntity::replaceVariablesInString:.
| - (OOPlanetEntity *) addMoon: | (NSString*) | moonKey |
Extends class PlayerEntity.
Definition at line 2049 of file PlayerEntityLegacyScriptEngine.m.
References kOOLogDebugAddPlanet, kOOLogNoteAddPlanet, nil, OOLog, OOLogWARN, ScanHPVectorFromString(), ScanQuaternionFromString(), UNIVERSE, HPVector::x, HPVector::y, and HPVector::z.
| - (OOPlanetEntity *) addPlanet: | (NSString*) | planetKey |
Extends class PlayerEntity.
Definition at line 2005 of file PlayerEntityLegacyScriptEngine.m.
References kOOLogDebugAddPlanet, kOOLogNoteAddPlanet, nil, OOLog, OOLogWARN, ScanHPVectorFromString(), ScanQuaternionFromString(), UNIVERSE, HPVector::x, HPVector::y, and HPVector::z.
| - (void) addScene: | (NSArray*) | items | |
| atOffset: | (Vector) | off |
Extends class PlayerEntity.
Definition at line 2240 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 1319 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 1374 of file PlayerEntityLegacyScriptEngine.m.
References count, kOOLogNoteAddShips, kOOLogScriptAddShipsFailed, kOOLogSyntaxAddShips, make_HPvector(), nil, OOLog, ScanTokensFromString(), UNIVERSE, HPVector::x, HPVector::y, and HPVector::z.
| - (void) addShipsAtPrecisely: | (NSString*) | roles_number_system_x_y_z |
Extends class PlayerEntity.
Definition at line 1412 of file PlayerEntityLegacyScriptEngine.m.
References count, kOOLogNoteAddShips, kOOLogScriptAddShipsFailed, kOOLogSyntaxAddShips, make_HPvector(), nil, OOLog, ScanTokensFromString(), UNIVERSE, HPVector::x, HPVector::y, and HPVector::z.
| - (void) addShipsWithinRadius: | (NSString*) | roles_number_system_x_y_z_r |
Extends class PlayerEntity.
Definition at line 1450 of file PlayerEntityLegacyScriptEngine.m.
References count, kOOLogNoteAddShips, kOOLogScriptAddShipsFailed, kOOLogSyntaxAddShips, make_HPvector(), OOLog, ScanTokensFromString(), UNIVERSE, x, and y.
| - (void) addSystemShips: | (NSString*) | roles_number_position |
Extends class PlayerEntity.
Definition at line 1345 of file PlayerEntityLegacyScriptEngine.m.
References count, kOOLogNoteAddShips, kOOLogSyntaxAddShips, nil, OOLog, and ScanTokensFromString().
| - (void) awardCargo: | (NSString*) | amount_typeString |
Extends class PlayerEntity.
Definition at line 1180 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 1071 of file PlayerEntityLegacyScriptEngine.m.
References scriptTarget.
| - (void) awardEquipment: | (NSString*) | equipString |
Extends class PlayerEntity.
Definition at line 1098 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 1274 of file PlayerEntityLegacyScriptEngine.m.
References ShipEntity::fuel, and ShipEntity::setFuel:.
| - (void) awardShipKills: | (NSString*) | valueString |
Extends class PlayerEntity.
Definition at line 1088 of file PlayerEntityLegacyScriptEngine.m.
References scriptTarget.
| - (void) blowUpStation |
Extends class PlayerEntity.
Definition at line 1959 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 1647 of file PlayerEntityLegacyScriptEngine.m.
References shipsFound.
| - (void) checkScript |
Extends class PlayerEntity.
Definition at line 266 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 777 of file PlayerEntityLegacyScriptEngine.m.
References clearMissionDescription, and PlayerEntity::clearMissionDescriptionForMission:.
Referenced by clearMissionDescription.
| - (void) clearMissionDescriptionForMission: | (NSString*) | key |
Extends class PlayerEntity.
Definition at line 782 of file PlayerEntityLegacyScriptEngine.m.
References kOOLogScriptMissionDescNoKey, and OOLogERR.
| - (void) clearMissionScreen |
Extends class PlayerEntity.
Definition at line 1833 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 2122 of file PlayerEntityLegacyScriptEngine.m.
References clearMissionScreenID, and nil.
Referenced by clearMissionScreenID.
| - (NSNumber *) clock_days_number |
Extends class PlayerEntity.
Definition at line 898 of file PlayerEntityLegacyScriptEngine.m.
References clock_days_number.
Referenced by clock_days_number.
| - (NSNumber *) clock_hours_number |
Extends class PlayerEntity.
Definition at line 893 of file PlayerEntityLegacyScriptEngine.m.
References clock_hours_number.
Referenced by clock_hours_number.
| - (NSNumber *) clock_mins_number |
Extends class PlayerEntity.
Definition at line 888 of file PlayerEntityLegacyScriptEngine.m.
References clock_mins_number.
Referenced by clock_mins_number.
| - (NSNumber *) clock_number |
Extends class PlayerEntity.
Definition at line 878 of file PlayerEntityLegacyScriptEngine.m.
References clock_number.
Referenced by clock_number.
| - (NSNumber *) clock_secs_number |
Extends class PlayerEntity.
Definition at line 883 of file PlayerEntityLegacyScriptEngine.m.
References clock_secs_number.
Referenced by clock_secs_number.
| - (NSNumber *) commanderLegalStatus_number |
Extends class PlayerEntity.
Definition at line 841 of file PlayerEntityLegacyScriptEngine.m.
References commanderLegalStatus_number, and PlayerEntity::legalStatus.
Referenced by commanderLegalStatus_number.
| - (NSString *) commanderLegalStatus_string |
Extends class PlayerEntity.
Definition at line 851 of file PlayerEntityLegacyScriptEngine.m.
References commanderLegalStatus_string, and OODisplayStringFromLegalStatus().
Referenced by commanderLegalStatus_string.
| - (NSString *) commanderName_string |
Extends class PlayerEntity.
Definition at line 1012 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::commanderName, and commanderName_string.
Referenced by commanderName_string.
| - (NSString *) commanderRank_string |
Extends class PlayerEntity.
Definition at line 1017 of file PlayerEntityLegacyScriptEngine.m.
References commanderRank_string, and OODisplayRatingStringFromKillCount().
Referenced by commanderRank_string.
| - (NSString *) commanderShip_string |
Extends class PlayerEntity.
Definition at line 1022 of file PlayerEntityLegacyScriptEngine.m.
References commanderShip_string, and ShipEntity::name.
Referenced by commanderShip_string.
| - (NSString *) commanderShipDisplayName_string |
Extends class PlayerEntity.
Definition at line 1027 of file PlayerEntityLegacyScriptEngine.m.
References commanderShipDisplayName_string, and ShipEntity::displayName.
Referenced by commanderShipDisplayName_string.
| - (void) commsMessage: | (NSString*) | valueString |
Extends class PlayerEntity.
Definition at line 1048 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::expandMessage:.
| - (void) commsMessageByUnpiloted: | (NSString*) | valueString |
Extends class PlayerEntity.
Definition at line 1056 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::commsMessage:.
| - (void) consoleMessage3s: | (NSString*) | valueString |
Extends class PlayerEntity.
Definition at line 1061 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::expandMessage:.
| - (void) consoleMessage6s: | (NSString*) | valueString |
Extends class PlayerEntity.
Definition at line 1066 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::expandMessage:.
| - (NSNumber *) credits_number |
Extends class PlayerEntity.
Definition at line 825 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::creditBalance, and credits_number.
Referenced by credits_number.
|
implementation |
Extends class PlayerEntity.
Definition at line 120 of file PlayerEntityLegacyScriptEngine.m.
References CurrentScriptNameOr, and OOINLINE.
|
implementation |
Extends class PlayerEntity.
Definition at line 112 of file PlayerEntityLegacyScriptEngine.m.
References kActionTempPrefix, nil, and sCurrentMissionKey.
Referenced by CurrentScriptDesc(void).
| - (NSNumber *) d100_number |
Extends class PlayerEntity.
Definition at line 856 of file PlayerEntityLegacyScriptEngine.m.
References d100_number, and ranrot_rand.
Referenced by d100_number.
| - (NSNumber *) d256_number |
Extends class PlayerEntity.
Definition at line 867 of file PlayerEntityLegacyScriptEngine.m.
References d256_number, and ranrot_rand.
Referenced by d256_number.
| - (void) debugMessage: | (NSString*) | args |
Extends class PlayerEntity.
Definition at line 2103 of file PlayerEntityLegacyScriptEngine.m.
References kOOLogDebugMessage, and OOLog.
| - (void) debugOff |
Extends class PlayerEntity.
Definition at line 2097 of file PlayerEntityLegacyScriptEngine.m.
References debugOff, kOOLogDebugOnMetaClass, kOOLogDebugOnOff, OOLog, and OOLogSetDisplayMessagesInClass().
Referenced by debugOff.
| - (void) debugOn |
Extends class PlayerEntity.
Definition at line 2091 of file PlayerEntityLegacyScriptEngine.m.
References debugOn, kOOLogDebugOnMetaClass, kOOLogDebugOnOff, OOLog, and OOLogSetDisplayMessagesInClass().
Referenced by debugOn.
| - (void) decrement: | (NSString*) | missionVariableString |
Extends class PlayerEntity.
Definition at line 1560 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 908 of file PlayerEntityLegacyScriptEngine.m.
References dockedAtMainStation_bool.
Referenced by dockedAtMainStation_bool.
| - (NSString *) dockedStationName_string |
Extends class PlayerEntity.
Definition at line 950 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::dockedStationName, dockedStationName_string, and nil.
Referenced by dockedStationName_string.
| - (NSNumber *) dockedTechLevel_number |
Extends class PlayerEntity.
Definition at line 941 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 2115 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 1312 of file PlayerEntityLegacyScriptEngine.m.
References ShipEntity::ejectShipOfType:, nil, and scriptTarget.
| - (void) endMissionScreenAndNoteOpportunity |
Extends class PlayerEntity.
Definition at line 2138 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 2545 of file PlayerEntityLegacyScriptEngine.m.
|
implementation |
Extends class PlayerEntity.
Definition at line 1034 of file PlayerEntityLegacyScriptEngine.m.
|
implementation |
Extends class PlayerEntity.
Definition at line 542 of file PlayerEntityLegacyScriptEngine.m.
| - (NSString *) foundEquipment_bool |
Extends class PlayerEntity.
Definition at line 916 of file PlayerEntityLegacyScriptEngine.m.
References foundEquipment_bool.
Referenced by foundEquipment_bool.
| - (NSNumber *) fuelLeakRate_number |
Extends class PlayerEntity.
Definition at line 1938 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::fuelLeakRate, and fuelLeakRate_number.
Referenced by fuelLeakRate_number.
| - (NSNumber *) fuelLevel_number |
Extends class PlayerEntity.
Definition at line 903 of file PlayerEntityLegacyScriptEngine.m.
References fuelLevel_number.
Referenced by fuelLevel_number.
| - (NSNumber *) galaxy_number |
Extends class PlayerEntity.
Definition at line 810 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 805 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 1539 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 1949 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 613 of file PlayerEntityLegacyScriptEngine.m.
| - (NSMutableDictionary *) localVariablesForMission: | (NSString*) | missionKey |
Extends class PlayerEntity.
Definition at line 597 of file PlayerEntityLegacyScriptEngine.m.
References nil.
| - (void) messageShipAIs: | (NSString*) | roles_message |
Extends class PlayerEntity.
Definition at line 1286 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 795 of file PlayerEntityLegacyScriptEngine.m.
References mission_string, and sMissionStringValue.
Referenced by mission_string.
| - (NSString *) missionChoice_string |
Extends class PlayerEntity.
Definition at line 931 of file PlayerEntityLegacyScriptEngine.m.
References missionChoice_string.
Referenced by missionChoice_string.
| - (NSString *) missionKeyPress_string |
Extends class PlayerEntity.
Definition at line 936 of file PlayerEntityLegacyScriptEngine.m.
References missionKeyPress_string.
Referenced by missionKeyPress_string.
| - (NSString *) missionScreenID |
Extends class PlayerEntity.
Definition at line 2133 of file PlayerEntityLegacyScriptEngine.m.
References missionScreenID.
Referenced by missionScreenID.
| - (NSArray *) missionsList |
Extends class PlayerEntity.
Definition at line 632 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 1892 of file PlayerEntityLegacyScriptEngine.m.
References missionTitle.
Referenced by missionTitle.
| - (NSString *) missionVariableForKey: | (NSString*) | key |
Extends class PlayerEntity.
Definition at line 579 of file PlayerEntityLegacyScriptEngine.m.
References nil.
| - (NSDictionary *) missionVariables |
Extends class PlayerEntity.
Definition at line 574 of file PlayerEntityLegacyScriptEngine.m.
References missionVariables.
Referenced by missionVariables.
|
implementation |
Extends class PlayerEntity.
Definition at line 165 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 142 of file PlayerEntityLegacyScriptEngine.m.
References nil, PerformConditionalStatment, PerformScriptActions, and TestScriptConditions.
Referenced by PerformConditionalStatment, and PerformScriptActions.
|
implementation |
Extends class PlayerEntity.
Definition at line 130 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 815 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::currentSystemID, and planet_number.
Referenced by planet_number.
| - (void) playSound: | (NSString*) | soundName |
Extends class PlayerEntity.
Definition at line 2108 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::playLegacyScriptSound:.
| - (BOOL) processSceneDictionary: | (NSDictionary*) | couplet | |
| atOffset: | (Vector) | off |
Extends class PlayerEntity.
Definition at line 2259 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 2292 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:, UNIVERSE, vector_add(), vector_multiply_scalar(), vector_subtract(), Vector::x, Vector::y, and Vector::z.
| - (NSNumber *) pseudoFixedD100_number |
Extends class PlayerEntity.
Definition at line 862 of file PlayerEntityLegacyScriptEngine.m.
References pseudoFixedD100_number, and PlayerEntity::systemPseudoRandom100.
Referenced by pseudoFixedD100_number.
| - (NSNumber *) pseudoFixedD256_number |
Extends class PlayerEntity.
Definition at line 873 of file PlayerEntityLegacyScriptEngine.m.
References pseudoFixedD256_number, and PlayerEntity::systemPseudoRandom256.
Referenced by pseudoFixedD256_number.
|
implementation |
Extends class PlayerEntity.
Definition at line 233 of file PlayerEntityLegacyScriptEngine.m.
References OOINLINE.
Referenced by checkScript.
| - (void) refreshMissionScreenTextEntry |
Extends class PlayerEntity.
Definition at line 2160 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 1216 of file PlayerEntityLegacyScriptEngine.m.
References removeAllCargo, and PlayerEntity::removeAllCargo:.
Referenced by removeAllCargo, and removeAllCargo:.
| - (void) removeAllCargo: | (BOOL) | forceRemoval |
Extends class PlayerEntity.
Definition at line 1221 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 2520 of file PlayerEntityLegacyScriptEngine.m.
| - (void) removeEquipment: | (NSString*) | equipString |
Extends class PlayerEntity.
Definition at line 1120 of file PlayerEntityLegacyScriptEngine.m.
References kOOLogSyntaxRemoveEquipment, OOLog, PlayerEntity::removeEquipmentItem:, and scriptTarget.
| - (void) removeMissionDestination: | (NSString*) | destinations |
Extends class PlayerEntity.
Definition at line 1858 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::defaultMarker:, PlayerEntity::removeMissionDestinationMarker:, and ScanTokensFromString().
| - (NSString *) replaceVariablesInString: | (NSString*) | args |
Extends class PlayerEntity.
Definition at line 691 of file PlayerEntityLegacyScriptEngine.m.
References kOOLogDebugReplaceVariablesInString, PlayerEntity::localVariablesForMission:, OOExpand, OOLog, and ScanTokensFromString().
| - (void) reset: | (NSString*) | missionvariable |
Extends class PlayerEntity.
Definition at line 1522 of file PlayerEntityLegacyScriptEngine.m.
References kOOLogSyntaxReset, OOLog, PlayerEntity::setLocalVariable:forKey:andMission:, and PlayerEntity::setMissionVariable:forKey:.
| - (void) resetMissionChoice |
Extends class PlayerEntity.
Definition at line 1828 of file PlayerEntityLegacyScriptEngine.m.
References resetMissionChoice, and PlayerEntity::setMissionChoice:.
Referenced by resetMissionChoice.
| - (void) resetScriptTimer |
Extends class PlayerEntity.
Definition at line 1652 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 321 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 349 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::runScriptActions:withContextName:forTarget:.
| - (NSNumber *) score_number |
Extends class PlayerEntity.
Definition at line 820 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::score, and score_number.
Referenced by score_number.
| - (ShipEntity *) scriptTarget |
Extends class PlayerEntity.
Definition at line 228 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 374 of file PlayerEntityLegacyScriptEngine.m.
| - (BOOL) scriptTestConditions: | (NSArray*) | array |
Extends class PlayerEntity.
Definition at line 356 of file PlayerEntityLegacyScriptEngine.m.
References OOLog, and TestScriptConditions.
| - (NSNumber *) scriptTimer_number |
Extends class PlayerEntity.
Definition at line 830 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::scriptTimer, and scriptTimer_number.
Referenced by scriptTimer_number.
| - (void) sendAllShipsAway |
Extends class PlayerEntity.
Definition at line 1970 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 1489 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 2228 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::addScene:atOffset:, PlayerEntity::setShowDemoShips:, and UNIVERSE.
| - (void) setFuelLeak: | (NSString*) | value |
Extends class PlayerEntity.
Definition at line 1923 of file PlayerEntityLegacyScriptEngine.m.
References kOOLogNoteFuelLeak, OOLog, PlayerEntity::playFuelLeak, scriptTarget, and ShipEntity::setFuel:.
| - (void) setGalacticHyperspaceBehaviourTo: | (NSString*) | galacticHyperspaceBehaviourString |
Extends class PlayerEntity.
Definition at line 2582 of file PlayerEntityLegacyScriptEngine.m.
References OOGalacticHyperspaceBehaviourFromString(), OOLog, and PlayerEntity::setGalacticHyperspaceBehaviour:.
| - (void) setGalacticHyperspaceFixedCoordsTo: | (NSString*) | galacticHyperspaceFixedCoordsString |
Extends class PlayerEntity.
Definition at line 2592 of file PlayerEntityLegacyScriptEngine.m.
References count, OOLog, ScanTokensFromString(), and PlayerEntity::setGalacticHyperspaceFixedCoordsX:y:.
| - (void) setGuiToMissionScreen |
Extends class PlayerEntity.
Definition at line 2149 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 2176 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 846 of file PlayerEntityLegacyScriptEngine.m.
| - (void) setLocalVariable: | (NSString*) | value | |
| forKey: | (NSString*) | variableName | |
| andMission: | (NSString*) | missionKey |
Extends class PlayerEntity.
Definition at line 618 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::localVariablesForMission:, and nil.
|
implementation |
Extends class PlayerEntity.
Definition at line 1914 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::setMissionBackgroundDescriptor:.
| - (void) setMissionChoiceByTextEntry: | (BOOL) | enable |
Extends class PlayerEntity.
Definition at line 1690 of file PlayerEntityLegacyScriptEngine.m.
References MyOpenGLView::resetTypedString.
| - (void) setMissionChoices: | (NSString*) | choicesKey |
Extends class PlayerEntity.
Definition at line 1697 of file PlayerEntityLegacyScriptEngine.m.
References count, and PlayerEntity::setMissionChoicesDictionary:.
| - (void) setMissionChoicesDictionary: | (NSDictionary*) | choicesDict |
Extends class PlayerEntity.
Definition at line 1706 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 724 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::setMissionDescription:forMission:.
| - (void) setMissionDescription: | (NSString*) | textKey | |
| forMission: | (NSString*) | key |
Extends class PlayerEntity.
Definition at line 729 of file PlayerEntityLegacyScriptEngine.m.
References kOOLogScriptMissionDescNoText, OOLogERR, PlayerEntity::setMissionInstructions:forMission:, and UNIVERSE.
|
implementation |
Extends class PlayerEntity.
Definition at line 1905 of file PlayerEntityLegacyScriptEngine.m.
References PlayerEntity::setMissionOverlayDescriptor:.
| - (void) setMissionInstructions: | (NSString*) | text | |
| forMission: | (NSString*) | key |
Extends class PlayerEntity.
Definition at line 742 of file PlayerEntityLegacyScriptEngine.m.
References kOOLogScriptMissionDescNoKey, OOExpand, OOLogERR, and PlayerEntity::replaceVariablesInString:.
| - (void) setMissionInstructionsList: | (NSArray*) | list | |
| forMission: | (NSString*) | key |
Extends class PlayerEntity.
Definition at line 755 of file PlayerEntityLegacyScriptEngine.m.
References kOOLogScriptMissionDescNoKey, nil, OOExpand, OOLogERR, and PlayerEntity::replaceVariablesInString:.
| - (void) setMissionMusic: | (NSString*) | value |
Extends class PlayerEntity.
Definition at line 1884 of file PlayerEntityLegacyScriptEngine.m.
References nil, OOMusicController::setMissionMusic:, and OOMusicController::sharedController.
| - (void) setMissionScreenID: | (NSString*) | msid |
Extends class PlayerEntity.
Definition at line 2128 of file PlayerEntityLegacyScriptEngine.m.
| - (void) setMissionTitle: | (NSString*) | value |
Extends class PlayerEntity.
Definition at line 1897 of file PlayerEntityLegacyScriptEngine.m.
| - (void) setMissionVariable: | (NSString*) | value | |
| forKey: | (NSString*) | key |
Extends class PlayerEntity.
Definition at line 587 of file PlayerEntityLegacyScriptEngine.m.
References nil.
| - (void) setPlanetinfo: | (NSString*) | key_valueString |
Extends class PlayerEntity.
Definition at line 1140 of file PlayerEntityLegacyScriptEngine.m.
References count, kOOLogSyntaxSetPlanetInfo, nil, and OOLog.
| - (void) setScriptTarget: | (ShipEntity*) | ship |
Extends class PlayerEntity.
Definition at line 223 of file PlayerEntityLegacyScriptEngine.m.
References scriptTarget.
| - (void) setSpecificPlanetInfo: | (NSString*) | key_valueString |
Extends class PlayerEntity.
Definition at line 1160 of file PlayerEntityLegacyScriptEngine.m.
References count, kOOLogSyntaxSetPlanetInfo, nil, and OOLog.
| - (void) setSunNovaIn: | (NSString*) | time_value |
Extends class PlayerEntity.
Definition at line 1943 of file PlayerEntityLegacyScriptEngine.m.
| - (NSNumber *) shipsFound_number |
Extends class PlayerEntity.
Definition at line 836 of file PlayerEntityLegacyScriptEngine.m.
References shipsFound_number.
Referenced by shipsFound_number.
| - (void) showShipModel: | (NSString*) | shipKey |
Extends class PlayerEntity.
Definition at line 1873 of file PlayerEntityLegacyScriptEngine.m.
References kOOLogNoteShowShipModel, and OOLog.
| - (void) spawnShip: | (NSString*) | ship_key |
Extends class PlayerEntity.
Definition at line 1480 of file PlayerEntityLegacyScriptEngine.m.
References kOOLogNoteAddShips, kOOLogScriptAddShipsFailed, OOLog, and UNIVERSE.
| - (NSString *) status_string |
Extends class PlayerEntity.
Definition at line 800 of file PlayerEntityLegacyScriptEngine.m.
References OOStringFromEntityStatus(), and status_string.
Referenced by status_string.
| - (void) subtract: | (NSString*) | missionVariableString_value |
Extends class PlayerEntity.
Definition at line 1614 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 926 of file PlayerEntityLegacyScriptEngine.m.
References sunGoneNova_bool, and UNIVERSE.
Referenced by sunGoneNova_bool.
| - (NSString *) sunWillGoNova_bool |
Extends class PlayerEntity.
Definition at line 921 of file PlayerEntityLegacyScriptEngine.m.
References sunWillGoNova_bool, and UNIVERSE.
Referenced by sunWillGoNova_bool.
| - (NSNumber *) systemEconomy_number |
Extends class PlayerEntity.
Definition at line 988 of file PlayerEntityLegacyScriptEngine.m.
References systemEconomy_number.
Referenced by systemEconomy_number.
| - (NSString *) systemEconomy_string |
Extends class PlayerEntity.
Definition at line 978 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 972 of file PlayerEntityLegacyScriptEngine.m.
References systemGovernment_number.
Referenced by systemGovernment_number.
| - (NSString *) systemGovernment_string |
Extends class PlayerEntity.
Definition at line 962 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 1000 of file PlayerEntityLegacyScriptEngine.m.
References systemPopulation_number.
Referenced by systemPopulation_number.
| - (NSNumber *) systemProductivity_number |
Extends class PlayerEntity.
Definition at line 1006 of file PlayerEntityLegacyScriptEngine.m.
References systemProductivity_number.
Referenced by systemProductivity_number.
| - (NSNumber *) systemTechLevel_number |
Extends class PlayerEntity.
Definition at line 994 of file PlayerEntityLegacyScriptEngine.m.
References systemTechLevel_number.
Referenced by systemTechLevel_number.
| - (void) targetNearestHostile |
Extends class PlayerEntity.
Definition at line 2560 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 2571 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 1269 of file PlayerEntityLegacyScriptEngine.m.
References ShipEntity::hasEquipmentItem:.
|
implementation |
Extends class PlayerEntity.
Definition at line 209 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 1259 of file PlayerEntityLegacyScriptEngine.m.
References kOOLogNoteUseSpecialCargo, OOLog, PlayerEntity::removeAllCargo:, and scriptTarget.
|
implementation |
Extends class PlayerEntity.
Definition at line 247 of file PlayerEntityLegacyScriptEngine.m.
References foreachkey, nil, and worldScriptsRequiringTickle.
Referenced by checkScript, PlayerEntity::dealloc, PlayerEntity::setUpAndConfirmOK:saveGame:, and worldScriptsRequiringTickle.