Commits

Author Commit Message Labels Comments Date
Arne Babenhauserheide
refactoring: removed the commands attribute of the model: Always go through the last result.
Arne Babenhauserheide
input.on_mouse_move → state.move_active
Arne Babenhauserheide
FIX: missed one act→actor
Arne Babenhauserheide
clearer wording: act→actor
Arne Babenhauserheide
moved click handling from input to UiState.
Arne Babenhauserheide
refactored the computer action into its own method.
Arne Babenhauserheide
minor formatting
Arne Babenhauserheide
added refactoring TODO + √ for the first refactoring task.
Arne Babenhauserheide
further note for refactoring.
Arne Babenhauserheide
added default command, if only one command is given. And actually use the command interface.
Arne Babenhauserheide
typo
Arne Babenhauserheide
decouple computer_turn and switch_to_player_turn in the UiState from the Model.
Arne Babenhauserheide
Result now takes a list with Commands instead of any number of Commands as arguments and it can take a description..
Arne Babenhauserheide
implemented the first command interface: UiState.computer_turn calls Model.computer_turn to get a Result. No commands yet, though.
Arne Babenhauserheide
split UiState.turn_finished_selected into a model and a separate UiState method.
Arne Babenhauserheide
some whitespace changes to make outline-mode happier.
Arne Babenhauserheide
doctest fix
Arne Babenhauserheide
everything seems to work again. Still working on the first refactoring step.
Arne Babenhauserheide
showing the tree works again, but now I can move it all the time: not intended.
Arne Babenhauserheide
moved more methods into the model.
Arne Babenhauserheide
don’t add dependencies without needing them. Keep at as simple as possible and only add something if you need it.
Arne Babenhauserheide
update the plan.
Arne Babenhauserheide
FIX: The input tried to access the hexmap from the UiState. Workaround: use the hexmap from the Model directly. TODO: don’t depend on the hexmap(=refactor that).
Arne Babenhauserheide
2 more goblins, so the rats don’t always win (that nagged me while testing :) ).
Arne Babenhauserheide
renamed the gamestate to phase: The real gamestate is much bigger than just the phase.
Arne Babenhauserheide
moved the list of visible things into the model.
Arne Babenhauserheide
moved the gamestate dict into the model.
Arne Babenhauserheide
moved the hexmap into the model and prepared basic model-attributes.
Arne Babenhauserheide
First step: moved the hex_vectors into the Model.
Arne Babenhauserheide
plan for coming from fat UiState to UiState+Logic(model+commands+results).
  1. Prev
  2. Next