Setup basic things
This commit is contained in:
+26
@@ -0,0 +1,26 @@
|
||||
#ifndef CELL_H
|
||||
#define CELL_H
|
||||
|
||||
#include <SDL2/SDL_rect.h>
|
||||
|
||||
typedef enum {
|
||||
Alive,
|
||||
Dead
|
||||
} State;
|
||||
|
||||
typedef struct cell {
|
||||
struct cell* TopLeft;
|
||||
struct cell* Top;
|
||||
struct cell* TopRight;
|
||||
struct cell* Left;
|
||||
struct cell* Right;
|
||||
struct cell* BottomLeft;
|
||||
struct cell* Botttom;
|
||||
struct cell* BottomRight;
|
||||
State Status;
|
||||
SDL_Rect Hitbox;
|
||||
} Cell;
|
||||
|
||||
Cell* CreateCell(SDL_Rect);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user