#ifndef CLIENT_H #define CLIENT_H #include #include "refptr.h" #include "Map.h" #include "Player.h" #include "GLProgram.h" #include "WFObj.h" #include "GLMatrix.h" #include "GLBuffer.h" class Client { public: Client(); void run(bool fullscreen, int width, int height); protected: bool create_window(bool fullscreen, int width, int height); bool initgl(); void resize_window(int width, int height); void update(double elapsed_time); void redraw(); void draw_players(); void draw_map(); refptr m_window; sf::Clock m_clock; Map m_map; refptr m_player; int m_width; int m_height; GLProgram m_obj_program; WFObj m_tank_obj; WFObj m_tile_obj; GLMatrix m_projection; GLMatrix m_modelview; }; #endif