Jump and Shoot! 🎶

This commit is contained in:
MarcEricMartel
2023-12-07 12:32:36 -05:00
parent e9e2a56be6
commit 74b808f46b
4 changed files with 9 additions and 7 deletions

View File

@@ -276,11 +276,9 @@ void Player::Teleport(int& x, int& z) {
m_position.x -= x * CHUNK_SIZE_X;
m_position.z -= z * CHUNK_SIZE_Z;
}
bool Player::AmIDead()
{
return m_hp <= 0;
}
bool Player::GetIsAirborne() const { return m_airborne; }
bool Player::AmIDead() { return m_hp <= 0; }
void Player::InflictDamage(float hitPoints) {
m_hp -= hitPoints;

View File

@@ -35,6 +35,7 @@ public:
float GetHP() const;
void Teleport(int& x, int& z);
bool GetIsAirborne() const;
bool AmIDead();
void InflictDamage(float hitPoints);
int getScore() const;