MCPcopy Create free account
hub / github.com/AbyssEngine/AbyssEngineOld / MapTest

Class MapTest

src/OD2/Scenes/MapTest/MapTest.h:13–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11namespace OD2::Scenes::MapTest {
12
13class MapTest final : public Abyss::Common::Scene {
14 std::vector<std::string> _mapSelections{};
15 std::vector<std::string> _mapAltSelections{};
16 std::string _selectedLevelName{};
17 std::string _selectedLevelAltName{};
18 SDL_Point _mousePressedPosition{0, 0};
19 SDL_Point _startCameraPosition{0, 0};
20 bool _isMouseDragging{false};
21 std::unique_ptr<Abyss::MapEngine::MapEngine> _mapEngine;
22 int _mapWidth;
23
24 void onLevelChanged(const std::string &levelName);
25 static const Common::DataTableRow &getLevelPrest(std::string_view name);
26 static const Common::DataTableRow &getLevelDetails(int levelId);
27 static const Common::DataTableRow &getLevelType(int levelTypeId);
28
29public:
30 MapTest();
31 void update(std::chrono::duration<double> deltaTime) override;
32 void processEvent(const SDL_Event &event) override;
33 void loadTile(const std::string &altName);
34 void render() override;
35};
36
37} // namespace OD2::Scenes::MapTest

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected