Encapsulate FocusedCell fields and add getters

This commit is contained in:
GarandPLG committed 2026-04-07 01:14:36 +02:00
1 parent 8e01c8c33a
commit 2b96ec129f
2 files changed
+14 -6

No files matched your search

+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,
);