getCurrentRoom method
Implementation
Room? getCurrentRoom(Point point) {
for (Floor floor in floors) {
if (!floor.area.pointInArea(point)) {
continue;
}
for (Room room in floor.rooms) {
if (room.area.pointInArea(point)) {
return room;
}
}
}
return null;
}