1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-09 12:42:11 +00:00
OpenMW/apps/openmw/mwstate/charactermanager.hpp

46 lines
1.1 KiB
C++
Raw Normal View History

#ifndef GAME_STATE_CHARACTERMANAGER_H
#define GAME_STATE_CHARACTERMANAGER_H
#include <boost/filesystem/path.hpp>
#include "character.hpp"
namespace MWState
{
class CharacterManager
{
boost::filesystem::path mPath;
int mNext;
std::vector<Character> mCharacters;
Character *mCurrent;
private:
CharacterManager (const CharacterManager&);
///< Not implemented
CharacterManager& operator= (const CharacterManager&);
///< Not implemented
public:
CharacterManager (const boost::filesystem::path& saves);
2013-11-24 15:58:41 +00:00
Character *getCurrentCharacter (bool create = true);
///< \param create Create a new character, if there is no current character.
void createCharacter();
///< Create new character within saved game management
2013-11-21 11:24:24 +00:00
void setCurrentCharacter (const Character *character);
void clearCurrentCharacter();
std::vector<Character>::const_iterator begin() const;
std::vector<Character>::const_iterator end() const;
};
}
#endif