Add support world drawing

This commit is contained in:
2017-11-09 21:43:59 -06:00
parent 539aa1e7eb
commit 2edee450aa
22 changed files with 232 additions and 61 deletions

View File

@@ -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 {

View File

@@ -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;