1 #ifndef GAME_STATE_CHARACTER_H
2 #define GAME_STATE_CHARACTER_H
4 #include <boost/filesystem/path.hpp>
30 void addSlot (
const boost::filesystem::path& path,
const std::string& game);
36 Character (
const boost::filesystem::path& saves,
const std::string& game);
61 const boost::filesystem::path&
getPath()
const;
std::vector< Slot > mSlots
Definition: character.hpp:28
const Slot * createSlot(const ESM::SavedGame &profile)
Definition: character.cpp:113
Definition: character.hpp:19
const Slot * updateSlot(const Slot *slot, const ESM::SavedGame &profile)
Definition: character.cpp:135
Definition: savedgame.hpp:14
const boost::filesystem::path & getPath() const
Definition: character.cpp:185
boost::filesystem::path mPath
Definition: character.hpp:27
void cleanup()
Delete the directory we used, if it is empty.
Definition: character.cpp:98
SlotIterator end() const
Definition: character.cpp:161
std::time_t mTimeStamp
Definition: character.hpp:14
ESM::SavedGame getSignature() const
Definition: character.cpp:166
std::vector< Slot >::const_reverse_iterator SlotIterator
Definition: character.hpp:23
ESM::SavedGame mProfile
Definition: character.hpp:13
boost::filesystem::path mPath
Definition: character.hpp:12
void deleteSlot(const Slot *slot)
Definition: character.cpp:120
void addSlot(const boost::filesystem::path &path, const std::string &game)
Definition: character.cpp:16
SlotIterator begin() const
Any call to createSlot and updateSlot can invalidate the returned iterator.
Definition: character.cpp:156
bool operator<(const Slot &left, const Slot &right)
Definition: character.cpp:10
Character(const boost::filesystem::path &saves, const std::string &game)
Definition: character.cpp:73
Definition: character.hpp:10