Title: [C++] class GameStateManager { public: static GameState State[0x1000]; static U64 Author: dajfarrell Pastebin link: http://pastebin.com/WktfrWdj First Edit: Tuesday 19th of February 2013 07:48:03 AM CDT Last Edit: Tuesday 19th of February 2013 07:48:03 AM CDT class GameStateManager { public:         static GameState State[0x1000];         static U64 Tail;           static GameState & GetState(U64 offset = 0) {                 for(; offset > Tail; offset -= 0x1000);                 return State[Tail - offset];         }           static void CopyState(U64 src, U64 dst) {                 if(src < 0x1000 && dst < 0x1000) {                         for(U64 iKey=0; iKey<0x100; ++iKey) {                                 State[dst].keyboard[iKey] = State[src].keyboard[iKey];                         }                 }         }           static void Increment(U64 times = 1) {                 for(U64 i=0; i