Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a proper interface for IGameConnection
Previously the IGameConnection interface was empty, but the code which used the module actually did a dynamic_cast down to the GameConnection implementing class and used its methods directly, thereby breaking the module abstraction. Now, the methods used by the UI code have been added as pure virtuals in the IGameConnection interface, eliminating the need for the dynamic downcast.
- Loading branch information
Matthew Mott
committed
Sep 1, 2020
1 parent
83e4028
commit 94de3c7
Showing
3 changed files
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters