|
Oolite
|
#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 50 of file PlayerEntityLoadSave.h.
| - (void) addScenarioModel: | (NSString*) | shipKey |
Extends class PlayerEntity.
Definition at line 215 of file PlayerEntityLoadSave.m.
References PlayerEntity::showShipModelWithKey:shipData:personality:factorX:factorY:factorZ:inContext:.
| - (void) autosavePlayer |
Extends class PlayerEntity.
Definition at line 93 of file PlayerEntityLoadSave.m.
References autosavePlayer, DESC, ShipEntity::doScriptEvent:withArgument:, PlayerEntity::lastsaveName, nil, PlayerEntity::setLastsaveName:, and PlayerEntity::writePlayerToPath:.
Referenced by autosavePlayer.
| - (NSString *) commanderSelector |
Extends class PlayerEntity.
Definition at line 282 of file PlayerEntityLoadSave.m.
References BACKROW, BUTTON_GUILEFT, BUTTON_GUIPAGEDOWN, BUTTON_GUIPAGEUP, BUTTON_GUIRIGHT, BUTTON_GUISELECT, commanderSelector, EXITROW, OOJoystickManager::getAllButtonStates, 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:, OOJoystickManager::sharedStickHandler, PlayerEntity::showCommanderShip:, STARTROW, and MyOpenGLView::suppressKeysUntilKeyUp.
Referenced by commanderSelector.
| - (BOOL) loadPlayer |
Extends class PlayerEntity.
Definition at line 80 of file PlayerEntityLoadSave.m.
References loadPlayer, and PlayerEntity::setGuiToLoadCommanderScreen.
Referenced by loadPlayer.
| - (BOOL) loadPlayerFromFile: | (NSString*) | fileToOpen | |
| asNew: | (BOOL) | asNew |
Extends class PlayerEntity.
Definition at line 485 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 453 of file PlayerEntityLoadSave.m.
References BUTTON_GUISELECT, OOJoystickManager::getAllButtonStates, PlayerEntity::handleGUIUpDownArrowKeys, PlayerEntity::nativeSavePlayer:, overwriteCommanderInputHandler, PlayerEntity::playSaveOverwriteNo, PlayerEntity::playSaveOverwriteYes, SAVE_OVERWRITE_NO_ROW, SAVE_OVERWRITE_YES_ROW, PlayerEntity::setGuiToSaveCommanderScreen:, PlayerEntity::setGuiToStatusScreen, and OOJoystickManager::sharedStickHandler.
Referenced by overwriteCommanderInputHandler.
| - (void) quicksavePlayer |
Extends class PlayerEntity.
Definition at line 128 of file PlayerEntityLoadSave.m.
References ShipEntity::doScriptEvent:withArgument:, MyOpenGLView::gameController, nil, OOLog, GameController::playerFileToLoad, quicksavePlayer, PlayerEntity::setGuiToStatusScreen, and PlayerEntity::writePlayerToPath:.
Referenced by quicksavePlayer.
| - (void) saveCommanderInputHandler |
Extends class PlayerEntity.
Definition at line 366 of file PlayerEntityLoadSave.m.
References BACKROW, BUTTON_GUISELECT, OOColor::cyanColor, OOJoystickManager::getAllButtonStates, 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:, OOJoystickManager::sharedStickHandler, PlayerEntity::showCommanderShip:, STARTROW, MyOpenGLView::suppressKeysUntilKeyUp, and MyOpenGLView::typedString.
Referenced by saveCommanderInputHandler.
| - (void) savePlayer |
Extends class PlayerEntity.
Definition at line 88 of file PlayerEntityLoadSave.m.
References PlayerEntity::lastsaveName, savePlayer, and PlayerEntity::setGuiToSaveCommanderScreen:.
Referenced by savePlayer.
| - (void) setGuiToScenarioScreen: | (int) | page |
Extends class PlayerEntity.
Definition at line 149 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 220 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 244 of file PlayerEntityLoadSave.m.
References PlayerEntity::loadPlayerFromFile:asNew:, nil, OOLog, ResourceManager::pathForFileNamed:inFolder:, GuiDisplayGen::selectedRowKey, PlayerEntity::setGuiToScenarioScreen:, and startScenario.
Referenced by startScenario.