Updated code

This commit is contained in:
felicianoa237
2024-12-23 11:40:58 -06:00
commit 806041eaaa
45 changed files with 3764 additions and 0 deletions

32
console_function.h Normal file
View File

@@ -0,0 +1,32 @@
#ifndef CONSOLE_FUNCTIONS_H
#define CONSOLE_FUNCTIONS_H
#include <windows.h>
#include <stdio.h>
#include <stdbool.h>
#include "entities.h"
// Function declarations
// Function to clear the console
void clearConsole();
// Function to enable ANSI support
void enableANSI();
// Function to set cursor position
void gotoxy(int x, int y);
// Function to update the console with an entity's data
bool updateConsole(struct Entity *pEntity);
// Function to get console buffer information
void getBufferInfo(HANDLE *hHandle, CONSOLE_SCREEN_BUFFER_INFO *pCSBI);
// Function to print a list of entities to the console
void printList(HANDLE *pHConsole, DWORD *pCharsWritten, Entity *e);
// Function to print console bounds information
void printBoundsToConsole(HANDLE *pHConsole, SMALL_RECT *pScreenBounds);
#endif // CONSOLE_FUNCTIONS_H