INIT
This commit is contained in:
31
entities.h
Normal file
31
entities.h
Normal 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
|
||||
Reference in New Issue
Block a user