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:119
Definition: character.hpp:19
const Slot * updateSlot(const Slot *slot, const ESM::SavedGame &profile)
Definition: character.cpp:141
Definition: savedgame.hpp:14
const boost::filesystem::path & getPath() const
Definition: character.cpp:191
boost::filesystem::path mPath
Definition: character.hpp:27
void cleanup()
Delete the directory we used, if it is empty.
Definition: character.cpp:104
SlotIterator end() const
Definition: character.cpp:167
std::time_t mTimeStamp
Definition: character.hpp:14
ESM::SavedGame getSignature() const
Definition: character.cpp:172
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:126
void addSlot(const boost::filesystem::path &path, const std::string &game)
Definition: character.cpp:22
SlotIterator begin() const
Any call to createSlot and updateSlot can invalidate the returned iterator.
Definition: character.cpp:162
bool operator<(const Slot &left, const Slot &right)
Definition: character.cpp:16
Character(const boost::filesystem::path &saves, const std::string &game)
Definition: character.cpp:79
Definition: character.hpp:10