Advertisement
Guest User

Untitled

a guest
Nov 12th, 2011
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. #ifndef STATE_H
  2. #define STATE_H
  3.  
  4. #include <string>
  5. #include <iostream>
  6.  
  7. class State
  8. {
  9. public:
  10.     virtual ~State() { };
  11.     virtual void OnEnter() = 0;
  12.     virtual void OnLeave() = 0;
  13.     virtual bool OnUpdate(float elapsedTime) = 0;
  14.     virtual void OnRender() = 0;
  15.     virtual std::string NextState() = 0;
  16. };
  17.  
  18. #endif
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement