-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStructs.h
96 lines (77 loc) · 1.07 KB
/
Structs.h
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#pragma once
#include <SFML\Graphics.hpp>
struct LinearFunc
{
float Slope;
float Intercept;
};
struct ParabolicFunc
{
float Y_Scale;
float X_Scale;
float Intercept;
};
struct Attack
{
bool type;
float Damage;
float AttackSpeed;
float CritChance;
float CritDamage;
float Range;
float AngleOffset;
float TopOffset;
float BottomOffset;
};
struct Ability
{
float Cooldown;
float Range;
};
struct PlayerAttributes
{
float Health;
float Armor;
float Shield;
float MovementSpeed;
float Block;
float Dodge;
Attack MeleeAttack;
Attack RangeAttack;
};
struct EnemyAttributes
{
float Health;
float Armor;
float Shield;
float MovementSpeed;
float Block;
float Dodge;
Attack Attack[3];
};
struct States
{
bool Facing;
bool Jumping;
bool Ducking;
bool Rolling;
bool Blocking;
bool Falling;
bool Shooting;
bool Meleeing;
bool MovingL;
bool MovingR;
ArmState ArmState;
ComplexState CurrentState;
bool CanJump;
bool TookDamage;
bool Invincible;
};
struct DamageReport
{
float TotalDmg;
float ShieldDmg;
float HealthDmg;
bool Critical;
bool Hit;
};