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/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
An object containing closely related methods and data, and exposing object lifecycle and application ...
Definition sim_system.hpp:956
void onActivated() override
Callback for when the aspect is activated (after it is attached to an active SimObject,...
Definition ur_look_at_board.cpp:19
std::shared_ptr< ToyMaker::BaseSimObjectAspect > clone() const override
A method which must be overridden to specify how a new aspect should be constructed as a copy of this...
Definition ur_look_at_board.cpp:13