summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-12-28 02:45:05 +0100
committerAki <please@ignore.pl>2022-12-28 02:45:05 +0100
commit8a1f5354f55dce448aac10f79141329950275086 (patch)
treefe44015676f5c544328f60706e46fb0d9bf788e0
parent03009f7d9cd1bc1e996e52603a5cff4374b7910f (diff)
downloadkurator-8a1f5354f55dce448aac10f79141329950275086.zip
kurator-8a1f5354f55dce448aac10f79141329950275086.tar.gz
kurator-8a1f5354f55dce448aac10f79141329950275086.tar.bz2
Renamed Log scene to Summary
-rw-r--r--kurator/CMakeLists.txt2
-rw-r--r--kurator/src/Battle.cpp6
-rw-r--r--kurator/src/Summary.cpp (renamed from kurator/src/Log.cpp)8
-rw-r--r--kurator/src/Summary.h (renamed from kurator/src/Log.h)4
4 files changed, 10 insertions, 10 deletions
diff --git a/kurator/CMakeLists.txt b/kurator/CMakeLists.txt
index 44b6be9..7dc50ef 100644
--- a/kurator/CMakeLists.txt
+++ b/kurator/CMakeLists.txt
@@ -5,12 +5,12 @@ add_executable(
src/Battle.cpp
src/colors.cpp
src/ForceBalance.cpp
- src/Log.cpp
src/main.cpp
src/ScenarioEditor.cpp
src/SceneBuilder.cpp
src/Session.cpp
src/Skybox.cpp
+ src/Summary.cpp
src/Title.cpp
src/Window.cpp
)
diff --git a/kurator/src/Battle.cpp b/kurator/src/Battle.cpp
index 8cced8b..1f30f0a 100644
--- a/kurator/src/Battle.cpp
+++ b/kurator/src/Battle.cpp
@@ -21,7 +21,7 @@
#include "colors.h"
#include "components.h"
-#include "Log.h"
+#include "Summary.h"
#include "Session.h"
@@ -96,7 +96,7 @@ Battle::update(const float dt)
}
ImGui::End();
if (IsKeyPressed(KEY_SPACE))
- session->set(std::make_shared<Log>(session, log));
+ session->set(std::make_shared<Summary>(session, log));
}
@@ -148,7 +148,7 @@ Battle::draw() const
void
Battle::on_end(const sim::End&)
{
- session->set(std::make_shared<Log>(session, log));
+ session->set(std::make_shared<Summary>(session, log));
}
diff --git a/kurator/src/Log.cpp b/kurator/src/Summary.cpp
index 0689176..2ea7c34 100644
--- a/kurator/src/Log.cpp
+++ b/kurator/src/Summary.cpp
@@ -1,4 +1,4 @@
-#include "Log.h"
+#include "Summary.h"
#include <memory>
#include <utility>
@@ -24,7 +24,7 @@ struct Dumper
};
-Log::Log(std::shared_ptr<Session> _session, EventLog _events) :
+Summary::Summary(std::shared_ptr<Session> _session, EventLog _events) :
session {std::move(_session)},
events {std::move(_events)}
{
@@ -32,7 +32,7 @@ Log::Log(std::shared_ptr<Session> _session, EventLog _events) :
void
-Log::update(const float)
+Summary::update(const float)
{
if (IsKeyPressed(KEY_SPACE))
session->pop();
@@ -40,7 +40,7 @@ Log::update(const float)
void
-Log::draw() const
+Summary::draw() const
{
ClearBackground(BLACK);
events.for_each(Dumper{});
diff --git a/kurator/src/Log.h b/kurator/src/Summary.h
index 2fabccf..e4e32f9 100644
--- a/kurator/src/Log.h
+++ b/kurator/src/Summary.h
@@ -11,10 +11,10 @@ namespace kurator
{
-class Log : public Scene
+class Summary : public Scene
{
public:
- Log(std::shared_ptr<Session> _session, EventLog _events);
+ Summary(std::shared_ptr<Session> _session, EventLog _events);
void update(float dt) override;
void draw() const override;
private: