Skip to content

Instantly share code, notes, and snippets.

@Lumaio
Created August 27, 2014 01:34
Show Gist options
  • Save Lumaio/48b20ee88f76bab57d99 to your computer and use it in GitHub Desktop.
Save Lumaio/48b20ee88f76bab57d99 to your computer and use it in GitHub Desktop.
#include "inc.hh"
#ifndef BASE_H
#define BASE_H
class BaseState
{
private:
public:
BaseState();
~BaseState()=default;
virtual void init(thor::ActionMap<std::string> &map);
virtual void update(float dt, thor::ActionMap<std::string> &map);
virtual void render(sf::RenderWindow &window);
};
#endif
#include "inc.hh"
#include "menustate.hh"
#include "basestate.hh"
MenuState::MenuState()
{
}
void MenuState::init(thor::ActionMap<std::string> &map)
{
}
void MenuState::update(float dt, thor::ActionMap<std::string> &map)
{
}
void MenuState::render(sf::RenderWindow &window)
{
}
#include "inc.hh"
#include "basestate.hh"
#ifndef MENU_H
#define MENU_H
class MenuState : public BaseState
{
private:
public:
MenuState();
~MenuState()=default;
};
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment