[Change] Character::Move was named incorrectly, This is now defined as Character::HealthBarScroll
This commit is contained in:
parent
4be65645da
commit
35fd91c97a
@ -123,7 +123,7 @@ void Player::SetCamera(void) {
|
|||||||
|
|
||||||
void Player::Move() {
|
void Player::Move() {
|
||||||
map->MoveIfPossible(this, xVel, yVel, true);
|
map->MoveIfPossible(this, xVel, yVel, true);
|
||||||
Character::Move();
|
Character::HealthBarScroll();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Player::SetLevel(int level) {
|
void Player::SetLevel(int level) {
|
||||||
|
@ -109,6 +109,6 @@ void Character::OnAttack(void) {
|
|||||||
_showHealthBar = true;
|
_showHealthBar = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Character::Move(void) {
|
void Character::HealthBarScroll(void) {
|
||||||
_healthBar.SetXY((int)x, (int)(y - _healthBar.GetHeight() - 5));
|
_healthBar.SetXY((int)x, (int)(y - _healthBar.GetHeight() - 5));
|
||||||
}
|
}
|
||||||
|
@ -69,7 +69,7 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void Move(void);
|
void HealthBarScroll(void);
|
||||||
|
|
||||||
float x;
|
float x;
|
||||||
float y;
|
float y;
|
||||||
|
@ -59,5 +59,5 @@ void NPC::Move(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
map->MoveIfPossible(this, xVel, yVel, false);
|
map->MoveIfPossible(this, xVel, yVel, false);
|
||||||
Character::Move();
|
Character::HealthBarScroll();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user