_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

Public Member Functions | Public Attributes | List of all members
CPreference Class Reference

#include <unit.h>

Public Member Functions

 CPreference ()
 
void InitializeSettingsFromPreferences (Settings &s)
 
bool get_AiExplores ()
 
void set_AiExplores (bool v)
 
bool get_SimplifiedAutoTargeting ()
 
void set_SimplifiedAutoTargeting (bool v)
 
bool get_AiChecksDependencies ()
 
void set_AiChecksDependencies (bool v)
 

Public Attributes

bool ShowSightRange
 
bool ShowReactionRange
 Show sight range. More...
 
bool ShowAttackRange
 Show reaction range. More...
 
bool ShowMessages
 Show attack range. More...
 
bool ShowNoSelectionStats
 Show messages. More...
 
bool BigScreen
 Show stats when no selection is active. More...
 
bool PauseOnLeave
 If true, shows the big screen(without panels) More...
 
bool GrayscaleIcons
 If true, game pauses when cursor is gone. More...
 
bool IconsShift
 Use grayscaled icons for unavailable units, upgrades, etc. More...
 
bool StereoSound
 Shift icons slightly when you press on them. More...
 
bool MineNotifications
 Enables/disables stereo sound effects. More...
 
bool DeselectInMine
 Show mine is running low/depleted messages. More...
 
bool NoStatusLineTooltips
 Deselect peasants in mines. More...
 
bool HardwareCursor
 Don't show messages on status line. More...
 
bool SelectionRectangleIndicatesDamage
 If true, uses the hardware to draw the cursor. Shaders do no longer apply to the cursor, but this way it's decoupled from the game refresh rate. More...
 
int FrameSkip
 If true, the selection rectangle interpolates color to indicate damage. More...
 
int ShowOrders
 Mask used to skip rendering frames (useful for slow renderers that keep up with the game logic, but not the rendering to screen like e.g. original Raspberry Pi) More...
 
int ShowNameDelay
 How many second show orders of unit on map. More...
 
int ShowNameTime
 How many cycles need to wait until unit's name popup will appear. More...
 
int AutosaveMinutes
 How many cycles need to show unit's name popup. More...
 
CGraphicIconFrameG
 Autosave the game every X minutes; autosave is disabled if the value is 0. More...
 
CGraphicPressedIconFrameG
 

Detailed Description

User preference.

Constructor & Destructor Documentation

◆ CPreference()

CPreference::CPreference ( )
inline

Member Function Documentation

◆ get_AiChecksDependencies()

bool CPreference::get_AiChecksDependencies ( )
inline

◆ get_AiExplores()

bool CPreference::get_AiExplores ( )
inline

◆ get_SimplifiedAutoTargeting()

bool CPreference::get_SimplifiedAutoTargeting ( )
inline

◆ InitializeSettingsFromPreferences()

void CPreference::InitializeSettingsFromPreferences ( Settings s)
inline

◆ set_AiChecksDependencies()

void CPreference::set_AiChecksDependencies ( bool  v)
inline

◆ set_AiExplores()

void CPreference::set_AiExplores ( bool  v)
inline

◆ set_SimplifiedAutoTargeting()

void CPreference::set_SimplifiedAutoTargeting ( bool  v)
inline

Member Data Documentation

◆ AutosaveMinutes

int CPreference::AutosaveMinutes

How many cycles need to show unit's name popup.

◆ BigScreen

bool CPreference::BigScreen

Show stats when no selection is active.

◆ DeselectInMine

bool CPreference::DeselectInMine

Show mine is running low/depleted messages.

◆ FrameSkip

int CPreference::FrameSkip

If true, the selection rectangle interpolates color to indicate damage.

◆ GrayscaleIcons

bool CPreference::GrayscaleIcons

If true, game pauses when cursor is gone.

◆ HardwareCursor

bool CPreference::HardwareCursor

Don't show messages on status line.

◆ IconFrameG

CGraphic* CPreference::IconFrameG

Autosave the game every X minutes; autosave is disabled if the value is 0.

◆ IconsShift

bool CPreference::IconsShift

Use grayscaled icons for unavailable units, upgrades, etc.

◆ MineNotifications

bool CPreference::MineNotifications

Enables/disables stereo sound effects.

◆ NoStatusLineTooltips

bool CPreference::NoStatusLineTooltips

Deselect peasants in mines.

◆ PauseOnLeave

bool CPreference::PauseOnLeave

If true, shows the big screen(without panels)

◆ PressedIconFrameG

CGraphic* CPreference::PressedIconFrameG

◆ SelectionRectangleIndicatesDamage

bool CPreference::SelectionRectangleIndicatesDamage

If true, uses the hardware to draw the cursor. Shaders do no longer apply to the cursor, but this way it's decoupled from the game refresh rate.

◆ ShowAttackRange

bool CPreference::ShowAttackRange

Show reaction range.

◆ ShowMessages

bool CPreference::ShowMessages

Show attack range.

◆ ShowNameDelay

int CPreference::ShowNameDelay

How many second show orders of unit on map.

◆ ShowNameTime

int CPreference::ShowNameTime

How many cycles need to wait until unit's name popup will appear.

◆ ShowNoSelectionStats

bool CPreference::ShowNoSelectionStats

Show messages.

◆ ShowOrders

int CPreference::ShowOrders

Mask used to skip rendering frames (useful for slow renderers that keep up with the game logic, but not the rendering to screen like e.g. original Raspberry Pi)

◆ ShowReactionRange

bool CPreference::ShowReactionRange

Show sight range.

◆ ShowSightRange

bool CPreference::ShowSightRange

◆ StereoSound

bool CPreference::StereoSound

Shift icons slightly when you press on them.


The documentation for this class was generated from the following file:
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.