diff options
Diffstat (limited to 'source/Player.hpp')
-rw-r--r-- | source/Player.hpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/source/Player.hpp b/source/Player.hpp index 1ed30cd..db8be33 100644 --- a/source/Player.hpp +++ b/source/Player.hpp @@ -24,13 +24,19 @@ struct PlayerKeyBinds { std::span<bool> GetKeyStatusArray(); }; +class PlayerVisual { +public: +}; + class Player : public GameObject { public: std::vector<GLFWkeyboard*> boundKeyboards; PlayerKeyBinds keybinds; + PlayerVisual visuals; + int mId; public: - using GameObject::GameObject; + Player(GameWorld* world, int id); virtual Tags::GameObjectType GetTypeTag() const override { return Tags::GOT_Player; } @@ -38,5 +44,11 @@ public: virtual void Resleep() override; virtual void Update() override; + int GetId() const { return mId; } + void HandleKeyInput(int key, int action); + + // File is designated by player ID + bool LoadFromFile(); + bool SaveToFile(); }; |