Options: Fix modifying or deleting of value returned by getenv
[roofball.git] / src / playeroptions.h
blobe6fd3890ae85ae1bc672daea45c4350bda0d982f
1 #ifndef PLAYEROPTIONS_H
2 #define PLAYEROPTIONS_H
4 #include "enums.h"
5 #include "charactercolors.h"
7 struct PlayerKeys {
8 SDLKey left;
9 SDLKey right;
10 SDLKey kickUp;
11 SDLKey kickLeft;
12 SDLKey kickRight;
15 struct PlayerOptions {
16 PlayerOptions();
17 ~PlayerOptions();
19 void SetStyle(const char *);
20 const char *GetName() const;
21 const CharacterColors &GetColors() const;
23 AimMode aim;
24 PlayerKeys keys;
26 bool update;
28 private:
29 CharacterColors colors;
30 char name[32];
33 #endif // PLAYEROPTIONS_H