aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/Components.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-06 14:10:52 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-06 14:10:52 +0200
commitf8bc2a06a90c0ee172054db7ae2e1fdae09d14a3 (patch)
treee858037e49a8a94734026d636fceb28a00b1ab99 /src/crepe/Components.cpp
parent509fb6ebdd27bc75375c1c51024ea906e25032c0 (diff)
code standard v3
Diffstat (limited to 'src/crepe/Components.cpp')
-rw-r--r--src/crepe/Components.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/crepe/Components.cpp b/src/crepe/Components.cpp
index 4a43692..f27c7a4 100644
--- a/src/crepe/Components.cpp
+++ b/src/crepe/Components.cpp
@@ -1,14 +1,13 @@
#include "Components.h"
-#include <iostream>
using namespace crepe;
+using namespace std;
-Component::Component() : m_active(true) {}
+Component::Component() : active(true) {}
-Sprite::Sprite(std::string path) : m_path(path) {}
+Sprite::Sprite(string path) : path(path) {}
Rigidbody::Rigidbody(int mass, int gravityScale, int bodyType)
- : m_mass(mass), m_gravity_scale(gravityScale), m_body_type(bodyType) {}
-
-Collider::Collider(int size) : m_size(size) {}
+ : mass(mass), gravity_scale(gravityScale), body_type(bodyType) {}
+Collider::Collider(int size) : size(size) {}