duncan
Mom and Dad were wrong!
|
00001 #ifndef CLIENT_CLIENT_H_ 00002 #define CLIENT_CLIENT_H_ 00003 00004 #include <cstdlib> // for exit 00005 #include <iostream> // for errors 00006 #include <stack> 00007 #include <ncurses.h> 00008 #include "input.h" 00009 #include "state.h" 00010 #include "startstate.h" 00011 #include "col.h" 00012 00013 namespace client { 00014 00023 class Client { 00024 private: 00025 std::stack<std::tr1::shared_ptr<State> > state_stack_; 00026 00027 unsigned int rows_, cols_; 00028 00029 Input input_; 00030 00031 void pop(); 00032 void push(std::tr1::shared_ptr<State>); 00033 public: 00034 Client(); 00035 ~Client(); 00036 00037 bool update(); 00038 }; 00039 00040 } // namespace 00041 00042 #endif