ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Stark::Settings Class Reference

Settings services. More...

#include <settings.h>

Collaboration diagram for Stark::Settings:

List of all members.

Public Types

enum  BoolSettingIndex {
  kHighModel, kSubtitle, kSpecialFX, kShadow,
  kHighFMV, kTimeSkip
}
enum  IntSettingIndex { kVoice, kMusic, kSfx, kSaveLoadPage }

Public Member Functions

 Settings (Audio::Mixer *mixer, const ADGameDescription *gd)
 ~Settings ()
bool isDemo () const
 Is this a demo version of the game?
bool getBoolSetting (BoolSettingIndex index)
 Get the settings value.
int getIntSetting (IntSettingIndex index)
void flipSetting (BoolSettingIndex index)
 Flip the boolean settings.
void setIntSetting (IntSettingIndex index, int value)
 Set the integer settings.
bool hasLowResFMV ()
 Check whether low-resolution fmv is available.
void enableBookOfSecrets ()
 Enable the book of secrets.
bool hasBookOfSecrets ()
 Check whether the book of secrets is enabled.

Private Attributes

Audio::Mixer_mixer
bool _hasLowRes
const bool _isDemo
const char * _boolKey [6]
const char * _intKey [4]

Detailed Description

Settings services.

Maintains the settings of the game.

Definition at line 43 of file settings.h.


Member Enumeration Documentation

Enumerator:
kHighModel 
kSubtitle 
kSpecialFX 
kShadow 
kHighFMV 
kTimeSkip 

Definition at line 45 of file settings.h.

Enumerator:
kVoice 
kMusic 
kSfx 
kSaveLoadPage 

Definition at line 54 of file settings.h.


Constructor & Destructor Documentation

Stark::Settings::Settings ( Audio::Mixer mixer,
const ADGameDescription gd 
)

Definition at line 36 of file settings.cpp.

Stark::Settings::~Settings (  )  [inline]

Definition at line 62 of file settings.h.


Member Function Documentation

void Stark::Settings::enableBookOfSecrets (  )  [inline]

Enable the book of secrets.

Definition at line 89 of file settings.h.

void Stark::Settings::flipSetting ( BoolSettingIndex  index  )  [inline]

Flip the boolean settings.

Definition at line 78 of file settings.h.

bool Stark::Settings::getBoolSetting ( BoolSettingIndex  index  )  [inline]

Get the settings value.

Definition at line 74 of file settings.h.

int Stark::Settings::getIntSetting ( IntSettingIndex  index  )  [inline]

Definition at line 75 of file settings.h.

bool Stark::Settings::hasBookOfSecrets (  )  [inline]

Check whether the book of secrets is enabled.

Definition at line 95 of file settings.h.

bool Stark::Settings::hasLowResFMV (  )  [inline]

Check whether low-resolution fmv is available.

Definition at line 86 of file settings.h.

bool Stark::Settings::isDemo (  )  const [inline]

Is this a demo version of the game?

This is true either for 4-CD or 2-CD style demos

Definition at line 69 of file settings.h.

void Stark::Settings::setIntSetting ( IntSettingIndex  index,
int  value 
)

Set the integer settings.

Definition at line 66 of file settings.cpp.


Member Data Documentation

const char* Stark::Settings::_boolKey[6] [private]

Definition at line 102 of file settings.h.

Definition at line 99 of file settings.h.

const char* Stark::Settings::_intKey[4] [private]

Definition at line 103 of file settings.h.

const bool Stark::Settings::_isDemo [private]

Definition at line 100 of file settings.h.

Definition at line 98 of file settings.h.


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


Generated on Sat Jan 12 2019 05:05:08 for ResidualVM by doxygen 1.7.1
curved edge   curved edge