Refactorize code #31

Merged
regar42 merged 5 commits from refactorize into master 2018-01-14 17:02:44 +00:00
5 Commits
Author SHA1 Message Date
regar42 a664c399ff Fix when path is drawn or before being animated
* Fix maze edition when path is drawn
* Clear the path before animating it
2018-01-14 18:00:45 +01:00
regar42 b1891f7118 Add message on window opening
* On lauch, explain the color of wall/empty boxes and that an example
maze can be found in data/labyrinthe.txt
* Remove legacy labyOutput.txt
* Add a tiny comment to the class Dijkstra
2018-01-14 17:26:38 +01:00
regar42 dc8de8c707 Add MazeModelInterface and Maze exceptions
* Add an interface for MazeModel
* Add MazeReadingException and MazeSavingException to handle errors when
  reading/saving a maze from/to a file (see #4)
* Useless methods removal (shallowShortest)
* Add javadoc
2018-01-14 17:05:42 +01:00
regar42 e76db727c7 Fix regression on getDimensionX and add finals
* Make all appropriate methods final
* Add new messages to MazeAppModelMessage and handle them to act more
  accurately on observers updates
* Make all buttons from 'File' menu subclasses of FileMenu in order to
  have a cleaner ui folder
* Remove legacy code (for example, the former code used to animate the
  path drawing)
* Improve delegation
2018-01-14 14:00:07 +01:00
antograb eaba5b6106 Refactorize code 2018-01-10 18:32:38 +01:00