Refactoring: Keyboard-Input in GameInputUser verschieben #4
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sebastian/Dicewars-Siedler#4
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
GameLayer::onUpdate() hat zwei Verantwortlichkeiten die nichts miteinander zu tun haben: Input und Spielsimulation.
3a: Keyboard-Input in GameInputUser verschieben
Aktuell in GameLayer::onUpdate() (direkt + inkonsistent):
Stattdessen: GameInputUser bekommt eine Methode processKeyboard():
GameLayer::onUpdate() ruft das nur noch ab: