aboutsummaryrefslogtreecommitdiffstats
path: root/src/yabs_structs.h
blob: c6f1d300c3d6a56f340999f2b109f457274575de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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 */