Files
ConsoleMenu/entities.h
felicianoa237 72674393e3 INIT
2024-12-23 11:46:18 -06:00

31 lines
647 B
C

//
// 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