aboutsummaryrefslogtreecommitdiff
path: root/Client/Source/PND
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Source/PND')
-rw-r--r--Client/Source/PND/Animation/Animation.h0
-rw-r--r--Client/Source/PND/Common/Type.h10
-rw-r--r--Client/Source/PND/GameCode/Component.cpp0
-rw-r--r--Client/Source/PND/GameCode/Component.h0
-rw-r--r--Client/Source/PND/GameCode/Components/MovementComponent.h0
-rw-r--r--Client/Source/PND/GameCode/Entity.cpp0
-rw-r--r--Client/Source/PND/GameCode/Entity.h21
-rw-r--r--Client/Source/PND/Math/Vector2.h15
-rw-r--r--Client/Source/PND/main.cpp12
9 files changed, 49 insertions, 9 deletions
diff --git a/Client/Source/PND/Animation/Animation.h b/Client/Source/PND/Animation/Animation.h
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/Client/Source/PND/Animation/Animation.h
diff --git a/Client/Source/PND/Common/Type.h b/Client/Source/PND/Common/Type.h
index 250405b..4033ab1 100644
--- a/Client/Source/PND/Common/Type.h
+++ b/Client/Source/PND/Common/Type.h
@@ -1,3 +1,7 @@
-#pragma once
-
-typedef float fixed;
+#pragma once
+
+#include "libfixmath/libfixmath/fix16.h"
+
+typedef fix16_t fixed16; // Q16.16
+
+typedef fixed16 fixed;
diff --git a/Client/Source/PND/GameCode/Component.cpp b/Client/Source/PND/GameCode/Component.cpp
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/Client/Source/PND/GameCode/Component.cpp
diff --git a/Client/Source/PND/GameCode/Component.h b/Client/Source/PND/GameCode/Component.h
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/Client/Source/PND/GameCode/Component.h
diff --git a/Client/Source/PND/GameCode/Components/MovementComponent.h b/Client/Source/PND/GameCode/Components/MovementComponent.h
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/Client/Source/PND/GameCode/Components/MovementComponent.h
diff --git a/Client/Source/PND/GameCode/Entity.cpp b/Client/Source/PND/GameCode/Entity.cpp
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/Client/Source/PND/GameCode/Entity.cpp
diff --git a/Client/Source/PND/GameCode/Entity.h b/Client/Source/PND/GameCode/Entity.h
new file mode 100644
index 0000000..df92bed
--- /dev/null
+++ b/Client/Source/PND/GameCode/Entity.h
@@ -0,0 +1,21 @@
+#pragma once
+
+#include <vector>
+#include <unordered_map>
+
+#include "../Common/Type.h"
+
+class Component;
+
+// ÓÎÏ·¶ÔÏó
+class Entity
+{
+public:
+
+
+private:
+ std::vector< Component*> m_Components;
+
+ int m_ID;
+
+};
diff --git a/Client/Source/PND/Math/Vector2.h b/Client/Source/PND/Math/Vector2.h
new file mode 100644
index 0000000..51c9f40
--- /dev/null
+++ b/Client/Source/PND/Math/Vector2.h
@@ -0,0 +1,15 @@
+#pragma once
+
+
+#include <vector>
+#include <unordered_map>
+
+#include "../Common/Type.h"
+
+
+class Vector2
+{
+public:
+ fixed x, y;
+
+};
diff --git a/Client/Source/PND/main.cpp b/Client/Source/PND/main.cpp
index 8d0f257..f6bb3d7 100644
--- a/Client/Source/PND/main.cpp
+++ b/Client/Source/PND/main.cpp
@@ -1,7 +1,7 @@
-
-
-int main()
-{
-
- return 0;
+
+
+int main()
+{
+
+ return 0;
} \ No newline at end of file