OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
MWState::CharacterManager Class Reference

#include <charactermanager.hpp>

Collaboration diagram for MWState::CharacterManager:

Public Member Functions

 CharacterManager (const boost::filesystem::path &saves, const std::string &game)
 
CharactergetCurrentCharacter ()
 
void deleteSlot (const MWState::Character *character, const MWState::Slot *slot)
 
CharactercreateCharacter (const std::string &name)
 
void setCurrentCharacter (const Character *character)
 
std::list< Character >
::const_iterator 
begin () const
 
std::list< Character >
::const_iterator 
end () const
 

Private Member Functions

 CharacterManager (const CharacterManager &)
 Not implemented. More...
 
CharacterManageroperator= (const CharacterManager &)
 Not implemented. More...
 
std::list< Character >::iterator findCharacter (const MWState::Character *character)
 

Private Attributes

boost::filesystem::path mPath
 
std::list< CharactermCharacters
 
CharactermCurrent
 
std::string mGame
 

Constructor & Destructor Documentation

MWState::CharacterManager::CharacterManager ( const CharacterManager )
private

Not implemented.

MWState::CharacterManager::CharacterManager ( const boost::filesystem::path &  saves,
const std::string &  game 
)

Here is the call graph for this function:

Member Function Documentation

std::list< MWState::Character >::const_iterator MWState::CharacterManager::begin ( ) const
MWState::Character * MWState::CharacterManager::createCharacter ( const std::string &  name)

Create new character within saved game management

Parameters
nameName for the character (does not need to be unique)

Here is the call graph for this function:

void MWState::CharacterManager::deleteSlot ( const MWState::Character character,
const MWState::Slot slot 
)

Here is the call graph for this function:

std::list< MWState::Character >::const_iterator MWState::CharacterManager::end ( ) const
std::list< MWState::Character >::iterator MWState::CharacterManager::findCharacter ( const MWState::Character character)
private
MWState::Character * MWState::CharacterManager::getCurrentCharacter ( )
Note
May return null
CharacterManager& MWState::CharacterManager::operator= ( const CharacterManager )
private

Not implemented.

void MWState::CharacterManager::setCurrentCharacter ( const Character character)

Here is the caller graph for this function:

Member Data Documentation

std::list<Character> MWState::CharacterManager::mCharacters
private
Character* MWState::CharacterManager::mCurrent
private
std::string MWState::CharacterManager::mGame
private
boost::filesystem::path MWState::CharacterManager::mPath
private

The documentation for this class was generated from the following files: