diff options
author | rtk0c <[email protected]> | 2022-04-25 20:22:07 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2022-04-25 20:22:07 -0700 |
commit | 855da86feae1a5cc14dc2d486ccf115f484dbc2e (patch) | |
tree | 8284c6a6bdfb1a919eb1a22f466f4180a329c7f3 /source/Player.hpp | |
parent | d78a55de5003dbb040f1d1c369409e63a2c806d8 (diff) |
Changeset: 16 Initial work on rendering sprites to screen
Diffstat (limited to 'source/Player.hpp')
-rw-r--r-- | source/Player.hpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/source/Player.hpp b/source/Player.hpp index 4ae4f80..d003a25 100644 --- a/source/Player.hpp +++ b/source/Player.hpp @@ -1,7 +1,9 @@ #pragma once #include "GameObject.hpp" -#include "GameObjectTags.hpp" +#include "Material.hpp" +#include "RcPtr.hpp" +#include "Sprite.hpp" #define GLFW_INCLUDE_NONE #include <GLFW/glfw3.h> @@ -24,26 +26,25 @@ struct PlayerKeyBinds { std::span<bool> GetKeyStatusArray(); }; -class PlayerVisual { -public: -}; - class Player : public GameObject { public: std::vector<GLFWkeyboard*> boundKeyboards; PlayerKeyBinds keybinds; - PlayerVisual visuals; + Sprite sprite; + RenderObject renderObject; int mId; public: Player(GameWorld* world, int id); - virtual Tags::GameObjectType GetTypeTag() const override { return Tags::GOT_Player; } - virtual void Awaken() override; virtual void Resleep() override; virtual void Update() override; + Material* GetMaterial() const; + void SetMaterial(Material* material); + virtual std::span<const RenderObject> GetRenderObjects() const override; + int GetId() const { return mId; } void HandleKeyInput(int key, int action); |