Updated code
This commit is contained in:
32
console_function.h
Normal file
32
console_function.h
Normal 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
|
||||
Reference in New Issue
Block a user