/** Makes the {@link Player} stop moving by stopping the animation. */ @Override public void stopMoving() { setAnimationCurrent(null); AbstractGame.LOGGER.log(LogSeverity.VERBOSE, "Player", "Player stops moving."); }
/** Fires the {@link Player#getWeapon()}. */ @Override public void shoot() { getWeapon() .fire(container, (int) this.locX, (int) this.locY, this.getWidth(), this.getHeight()); AbstractGame.LOGGER.log(LogSeverity.VERBOSE, "Player", "Player shoots"); }
/** Moves the {@link Player} right according to its speed and sets the correct animation. */ @Override public void moveRight() { setAnimationCurrent(animationRight); setLocX(locX + getSpeed()); AbstractGame.LOGGER.log(LogSeverity.VERBOSE, "Player", "Player moves to the right"); }