Files
game-of-life/src/cell.h
T

34 lines
478 B
C

#ifndef CELL_H
#define CELL_H
#include <SDL2/SDL_rect.h>
typedef enum {
Alive,
Dead
} State;
typedef struct {
int x;
int y;
} Point;
typedef struct cell {
// Point TopLeft;
// Point Top;
// Point TopRight;
// Point Left;
// Point Right;
// Point BottomLeft;
// Point Botttom;
// Point BottomRight;
int living;
State Status;
int y;
int x;
} Cell;
Cell* CreateCell(int x, int y);
void UpdateCell(Cell*);
#endif