forked from jjuhl/Blocks-and-Bombs
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make a few pure functions in GameObject non-pure.
There's no reason to force derived classes to implement draw() and update(). We may as well just provide "do nothing" default implementations for objects that don't care about the passage of time or are not drawing anything. Also fix up the types of draw() arguments - references are nicer than pointers here since they can't be null.
- Loading branch information
Showing
2 changed files
with
24 additions
and
18 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