-
Notifications
You must be signed in to change notification settings - Fork 0
/
updater.h
31 lines (30 loc) · 1.01 KB
/
updater.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#pragma once
#include "Square.h"
#include <bitset>
#include "Networking.h"
#include "menu.h"
class updater {
public:
updater(SDL_Window* win, SDL_Renderer* ren, uint_least8_t* gamestate, SDL_Event* ev);
updater* handle_input(Square& sqr, double fps);
updater* handle_border_collision(Square& sqr);
updater* draw_sqr(Square& sqr, TTF_Font* namefont, uint_least8_t tsqrindex);
updater* draw_titles(title& title);
updater* handle_host_b(host_b& host);
updater* handle_join_b(join_b& join, authorize& auth, field& cfd);
updater* handle_tomenu_b(tomenu_b&);
updater* handle_lchost_b(lchost_b& lct);
updater* handle_phost_b(phost_b& shs);
updater* handle_hostinfo(hostinfo& hif);
updater* handle_field(field& cfd, sockaddr_in& dest, authorize& auth);
updater* draw_enter2join(enter2join& e2j);
updater* draw_authorize(authorize& auth);
updater* closefont(TTF_Font* font);
private:
SDL_Window* win{};
SDL_Renderer* ren{};
SDL_Event* ev{};
unsigned char* gamestate{};
int_least32_t winsizex{};
int_least32_t winsizey{};
};