forked from Kolyah35/minecraft-pe-0.6.1
.h -> .hpp everything
This commit is contained in:
45
src/client/player/input/IMoveInput.hpp
Executable file
45
src/client/player/input/IMoveInput.hpp
Executable file
@@ -0,0 +1,45 @@
|
||||
#pragma once
|
||||
|
||||
//package net.minecraft.client.player;
|
||||
|
||||
#include "client/IConfigListener.hpp"
|
||||
class Player;
|
||||
class Minecraft;
|
||||
|
||||
class IMoveInput
|
||||
{
|
||||
protected:
|
||||
IMoveInput()
|
||||
: xa(0),
|
||||
ya(0),
|
||||
wasJumping(false),
|
||||
jumping(false),
|
||||
sneaking(false),
|
||||
wantUp(false),
|
||||
wantDown(false),
|
||||
isChangingFlightHeight(false)
|
||||
{}
|
||||
public:
|
||||
virtual ~IMoveInput() {}
|
||||
|
||||
virtual void tick(Player* player) {}
|
||||
virtual void render(float a) {}
|
||||
|
||||
virtual void setKey(int eventKey, bool eventKeyState) {}
|
||||
virtual void releaseAllKeys() {}
|
||||
|
||||
virtual void onConfigChanged(const Config& c) {}
|
||||
|
||||
public:
|
||||
float xa;
|
||||
float ya;
|
||||
|
||||
bool wasJumping;
|
||||
bool jumping;
|
||||
bool sneaking;
|
||||
|
||||
bool wantUp;
|
||||
bool wantDown;
|
||||
bool isChangingFlightHeight;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user