38#pragma region static_functions
58#pragma region overridden_functions
62 return std::make_unique<Scoring>(*
this);
68 auto onUpdate(
float dt) ->
void override;
75 auto save(
Stream& stream)
const ->
void override;
79#pragma region scoring_functions
87auto scoreBoard(
Board& board,
const std::vector<Card*>& cards)
const -> int;
92#pragma region member_variables
96#pragma region helper_functions
100#pragma region static_variables
sys::Json Stream
Definition AudioObject.h:20
Component that is responsible for managing the gameplay board, where cards are placed by Players.
Definition Board.h:38
GameObject(std::string typeName, gobj::Type parentType, gobj::Type type)
constructor for gameobject.
Definition GameObject.cpp:23
Type
Definition System.h:20
@ Scoring
Definition System.h:30
System(const std::string &typeName, Type systemType)
Definition System.cpp:75
auto operator=(Scoring &&other) noexcept -> Scoring &=default
static auto getEnum() -> Type
function required by all systems
Definition Scoring.h:43
Scoring(const Scoring &other)=default
auto scoreBoard(Board &board, const std::vector< Card * > &cards) const -> int
Checks all played cards and gets the hands.
Definition Scoring.cpp:81
Scoring()
Definition Scoring.cpp:34
~Scoring() override=default
auto endWindow() -> void override
currently unused, but intended to but was assumed to be necessary for a proper ImGui editor
Definition Scoring.h:70
auto save(Stream &stream) const -> void override
Implementations will load the state of a GameObject to a th::Json object.
Definition Scoring.cpp:72
auto clone() const -> std::unique_ptr< GameObject > override
makes a copy a GameObject even if it's held polymorphically
Definition Scoring.h:60
auto operator=(const Scoring &other) -> Scoring &
Definition Scoring.cpp:44
auto load(Stream &stream) -> void override
Implementations will load the state of a GameObject from a th::Json Object.
Definition Scoring.cpp:67
auto onRender() -> void override
called every frame after update has been called for every object.
Definition Scoring.cpp:63
auto showMenu() -> void override
Called before update each frame, for calling ImGui editor code relevant to the gameObject.
Definition Scoring.h:65
auto onUpdate(float dt) -> void override
called once every frame.
Definition Scoring.cpp:58
the type of elements in a basic_json container
Definition GameObject.h:32