diff options
Diffstat (limited to 'src/tilearea_type.h')
-rw-r--r-- | src/tilearea_type.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tilearea_type.h b/src/tilearea_type.h index 8bac2fbbf..6c2639cff 100644 --- a/src/tilearea_type.h +++ b/src/tilearea_type.h @@ -53,6 +53,13 @@ struct TileArea { this->w = 0; this->h = 0; } + + /** + * Does this tile area intersect with another? + * @param ta the other tile area to check against. + * @return true if they intersect. + */ + bool Intersects(const TileArea &ta) const; }; #endif /* TILEAREA_TYPE_H */ |