From e47a98793e58a5dbbe76bfed27e59408e43538e4 Mon Sep 17 00:00:00 2001 From: hnOsmium0001 Date: Fri, 8 Apr 2022 22:30:12 -0700 Subject: More work --- source/Player.hpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'source/Player.hpp') 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 GetKeyStatusArray(); }; +class PlayerVisual { +public: +}; + class Player : public GameObject { public: std::vector 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(); }; -- cgit v1.2.3-70-g09d2