mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Finish encapsulation of PlayerLocalState class
This commit is contained in:
@@ -23,6 +23,16 @@ PlayerLocalState::PlayerLocalState(CPlayerInterface & owner)
|
||||
{
|
||||
}
|
||||
|
||||
const PlayerSpellbookSetting & PlayerLocalState::getSpellbookSettings()
|
||||
{
|
||||
return spellbookSettings;
|
||||
}
|
||||
|
||||
void PlayerLocalState::setSpellbookSettings(const PlayerSpellbookSetting & newSettings)
|
||||
{
|
||||
spellbookSettings = newSettings;
|
||||
}
|
||||
|
||||
void PlayerLocalState::saveHeroPaths(std::map<const CGHeroInstance *, int3> & pathsMap)
|
||||
{
|
||||
for(auto & p : paths)
|
||||
|
||||
Reference in New Issue
Block a user