mirror of
https://git.planet-casio.com/Slyvtt/Collab_RPG.git
synced 2024-12-28 20:43:42 +01:00
Cleaner enums with clang-format.
This commit is contained in:
parent
771d844bc4
commit
04d4c9e31e
4 changed files with 17 additions and 4 deletions
|
@ -10,3 +10,4 @@ IndentCaseBlocks: true
|
||||||
IncludeBlocks: Regroup
|
IncludeBlocks: Regroup
|
||||||
AllowShortBlocksOnASingleLine: Empty
|
AllowShortBlocksOnASingleLine: Empty
|
||||||
ColumnLimit: 80
|
ColumnLimit: 80
|
||||||
|
AllowShortEnumsOnASingleLine: false
|
||||||
|
|
|
@ -15,7 +15,11 @@ typedef struct {
|
||||||
unsigned int vars;
|
unsigned int vars;
|
||||||
} EventHandler;
|
} EventHandler;
|
||||||
|
|
||||||
typedef enum { T_NULL, T_VAR_EDIT, T_AMOUNT } Token;
|
typedef enum {
|
||||||
|
T_NULL,
|
||||||
|
T_VAR_EDIT,
|
||||||
|
T_AMOUNT
|
||||||
|
} Token;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
OP_NULL,
|
OP_NULL,
|
||||||
|
|
13
src/game.h
13
src/game.h
|
@ -8,9 +8,18 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
/* The direction where the player is going to. */
|
/* The direction where the player is going to. */
|
||||||
typedef enum { D_UP, D_DOWN, D_LEFT, D_RIGHT } Direction;
|
typedef enum {
|
||||||
|
D_UP,
|
||||||
|
D_DOWN,
|
||||||
|
D_LEFT,
|
||||||
|
D_RIGHT
|
||||||
|
} Direction;
|
||||||
|
|
||||||
typedef enum { P_LEFTUP = -1, P_CENTER = 0, P_RIGHTDOWN = 1 } Checkpos;
|
typedef enum {
|
||||||
|
P_LEFTUP = -1,
|
||||||
|
P_CENTER = 0,
|
||||||
|
P_RIGHTDOWN = 1
|
||||||
|
} Checkpos;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
I_NONE,
|
I_NONE,
|
||||||
|
|
|
@ -13,7 +13,6 @@ enum {
|
||||||
NPC_FRIENDLY = 1, // The player's team
|
NPC_FRIENDLY = 1, // The player's team
|
||||||
NPC_HOSTILE = 2, // to the player
|
NPC_HOSTILE = 2, // to the player
|
||||||
NPC_ALL = 3
|
NPC_ALL = 3
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/* /!\ Warning /!\
|
/* /!\ Warning /!\
|
||||||
|
|
Loading…
Reference in a new issue