AMFP Enhanced
C++ reference: the code this unofficial fork added
Loading...
Searching...
No Matches
cLuxLoadProgress Class Reference

#include <LuxLoadProgress.h>

Public Member Functions

 cLuxLoadProgress ()
void Begin (const float *avExpectedMs, unsigned long alNowMs)
 Start a load; avExpectedMs = each phase's time from the last load of this map (or NULL).
void SetPhase (int alPhase, unsigned long alNowMs)
 Move to a later phase (earlier phases count as complete).
void SetCount (int alDone, int alTotal)
 Counter of the current phase (static objects, entities).
int Percent (unsigned long alNowMs)
 0..99 while loading.
void Finish (unsigned long alNowMs, float *avTakenMs)
 The load is done; avTakenMs receives each phase's time, to expect next time.
bool IsActive () const
int GetPhase () const

Detailed Description

Definition at line 26 of file LuxLoadProgress.h.

Constructor & Destructor Documentation

◆ cLuxLoadProgress()

cLuxLoadProgress::cLuxLoadProgress ( )
inline

Definition at line 29 of file LuxLoadProgress.h.

Member Function Documentation

◆ Begin()

void cLuxLoadProgress::Begin ( const float * avExpectedMs,
unsigned long alNowMs )
inline

Start a load; avExpectedMs = each phase's time from the last load of this map (or NULL).

Definition at line 32 of file LuxLoadProgress.h.

◆ SetPhase()

void cLuxLoadProgress::SetPhase ( int alPhase,
unsigned long alNowMs )
inline

Move to a later phase (earlier phases count as complete).

Definition at line 57 of file LuxLoadProgress.h.

◆ SetCount()

void cLuxLoadProgress::SetCount ( int alDone,
int alTotal )
inline

Counter of the current phase (static objects, entities).

Definition at line 67 of file LuxLoadProgress.h.

◆ Percent()

int cLuxLoadProgress::Percent ( unsigned long alNowMs)
inline

0..99 while loading.

Definition at line 70 of file LuxLoadProgress.h.

◆ Finish()

void cLuxLoadProgress::Finish ( unsigned long alNowMs,
float * avTakenMs )
inline

The load is done; avTakenMs receives each phase's time, to expect next time.

Definition at line 90 of file LuxLoadProgress.h.

◆ IsActive()

bool cLuxLoadProgress::IsActive ( ) const
inline

Definition at line 97 of file LuxLoadProgress.h.

◆ GetPhase()

int cLuxLoadProgress::GetPhase ( ) const
inline

Definition at line 98 of file LuxLoadProgress.h.


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