Created
December 21, 2013 00:12
-
-
Save anonymous/8063627 to your computer and use it in GitHub Desktop.
enum class member
This file contains hidden or 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
//Pure virtual abstract base class for game state management | |
class AppState : public virtual SFMLEventHandler | |
{ | |
public: | |
AppState(sf::RenderWindow &disp) | |
: display(disp) | |
{ | |
} | |
virtual ~AppState() = default; | |
virtual void onRender() = 0; | |
enum States {CURRENTSTATE = 0, STARTMENUSTATE, CHESSPLUSPLUSSTATE}; | |
virtual States stateChange() = 0; | |
protected: | |
sf::RenderWindow &display; | |
States destState; | |
}; | |
error: expected identifier before ‘,’ token | |
enum States {CURRENTSTATE = 0, STARTMENUSTATE, CHESSPLUSPLUSSTATE}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment