aboutsummaryrefslogtreecommitdiffstats
path: root/src/yabs_structs.h
diff options
context:
space:
mode:
authorsalaaad2 <arthurdurant263@gmail.com>2022-07-11 21:24:00 +0200
committersalaaad2 <arthurdurant263@gmail.com>2022-07-11 21:24:00 +0200
commit3e16eb8d2f15d40239bdf1f375daeab7bcdf95fa (patch)
treed22010b7852fc8dadf203678b10210a2937a9c1f /src/yabs_structs.h
parentsmall refactor along with cube slaying (diff)
downloadyabs-3e16eb8d2f15d40239bdf1f375daeab7bcdf95fa.tar.gz
yabs-3e16eb8d2f15d40239bdf1f375daeab7bcdf95fa.tar.bz2
yabs-3e16eb8d2f15d40239bdf1f375daeab7bcdf95fa.tar.xz
yabs-3e16eb8d2f15d40239bdf1f375daeab7bcdf95fa.tar.zst
yabs-3e16eb8d2f15d40239bdf1f375daeab7bcdf95fa.zip
dod
Diffstat (limited to 'src/yabs_structs.h')
-rw-r--r--src/yabs_structs.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/yabs_structs.h b/src/yabs_structs.h
new file mode 100644
index 0000000..c6f1d30
--- /dev/null
+++ b/src/yabs_structs.h
@@ -0,0 +1,48 @@
+/*********************************/
+/* YABS ( // */
+/* structs ( )/ */
+/* by salade )(/ */
+/* ________________ ( /) */
+/* ()__)____________))))) :^} */
+/*********************************/
+
+#ifndef YABS_STRUCTS_H
+#define YABS_STRUCTS_H
+
+#include "raylib.h"
+#include <vector>
+
+namespace yabs {
+namespace core {
+
+typedef struct Player {
+ int hp;
+ Vector3 pos;
+}Player;
+
+typedef struct Enemy {
+ Vector3 enemyStartPos;
+ Vector3 enemyBoxPos;
+ Vector3 enemyBoxSize;
+ BoundingBox enemyBounds;
+ bool active;
+} Enemy;
+
+typedef struct RenderObjs {
+ std::vector<Vector3 *> vEnemyPos;
+ Model & ground;
+} RenderObjs;
+
+typedef struct TickObjs {
+ std::vector<BoundingBox *> vEnemyBounds;
+ std::vector<Vector3 *> vEnemyPos;
+ BoundingBox * range;
+ Vector3 * position;
+ bool * direction[4];
+ bool * alive;
+} TickObjs;
+
+}
+}
+
+#endif /* YABS_STRUCTS_H */