Game of Ur 0.3.3
This is a computer adaptation of Game of Ur, written in C++ mainly using SDL and OpenGL.
Loading...
Searching...
No Matches
ur_look_at_board.hpp
Go to the documentation of this file.
1
11
12#ifndef ZOAPPLOOKATBOARD_H
13#define ZOAPPLOOKATBOARD_H
14
15#include <toymaker/engine/sim_system.hpp>
16
22class UrLookAtBoard: public ToyMaker::SimObjectAspect<UrLookAtBoard> {
23public:
24 UrLookAtBoard() : SimObjectAspect<UrLookAtBoard>{0} {}
25 inline static std::string getSimObjectAspectTypeName() { return "UrLookAtBoard"; }
26 static std::shared_ptr<ToyMaker::BaseSimObjectAspect> create(const nlohmann::json& jsonAspectProperties);
27 std::shared_ptr<ToyMaker::BaseSimObjectAspect> clone() const override;
28
29private:
30 glm::vec3 mOffset { 0.f, 1.f, 2.f };
31 void onActivated() override;
32};
33
34
35#endif