Console/console manager refactoring
Is it ok if I create a class AbstractTextConsole and rename the TextConsole into a ScrollableTextConsole I want to move the text console generic methods into the AbstractTextConsole. I also want to make the ConsoleManager be the PointerDevice/Keyboard listener and delegate the events to the focused console. The consoles will still implement the interface but will not be registered as listeners and will receive their events from ConsoleManager. So the console manager will be a dispatcher of events for the consoles. what do you think?I would also like to add the background/foreground color setting as an attribute and create new putChar() or setChar() without colors as parameters(also keep the old ones). I would also like to handle this colors using the standard Color class. Is somone against this changes?
- Login to post comments
maybe creating a new system would be better
Hi, I am thinking to start from zero with the console/consolemanager.. Coze so many things must be modified and is much harder to keep it compatible. And slowly maybe peoples will port there applications to the new console architecture.