Refactor skirmish focus handling and CellWidget API

Introduce a MoveFocusedCell enum and a BoardState.change_focused_cell
method to
centralize focus movement logic. Update skirmish keybindings to use this
new
method and simplify board rendering by directly using stored CellWidget
state.
Make CellWidget setters chainable and expose the new enum in the module
re‑exports. Remove duplicated max_offset logic and old move_* methods.
This commit is contained in:
2026-04-07 23:20:11 +02:00
parent e3fea75983
commit 48483da1a4
6 changed files with 88 additions and 57 deletions
+1 -1
View File
@@ -3,5 +3,5 @@ pub mod focused_cell;
pub mod offset;
pub use board::BoardState;
pub use focused_cell::FocusedCell;
pub use focused_cell::{FocusedCell, MoveFocusedCell};
pub use offset::Offset;