Zappy GUI
C++ graphic client: renderer, camera, network
Loading...
Searching...
No Matches
ARenderer.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <optional>
4
5#include "IRenderer.hpp"
6
11class ARenderer : public IRenderer {
12 public:
13 void setState(const GameState& state) override final { _state = &state; }
14 void setDevMode(bool, int, const std::string&) override {}
15 std::optional<int> getPendingSpeedChange() override { return std::nullopt; }
16
17 protected:
18 const GameState* _state = nullptr;
19};
Abstract base class for renderers. Provides common default implementations so concrete renderers only...
Definition ARenderer.hpp:11
void setState(const GameState &state) override final
Definition ARenderer.hpp:13
void setDevMode(bool, int, const std::string &) override
Definition ARenderer.hpp:14
std::optional< int > getPendingSpeedChange() override
Definition ARenderer.hpp:15
const GameState * _state
Definition ARenderer.hpp:18
Represents the current state of the game. Knows the world state, some metadata, and how to apply even...
Definition GameState.hpp:15
Pure interface for rendering the game state.
Definition IRenderer.hpp:11