This commit is contained in:
felicianoa237
2024-12-23 11:40:58 -06:00
commit 72674393e3
47 changed files with 4013 additions and 0 deletions

31
entities.h Normal file
View File

@@ -0,0 +1,31 @@
//
// Created by tony on 11/27/2024.
//
#include <windows.h>
#ifndef CONSOLEMENU_ENTITIES_H
#define CONSOLEMENU_ENTITIES_H
typedef struct Entity
{
int id;
char avatar;
char type;
COORD position;
struct Entity *next;
} Entity;
Entity* entity_INIT(int id, char avatar, char type, COORD position);
void append(Entity **head, int id, char avatar, char type, COORD position);
void freeList(Entity **e);
void updateEntityPostition(struct Entity *pPlayer, int direction);
struct Entity **createEntity(int id, char avatar, char type, COORD position);
void freeEntities(struct Entity *pEntity);
#endif //CONSOLEMENU_ENTITIES_H