the whole game

This commit is contained in:
2026-03-02 22:04:18 +03:00
parent 816e9060b4
commit f0617a5d22
2069 changed files with 581500 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
#include "GuiElement.h"
GuiElement::GuiElement( bool active/*=false*/, bool visible/*=true*/, int x /*= 0*/, int y /*= 0*/, int width/*=24*/, int height/*=24*/ )
: active(active),
visible(visible),
x(x),
y(y),
width(width),
height(height) {
}
bool GuiElement::pointInside( int x, int y ) {
if(x >= this->x && x < this->x + this->width) {
if(y >= this->y && y < this->y + this->height) {
return true;
}
}
return false;
}