So instead of introducing new features it was time for a refactor.
Package names now have a naming convention, so do classes. A logger has been introduces instead of all those System.out.println() as well as a config file that handles settings without the need to recompile the code. A friend was a great help, mostly because he works in a more professional enviroment then me, as well as more experience.
Another think i found was a true "first" in the java programming language.
Destroying an object explizitly in Java.
I use quite a nasty method to create the red [ now white, at a later point in color of owner ] overview in the right upper corner.
Code
I am aware that this code is very bad code, in the beginning this was meant to test the galaxy generation algorithm, so it just created a image of the galaxy. But using it as a real time overview is very unressourceful, so this will change :)
I hope i find a way to render this in a better way, probably rerendering the image every time a star is changed ( owner or existence ), would be quite ok, because this happens rarely. the border and the view finder [ see other images ] will be rendered in the renderer thread with Shapes.
I will also try to get the Imagebuffer local, put everything in one method.
Till then have fun, and please, if you want, leave questions, opinions, suggestions etc.






