Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jan 25th, 2014  |  syntax: C++  |  size: 0.34 KB  |  views: 3  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #pragma once
  2. #include "game.h"
  3.  
  4. class GameState
  5. {
  6.  
  7.     public:
  8.  
  9.         GameState() {};
  10.         virtual ~GameState() {};
  11.         virtual void init() =0;
  12.         virtual void draw(Game* game) =0;
  13.         virtual void update(Game* game) =0;
  14.         virtual void handleEvents(Game* game) =0;
  15.         virtual void clean() = 0;
  16.  
  17.  
  18.  
  19. };
clone this paste RAW Paste Data