Encapsulate FocusedCell fields and add getters

This commit is contained in:
2026-04-07 01:14:36 +02:00
parent 8e01c8c33a
commit 2b96ec129f
2 changed files with 14 additions and 6 deletions
+2 -2
View File
@@ -83,8 +83,8 @@ impl BoardState {
Offset::new(Some(self.horizontal_offset.get_value()), Some(h_max_offset));
self.focused_cell = FocusedCell::new(
self.focused_cell.row,
self.focused_cell.col,
self.focused_cell.get_row(),
self.focused_cell.get_col(),
self.map_height,
self.map_width,
);