diff options
author | Aki <please@ignore.pl> | 2022-11-07 20:46:23 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-11-07 20:46:23 +0100 |
commit | abda6f7c098a0818c0f33a83735515629684cae8 (patch) | |
tree | 0eca147e9be26d0a9cb539e11c21cf10b5674191 | |
parent | f4e80b726ad306a4ea8a5921e0829b7f003f431f (diff) | |
download | kurator-abda6f7c098a0818c0f33a83735515629684cae8.zip kurator-abda6f7c098a0818c0f33a83735515629684cae8.tar.gz kurator-abda6f7c098a0818c0f33a83735515629684cae8.tar.bz2 |
Renamed SkyboxTest to Battle
-rw-r--r-- | kurator/CMakeLists.txt | 2 | ||||
-rw-r--r-- | kurator/src/Battle.cpp (renamed from kurator/src/SkyboxTest.cpp) | 8 | ||||
-rw-r--r-- | kurator/src/Battle.h (renamed from kurator/src/SkyboxTest.h) | 4 | ||||
-rw-r--r-- | kurator/src/Title.cpp | 4 |
4 files changed, 9 insertions, 9 deletions
diff --git a/kurator/CMakeLists.txt b/kurator/CMakeLists.txt index 0aa2712..f506621 100644 --- a/kurator/CMakeLists.txt +++ b/kurator/CMakeLists.txt @@ -1,10 +1,10 @@ project(kurator) add_executable( ${PROJECT_NAME} + src/Battle.cpp src/main.cpp src/Session.cpp src/Skybox.cpp - src/SkyboxTest.cpp src/Title.cpp src/Window.cpp ) diff --git a/kurator/src/SkyboxTest.cpp b/kurator/src/Battle.cpp index 3d8241e..109478d 100644 --- a/kurator/src/SkyboxTest.cpp +++ b/kurator/src/Battle.cpp @@ -1,4 +1,4 @@ -#include "SkyboxTest.h" +#include "Battle.h" #include <memory> #include <utility> @@ -13,7 +13,7 @@ namespace kurator { -SkyboxTest::SkyboxTest(std::shared_ptr<Session> _session) : +Battle::Battle(std::shared_ptr<Session> _session) : session {std::move(_session)}, camera {{1.f, 1.f, 1.f}, {4.f, 1.f, 4.f}, {0.f, 1.f, 0.f}, 45.f, 0}, skybox {"resources/skybox.png"} @@ -23,7 +23,7 @@ SkyboxTest::SkyboxTest(std::shared_ptr<Session> _session) : void -SkyboxTest::update(const float) +Battle::update(const float) { UpdateCamera(&camera); if (IsKeyPressed(KEY_SPACE)) @@ -32,7 +32,7 @@ SkyboxTest::update(const float) void -SkyboxTest::draw() const +Battle::draw() const { ClearBackground(BLACK); BeginMode3D(camera); diff --git a/kurator/src/SkyboxTest.h b/kurator/src/Battle.h index f1ec06b..333f2f3 100644 --- a/kurator/src/SkyboxTest.h +++ b/kurator/src/Battle.h @@ -13,10 +13,10 @@ namespace kurator { -class SkyboxTest : public Scene +class Battle : public Scene { public: - explicit SkyboxTest(std::shared_ptr<Session> _session); + explicit Battle(std::shared_ptr<Session> _session); void update(float dt) override; void draw() const override; private: diff --git a/kurator/src/Title.cpp b/kurator/src/Title.cpp index 1ff5a12..5778ac8 100644 --- a/kurator/src/Title.cpp +++ b/kurator/src/Title.cpp @@ -6,7 +6,7 @@ #include <raylib.h> #include "Session.h" -#include "SkyboxTest.h" +#include "Battle.h" namespace kurator @@ -23,7 +23,7 @@ void Title::update(const float) { if (IsKeyPressed(KEY_SPACE)) - session->set(std::make_shared<SkyboxTest>(session)); + session->set(std::make_shared<Battle>(session)); } |