Files
ConsoleMenu/entities.h
felicianoa237 806041eaaa Updated code
2025-03-24 09:02:39 -05:00

31 lines
645 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