Removed player right click movement.
This commit is contained in:
parent
a083708850
commit
0c29dac282
3 changed files with 0 additions and 15 deletions
|
@ -201,9 +201,6 @@ Game::mouseUp(const sf::Event& event) {
|
|||
case sf::Mouse::Left:
|
||||
mPlayer->releaseTrigger();
|
||||
break;
|
||||
case sf::Mouse::Right:
|
||||
mPlayer->move(convertCoordinates(event.mouseButton.x, event.mouseButton.y));
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -44,17 +44,6 @@ Player::releaseTrigger() {
|
|||
Character::releaseTrigger();
|
||||
}
|
||||
|
||||
/**
|
||||
* Moves the player to a destination point.
|
||||
* Disables any previous calls to Player::setDirection().
|
||||
*
|
||||
* @param destination Absolute world coordinate of the destination point.
|
||||
*/
|
||||
void
|
||||
Player::move(const sf::Vector2f& destination) {
|
||||
setDestination(destination);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the movement direction. This is destined for input via keys (eg. WASD).
|
||||
* Disables any previous commands via Player::move().
|
||||
|
|
|
@ -36,7 +36,6 @@ public:
|
|||
void setCrosshairPosition(const sf::Vector2f& position);
|
||||
void pullTrigger();
|
||||
void releaseTrigger();
|
||||
void move(const sf::Vector2f& destination);
|
||||
void setDirection(Direction direction, bool unset);
|
||||
|
||||
// Private functions.
|
||||
|
|
Reference in a new issue