diff options
author | tycho <work.tycho@gmail.com> | 2015-09-25 16:49:22 +0200 |
---|---|---|
committer | tycho <work.tycho@gmail.com> | 2015-12-18 19:14:34 +0100 |
commit | 26caea80d35d4ff2ac3879d5ae6ab49f2f876385 (patch) | |
tree | dbbeff77f1653217bab4f06ae3f2763bef0bd21b /src/ClientAction.h | |
parent | Refactored some protocol logging (diff) | |
download | cuberite-26caea80d35d4ff2ac3879d5ae6ab49f2f876385.tar cuberite-26caea80d35d4ff2ac3879d5ae6ab49f2f876385.tar.gz cuberite-26caea80d35d4ff2ac3879d5ae6ab49f2f876385.tar.bz2 cuberite-26caea80d35d4ff2ac3879d5ae6ab49f2f876385.tar.lz cuberite-26caea80d35d4ff2ac3879d5ae6ab49f2f876385.tar.xz cuberite-26caea80d35d4ff2ac3879d5ae6ab49f2f876385.tar.zst cuberite-26caea80d35d4ff2ac3879d5ae6ab49f2f876385.zip |
Diffstat (limited to 'src/ClientAction.h')
-rw-r--r-- | src/ClientAction.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/ClientAction.h b/src/ClientAction.h index 444cf7f3d..d07d9a07b 100644 --- a/src/ClientAction.h +++ b/src/ClientAction.h @@ -1,4 +1,37 @@ +#pragma once + class cClientAction { +public: + enum class Type + { + StatusRequest, + StatusPing, + LoginStart, + LoginConfirmation, + Animation, + LeftClick, + RightClick, + Chat, + SetLocale, + SetViewDistance, + Respawn, + StatsRequest, + Achivement, + CreativeInventory + }; + + cClientAction(Type a_Type) : m_Type(a_Type) {} + + Type GetType() const { return m_Type; } + +private: + Type m_Type; +}; + +class cSimpleAction : public cClientAction +{ +public: + cSimpleAction(Type a_type) : cClientAction(a_type) {} }; |