ScummVM API documentation
Ultima::Ultima4::Settings Class Reference

#include <settings.h>

Inheritance diagram for Ultima::Ultima4::Settings:
Ultima::Ultima4::SettingsData Ultima::Ultima4::Observable< Settings *>

Public Member Functions

void setData (const SettingsData &data)
 
bool write ()
 
const Std::vector< Common::String > & getBattleDiffs ()
 
- Public Member Functions inherited from Ultima::Ultima4::SettingsData
bool operator== (const SettingsData &) const
 
bool operator!= (const SettingsData &) const
 
- Public Member Functions inherited from Ultima::Ultima4::Observable< Settings *>
void addObserver (Observer< Settings *, NoArg * > *o)
 
int countObservers () const
 
void deleteObserver (Observer< Settings *, NoArg * > *o)
 
void deleteObservers ()
 
bool hasChanged () const
 
void notifyObservers (NoArg * arg)
 

Static Public Member Functions

static SettingsgetInstance ()
 

Additional Inherited Members

- Public Attributes inherited from Ultima::Ultima4::SettingsData
int _battleSpeed
 
bool _campingAlwaysCombat
 
int _campTime
 
bool _debug
 
bool _enhancements
 
SettingsEnhancementOptions _enhancementsOptions
 
bool _filterMoveMessages
 
int _gameCyclesPerSecond
 
int _screenAnimationFramesPerSecond
 
bool _innAlwaysCombat
 
int _innTime
 
MouseOptions _mouseOptions
 
uint _scale
 
bool _screenShakes
 
int _gamma
 
int _shakeInterval
 
bool _shortcutCommands
 
int _shrineTime
 
int _spellEffectSpeed
 
bool _validateXml
 
bool _volumeFades
 
int _titleSpeedRandom
 
int _titleSpeedOther
 
int _eventTimerGranularity
 
Common::String _filter
 
Common::String _gemLayout
 
Common::String _lineOfSight
 
Common::String _videoType
 
Common::String _battleDiff
 
Common::String _logging
 
Common::String _game
 
- Protected Member Functions inherited from Ultima::Ultima4::Observable< Settings *>
void clearChanged ()
 
void setChanged ()
 

Detailed Description

The settings class is a singleton that holds all the settings information. It is dynamically initialized when first accessed.

Member Function Documentation

◆ getInstance()

static Settings& Ultima::Ultima4::Settings::getInstance ( )
static

Return the global instance of settings.

◆ write()

bool Ultima::Ultima4::Settings::write ( )

Write the settings out into a human readable file. This also notifies observers that changes have been committed.


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