From fc5af1441f47512f7d017922755806b73f8f893b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asr=C4=B1n=20Do=C4=9Fan?= <33391270+Syntriax@users.noreply.github.com> Date: Sat, 4 Jan 2020 17:32:00 +0300 Subject: [PATCH] C++ Libraries and Cleanup --- FirstTest/main.cpp | 2 +- Force/.vscode/settings.json | 28 ---------------------------- Force/Entity.h | 4 ++-- 3 files changed, 3 insertions(+), 31 deletions(-) delete mode 100644 Force/.vscode/settings.json diff --git a/FirstTest/main.cpp b/FirstTest/main.cpp index fb787e1..9a78071 100644 --- a/FirstTest/main.cpp +++ b/FirstTest/main.cpp @@ -1,7 +1,7 @@ #include #include // std::ostringstream #include -#include +#include #include "Player.hpp" #define WindowSize sf::VideoMode(960, 540) diff --git a/Force/.vscode/settings.json b/Force/.vscode/settings.json deleted file mode 100644 index 5fab886..0000000 --- a/Force/.vscode/settings.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "files.associations": { - "vector": "cpp", - "ios": "cpp", - "ostream": "cpp", - "sstream": "cpp", - "deque": "cpp", - "exception": "cpp", - "fstream": "cpp", - "istream": "cpp", - "iterator": "cpp", - "map": "cpp", - "memory": "cpp", - "set": "cpp", - "streambuf": "cpp", - "system_error": "cpp", - "tuple": "cpp", - "utility": "cpp", - "xlocale": "cpp", - "xlocinfo": "cpp", - "xstring": "cpp", - "xtree": "cpp", - "xutility": "cpp", - "iostream": "cpp", - "cmath": "cpp", - "iosfwd": "cpp" - } -} \ No newline at end of file diff --git a/Force/Entity.h b/Force/Entity.h index 7a2961a..b4ee421 100644 --- a/Force/Entity.h +++ b/Force/Entity.h @@ -1,6 +1,6 @@ #include #include -#include +#include class Entity; @@ -34,9 +34,9 @@ class Entity public: Entity(); void ApplyForce(sf::Vector2f, float); + void ApplyDrag(float, float); void ApplyGravity(float); void ApplyVelocity(float); - void ApplyDrag(float, float); void SetPosition(float, float, bool = true); void SetVelocity(float, float, bool = true); sf::Vertex &GetVertex();