AMFP Enhanced
C++ reference: the code this unofficial fork added
Loading...
Searching...
No Matches
LuxGuidance.h File Reference

gentle guidance, one Enhanced option with four levels (Modern = Normal): Off nothing extra (the original game) Light the objective line: the latest hint's title and first sentence (the game's own words), when a hint is new and on request (D-pad down / O) Normal + the stuck nudge: after 3 minutes without progress the objective comes back up; after 6 minutes again, now with the clue words coloured (LuxKeywords.h), and the colour stays until the player makes progress Full + clue words always coloured, nudge every 3 minutes No map, no markers, no new hint text (see PLAN.md). More...

#include <string>

Go to the source code of this file.

Classes

class  cLuxStuckTimer
 Play time without progress (a new map, checkpoint, hint, note or diary page). More...

Enumerations

enum  eLuxGuidance {
  eLuxGuidance_Off , eLuxGuidance_Light , eLuxGuidance_Normal , eLuxGuidance_Full ,
  eLuxGuidance_LastEnum
}

Functions

std::wstring LuxFirstSentence (const std::wstring &asText, size_t alMaxChars)
 The first sentence of a hint text, on one line, at most alMaxChars (cut at a word, "...").
bool LuxGuidanceObjective (int alLevel)
bool LuxGuidanceNudges (int alLevel)
bool LuxGuidanceKeywordsAlways (int alLevel)
float LuxGuidanceRepeat (int alLevel)
 Nudge times for a level: first nudge, then every alRepeat (colour layer from the repeat on).
int LuxGuidanceFromChecks (bool abObjectiveReminder, bool abStuckNudge)
 Profiles saved before the level existed had two checkboxes (objective reminder, stuck nudge).

Variables

static const float kLuxStuckNudgeTime = 180.0f
static const float kLuxStuckColourTime = 360.0f
static const float kLuxObjectiveShowTime = 8.0f

Detailed Description

gentle guidance, one Enhanced option with four levels (Modern = Normal): Off nothing extra (the original game) Light the objective line: the latest hint's title and first sentence (the game's own words), when a hint is new and on request (D-pad down / O) Normal + the stuck nudge: after 3 minutes without progress the objective comes back up; after 6 minutes again, now with the clue words coloured (LuxKeywords.h), and the colour stays until the player makes progress Full + clue words always coloured, nudge every 3 minutes No map, no markers, no new hint text (see PLAN.md).

Pure, unit tested in tests/cpp/test_guidance.cpp.

Definition in file LuxGuidance.h.

Enumeration Type Documentation

◆ eLuxGuidance

Enumerator
eLuxGuidance_Off 
eLuxGuidance_Light 
eLuxGuidance_Normal 
eLuxGuidance_Full 
eLuxGuidance_LastEnum 

Definition at line 18 of file LuxGuidance.h.

Function Documentation

◆ LuxFirstSentence()

std::wstring LuxFirstSentence ( const std::wstring & asText,
size_t alMaxChars )
inline

The first sentence of a hint text, on one line, at most alMaxChars (cut at a word, "...").

Definition at line 32 of file LuxGuidance.h.

◆ LuxGuidanceObjective()

bool LuxGuidanceObjective ( int alLevel)
inline

Definition at line 53 of file LuxGuidance.h.

◆ LuxGuidanceNudges()

bool LuxGuidanceNudges ( int alLevel)
inline

Definition at line 54 of file LuxGuidance.h.

◆ LuxGuidanceKeywordsAlways()

bool LuxGuidanceKeywordsAlways ( int alLevel)
inline

Definition at line 55 of file LuxGuidance.h.

◆ LuxGuidanceRepeat()

float LuxGuidanceRepeat ( int alLevel)
inline

Nudge times for a level: first nudge, then every alRepeat (colour layer from the repeat on).

Definition at line 57 of file LuxGuidance.h.

◆ LuxGuidanceFromChecks()

int LuxGuidanceFromChecks ( bool abObjectiveReminder,
bool abStuckNudge )
inline

Profiles saved before the level existed had two checkboxes (objective reminder, stuck nudge).

Definition at line 60 of file LuxGuidance.h.

Variable Documentation

◆ kLuxStuckNudgeTime

const float kLuxStuckNudgeTime = 180.0f
static

Definition at line 27 of file LuxGuidance.h.

◆ kLuxStuckColourTime

const float kLuxStuckColourTime = 360.0f
static

Definition at line 28 of file LuxGuidance.h.

◆ kLuxObjectiveShowTime

const float kLuxObjectiveShowTime = 8.0f
static

Definition at line 29 of file LuxGuidance.h.