![]() |
Oolite 1.91.0.7659-250410-0031890
|
#include <PlayerEntityLoadSave.h>
Instance Methods | |
(BOOL) | - loadPlayer |
(void) | - savePlayer |
(void) | - quicksavePlayer |
(void) | - autosavePlayer |
(void) | - setGuiToScenarioScreen: |
(void) | - addScenarioModel: |
(void) | - showScenarioDetails |
(BOOL) | - startScenario |
(NSString *) | - commanderSelector |
(void) | - saveCommanderInputHandler |
(void) | - overwriteCommanderInputHandler |
(BOOL) | - loadPlayerFromFile:asNew: |
Definition at line 64 of file PlayerEntityLoadSave.h.
- (void) addScenarioModel: | (NSString *) | shipKey |
Extends class PlayerEntity.
Definition at line 278 of file PlayerEntityLoadSave.m.
References PlayerEntity::showShipModelWithKey:shipData:personality:factorX:factorY:factorZ:inContext:.
- (void) autosavePlayer |
Extends class PlayerEntity.
Definition at line 145 of file PlayerEntityLoadSave.m.
References autosavePlayer, DESC, PlayerEntity::lastsaveName, nil, OOJSSTR, PlayerEntity::setLastsaveName:, ShipScriptEventNoCx, and PlayerEntity::writePlayerToPath:.
Referenced by autosavePlayer.
- (NSString *) commanderSelector |
Extends class PlayerEntity.
Definition at line 362 of file PlayerEntityLoadSave.m.
References BACKROW, commanderSelector, EXITROW, GUI_KEY_OK, gvMouseDoubleClick, PlayerEntity::lsCommanders:directory:pageNumber:highlightName:, MOREROW, nil, NUMROWS, PlayerEntity::playMenuPageNext, PlayerEntity::playMenuPagePrevious, GuiDisplayGen::selectedRow, PlayerEntity::setGuiToIntroFirstGo:, PlayerEntity::setGuiToStatusScreen, GuiDisplayGen::setText:forRow:align:, PlayerEntity::showCommanderShip:, STARTROW, and MyOpenGLView::suppressKeysUntilKeyUp.
Referenced by commanderSelector.
- (BOOL) loadPlayer |
Extends class PlayerEntity.
Definition at line 101 of file PlayerEntityLoadSave.m.
References loadPlayer, PlayerEntity::loadPlayerWithPanel, PlayerEntity::setGuiToLoadCommanderScreen, and UNIVERSE.
Referenced by loadPlayer.
- (BOOL) loadPlayerFromFile: | (NSString *) | fileToOpen | |
asNew: | (BOOL) | asNew |
Extends class PlayerEntity.
Definition at line 597 of file PlayerEntityLoadSave.m.
References PlayerEntity::calculateCurrentCargo, PlayerEntity::completeSetUpAndSetTarget:, DESC, DESTROY, PlayerEntity::dockedStation, PlayerEntity::doWorldEventUntilMissionScreen:, OOJavaScriptEngine::garbageCollectionOpportunity:, StationEntity::initialiseLocalMarket, nil, OODictionaryFromFile(), OOLog, Entity::position, SCENARIO_OXP_DEFINITION_ALL, SCENARIO_OXP_DEFINITION_NONE, PlayerEntity::setDockedAtMainStation, PlayerEntity::setDockedStation:, ShipEntity::setEntityPersonalityInt:, PlayerEntity::setGuiToStatusScreen, StationEntity::setLocalMarket:, Entity::setOrientation:, OOJavaScriptEngine::sharedEngine, OOShipRegistry::sharedRegistry, OOShipRegistry::shipInfoForKey:, PlayerEntity::startUpComplete, UNIVERSE, vector_forward_from_quaternion(), vector_right_from_quaternion(), and vector_up_from_quaternion().
- (void) overwriteCommanderInputHandler |
Extends class PlayerEntity.
Definition at line 561 of file PlayerEntityLoadSave.m.
References PlayerEntity::handleGUIUpDownArrowKeys, PlayerEntity::nativeSavePlayer:, overwriteCommanderInputHandler, PlayerEntity::playSaveOverwriteNo, PlayerEntity::playSaveOverwriteYes, SAVE_OVERWRITE_NO_ROW, SAVE_OVERWRITE_YES_ROW, PlayerEntity::setGuiToSaveCommanderScreen:, and PlayerEntity::setGuiToStatusScreen.
Referenced by overwriteCommanderInputHandler.
- (void) quicksavePlayer |
Extends class PlayerEntity.
Definition at line 185 of file PlayerEntityLoadSave.m.
References MyOpenGLView::gameController, nil, OOJSSTR, OOLog, GameController::playerFileToLoad, quicksavePlayer, PlayerEntity::setGuiToStatusScreen, ShipScriptEventNoCx, and PlayerEntity::writePlayerToPath:.
Referenced by quicksavePlayer.
- (void) saveCommanderInputHandler |
Extends class PlayerEntity.
Definition at line 459 of file PlayerEntityLoadSave.m.
References BACKROW, OOColor::cyanColor, GUI_KEY_OK, gvMouseDoubleClick, PlayerEntity::lsCommanders:directory:pageNumber:highlightName:, MOREROW, PlayerEntity::nativeSavePlayer:, NUMROWS, saveCommanderInputHandler, GuiDisplayGen::selectedRow, GuiDisplayGen::setColor:forRow:, PlayerEntity::setGuiToOverwriteScreen:, PlayerEntity::setGuiToStatusScreen, GuiDisplayGen::setText:forRow:, GuiDisplayGen::setText:forRow:align:, MyOpenGLView::setTypedString:, PlayerEntity::showCommanderShip:, STARTROW, MyOpenGLView::suppressKeysUntilKeyUp, and MyOpenGLView::typedString.
Referenced by saveCommanderInputHandler.
- (void) savePlayer |
Extends class PlayerEntity.
Definition at line 125 of file PlayerEntityLoadSave.m.
References PlayerEntity::lastsaveName, savePlayer, PlayerEntity::savePlayerWithPanel, PlayerEntity::setGuiToSaveCommanderScreen:, and UNIVERSE.
Referenced by savePlayer.
- (void) setGuiToScenarioScreen: | (int) | page |
Extends class PlayerEntity.
Definition at line 207 of file PlayerEntityLoadSave.m.
References GuiDisplayGen::clearAndKeepBackground:, count, OOColor::greenColor, GUI_MAX_ROWS_SCENARIOS, GUI_ROW_SCENARIOS_START, nil, OOColor::redColor, GuiDisplayGen::setArray:forRow:, GuiDisplayGen::setBackgroundTextureKey:, GuiDisplayGen::setColor:forRow:, GuiDisplayGen::setForegroundTextureKey:, GuiDisplayGen::setKey:forRow:, GuiDisplayGen::setSelectableRange:, GuiDisplayGen::setSelectedRow:, PlayerEntity::setShowDemoShips:, GuiDisplayGen::setTabStops:, GuiDisplayGen::setText:forRow:, GuiDisplayGen::setTitle:, and PlayerEntity::showScenarioDetails.
- (void) showScenarioDetails |
Extends class PlayerEntity.
Definition at line 284 of file PlayerEntityLoadSave.m.
References GuiDisplayGen::addLongText:startingAtRow:align:, PlayerEntity::addScenarioModel:, GUI_ROW_SCENARIOS_DETAIL, nil, GuiDisplayGen::selectedRowKey, PlayerEntity::setShowDemoShips:, GuiDisplayGen::setText:forRow:, and showScenarioDetails.
Referenced by showScenarioDetails.
- (BOOL) startScenario |
Extends class PlayerEntity.
Definition at line 314 of file PlayerEntityLoadSave.m.
References PlayerEntity::loadPlayerFromFile:asNew:, nil, OOLog, ResourceManager::pathForFileNamed:inFolder:, GuiDisplayGen::selectedRowKey, PlayerEntity::setGuiToScenarioScreen:, and startScenario.
Referenced by startScenario.