[Change] Character::Move was named incorrectly, This is now defined as Character::HealthBarScroll

This commit is contained in:
Rtch90 2012-02-18 19:29:45 +00:00
parent 4be65645da
commit 35fd91c97a
4 changed files with 126 additions and 126 deletions

View File

@ -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) {

View File

@ -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));
} }

View File

@ -69,7 +69,7 @@ public:
}; };
protected: protected:
void Move(void); void HealthBarScroll(void);
float x; float x;
float y; float y;

View File

@ -59,5 +59,5 @@ void NPC::Move(void) {
} }
map->MoveIfPossible(this, xVel, yVel, false); map->MoveIfPossible(this, xVel, yVel, false);
Character::Move(); Character::HealthBarScroll();
} }