#include <quicksavemanager.hpp>
| MWState::QuickSaveManager::QuickSaveManager |
( |
std::string & |
saveName, |
|
|
unsigned int |
maxSaves |
|
) |
| |
A utility class to manage multiple quicksave slots
- Parameters
-
| saveName | The name of the save ("QuickSave", "AutoSave", etc) |
| maxSaves | The maximum number of save slots to create before recycling old ones |
| const MWState::Slot * MWState::QuickSaveManager::getNextQuickSaveSlot |
( |
| ) |
|
Get the slot that the next quicksave should use.
- Returns
- Either the oldest quicksave slot visited, or NULL if a new slot can be made
| bool MWState::QuickSaveManager::isOldestSave |
( |
const Slot * |
compare | ) |
|
|
private |
| bool MWState::QuickSaveManager::shouldCreateNewSlot |
( |
| ) |
|
|
private |
| void MWState::QuickSaveManager::visitSave |
( |
const Slot * |
saveSlot | ) |
|
| unsigned int MWState::QuickSaveManager::mMaxSaves |
|
private |
| const Slot* MWState::QuickSaveManager::mOldestSlotVisited |
|
private |
| std::string MWState::QuickSaveManager::mSaveName |
|
private |
| unsigned int MWState::QuickSaveManager::mSlotsVisited |
|
private |
The documentation for this class was generated from the following files: