Big cleanup of rampant using std.
This commit is contained in:
parent
fcd1225370
commit
453c50c563
15 changed files with 49 additions and 40 deletions
|
@ -6,6 +6,8 @@
|
|||
#include "game_engine.hpp"
|
||||
#include <string>
|
||||
|
||||
using std::string;
|
||||
|
||||
constexpr int FPS=30;
|
||||
constexpr int X_DIM = 1920 / 2;
|
||||
constexpr int Y_DIM = 1080 / 2;
|
||||
|
@ -25,7 +27,7 @@ class SFMLGui {
|
|||
int hit_points = 50;
|
||||
sf::Font font;
|
||||
GameEngine &game;
|
||||
vector<string> log;
|
||||
std::vector<string> log;
|
||||
|
||||
public:
|
||||
SFMLGui(GameEngine &g);
|
||||
|
@ -37,9 +39,9 @@ public:
|
|||
|
||||
void handle_events();
|
||||
void update_entities();
|
||||
void update_log(vector<string> &lines);
|
||||
void update_log(std::vector<string> &lines);
|
||||
|
||||
void write_text(int x, int y, std::string content);
|
||||
void write_text(int x, int y, string content);
|
||||
|
||||
void ImGui_setup();
|
||||
void ImGui_update();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue