Added hp
This commit is contained in:
1 parent
b4b41e8620
commit
2bb7da2e37
8 files changed
+227397
-37
No files matched your search
+7
-1
@@ -20,7 +20,9 @@ enum class AnimationState {
|
||||
ACTION_ATTACK = 3,
|
||||
ACTION_ATTACK_2 = 4,
|
||||
ACTION_IDLE = 5,
|
||||
ACTION_TO_STAND = 6
|
||||
ACTION_TO_STAND = 6,
|
||||
ACTION_TO_DEATH = 7,
|
||||
DEATH_IDLE = 8,
|
||||
};
|
||||
|
||||
class Character {
|
||||
@@ -48,6 +50,9 @@ public:
|
||||
void drawShadowDepth(Renderer& renderer);
|
||||
void drawWithShadow(Renderer& renderer, const Eigen::Matrix4f& lightFromCamera, GLuint shadowMapTex, const Eigen::Vector3f& lightDirCamera);
|
||||
|
||||
|
||||
void applyDamage(float damageAmount);
|
||||
|
||||
// Public: read by Game for camera tracking and ray-cast origin
|
||||
Eigen::Vector3f position = Eigen::Vector3f(0.f, 0.f, 0.f);
|
||||
float facingAngle = 0.0f;
|
||||
@@ -64,6 +69,7 @@ public:
|
||||
std::string npcId;
|
||||
std::string npcName;
|
||||
bool giftReceived = false;
|
||||
float hp = 100.f;
|
||||
|
||||
|
||||
int battle_state = 0;
|
||||
|
||||
Reference in new issue
Block a user