51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef LOCALPLAYER_HEADER
-#define LOCALPLAYER_HEADER
+#pragma once
#include "player.h"
#include "environment.h"
{
public:
LocalPlayer(Client *client, const char *name);
- virtual ~LocalPlayer();
+ virtual ~LocalPlayer() = default;
ClientActiveObject *parent = nullptr;
void setCollisionbox(const aabb3f &box) { m_collisionbox = box; }
private:
- void accelerateHorizontal(const v3f &target_speed,
- const f32 max_increase, bool slippery);
+ // clang-format off
+ void accelerateHorizontal(const v3f &target_speed, f32 max_increase, bool slippery);
+ // clang-format on
void accelerateVertical(const v3f &target_speed, const f32 max_increase);
bool updateSneakNode(Map *map, const v3f &position, const v3f &sneak_max);
GenericCAO *m_cao = nullptr;
Client *m_client;
};
-
-#endif