aboutsummaryrefslogtreecommitdiff
path: root/src/world.h
diff options
context:
space:
mode:
authorAdrian Kummerlaender2017-03-26 15:38:58 +0200
committerAdrian Kummerlaender2017-03-26 15:38:58 +0200
commit7e3ea6b0080b2c9127964a096a27369d8cc59c67 (patch)
tree5f69a365fb9d5ebd9f1646ceadc7da75364b083c /src/world.h
parent1266502d8f0e72c135198278fcccf75b519cee44 (diff)
downloadtermlife-7e3ea6b0080b2c9127964a096a27369d8cc59c67.tar
termlife-7e3ea6b0080b2c9127964a096a27369d8cc59c67.tar.gz
termlife-7e3ea6b0080b2c9127964a096a27369d8cc59c67.tar.bz2
termlife-7e3ea6b0080b2c9127964a096a27369d8cc59c67.tar.lz
termlife-7e3ea6b0080b2c9127964a096a27369d8cc59c67.tar.xz
termlife-7e3ea6b0080b2c9127964a096a27369d8cc59c67.tar.zst
termlife-7e3ea6b0080b2c9127964a096a27369d8cc59c67.zip
Rename `TorusArray` to `TorusMatrix` to better fit the represented structure
Diffstat (limited to 'src/world.h')
-rw-r--r--src/world.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/world.h b/src/world.h
index a09eb5a..a7a68a0 100644
--- a/src/world.h
+++ b/src/world.h
@@ -6,7 +6,7 @@
#include <cstdint>
#include "util/box_traverser.h"
-#include "util/torus_array.h"
+#include "util/torus_matrix.h"
namespace life {
@@ -117,9 +117,9 @@ class World {
private:
const util::BoxTraverser area_;
+ util::TorusMatrix<bool, WIDTH, HEIGHT> matrix_;
std::size_t age_{};
std::size_t population_{};
- util::TorusArray<bool, WIDTH, HEIGHT> matrix_;
};