44 lines
818 B
C
44 lines
818 B
C
#ifndef GUARD_CONFIGDATA_H
|
|
#define GUARD_CONFIGDATA_H
|
|
|
|
#include<string>
|
|
#include "utils.h"
|
|
#include "playerDef.h"
|
|
#include "invaderDef.h"
|
|
|
|
typedef string configKey;
|
|
|
|
struct ConfigData {
|
|
|
|
unsigned maxFPS;
|
|
|
|
|
|
InvadersGrid grid;
|
|
|
|
unsigned startXPosition;
|
|
unsigned playersSpeed;
|
|
unsigned playersWidth;
|
|
unsigned playersFireCooldown;
|
|
vector<PlayerDef> playerDefs;
|
|
|
|
|
|
|
|
unsigned invadersSpeed;
|
|
unsigned invadersSize;
|
|
unsigned invadersDistance;
|
|
unsigned invadersFireCooldown;
|
|
|
|
map<InvaderType, InvaderTypeDef> invadersDef;
|
|
|
|
unsigned missilesWidth;
|
|
unsigned missilesLength; // auto defined from width
|
|
unsigned missilesSpeed;
|
|
nsGraphics::RGBAcolor missilesColor;
|
|
|
|
unsigned torpedosWidth;
|
|
unsigned torpedosLength; // auto defined from width
|
|
unsigned torpedosSpeed;
|
|
nsGraphics::RGBAcolor torpedosColor;
|
|
};
|
|
|
|
#endif |