Physics-Simulator  v1.4.0-beta.2
clsConfig Class Reference

This class will hold all of the values and functions related to the config file. More...

#include "source/config.h"

Collaboration diagram for clsConfig:

Public Member Functions

 clsConfig ()
 
void Check (void)
 

Public Attributes

Configures values
 

Detailed Description

This class will hold all of the values and functions related to the config file.

Constructor & Destructor Documentation

◆ clsConfig()

clsConfig::clsConfig ( )

The default constructor, will set the config values as follows

  • values.blnLogging = false;
  • values.blnDragMode = false;
  • values.blnDrawPathOnScreen = false;
  • values.uintScreenWidth = 640;
  • values.uintScreenHeight = 480;
  • values.uchrCollisionMethod = CollideInelastic;
  • values.uintMaxNumPastPoints = 5;
  • values.uintPastDelay = 25; It will also set the OS based on values that are defined

Member Function Documentation

◆ Check()

void clsConfig::Check ( void  )

This is the basic method used to call on the config. It first checks if there is already a config file (if not makes a new one) if there is an existing config file it will then check its version number and load its values or make a new one depending on the return of clsConfig::versionCheck

Member Data Documentation

◆ values

Configures clsConfig::values

The config values


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