Add support world drawing
This commit is contained in:
@@ -10,7 +10,11 @@
|
||||
namespace nostalgia {
|
||||
namespace common {
|
||||
|
||||
Bounds::Bounds() {
|
||||
Bounds::Bounds(int x, int y, int w, int h) {
|
||||
this->x = x;
|
||||
this->y = y;
|
||||
this->width = w;
|
||||
this->height = h;
|
||||
}
|
||||
|
||||
bool Bounds::intersects(Bounds o) const {
|
||||
|
@@ -19,10 +19,9 @@ class Bounds {
|
||||
int width = 0;
|
||||
int height = 0;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
Bounds();
|
||||
Bounds() = default;
|
||||
|
||||
Bounds(int x, int y, int w, int h);
|
||||
|
||||
bool intersects(Bounds other) const;
|
||||
|
||||
|
Reference in New Issue
Block a user