From 0baa521ba34d2cd4e0f732f83d23b807605786a2 Mon Sep 17 00:00:00 2001 From: jbzdarkid Date: Sat, 16 Nov 2019 10:27:06 -0800 Subject: More and more progress. Split out functions in serializer Figured out how to allocate memory (for sequences) --- Source/Puzzle.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'Source/Puzzle.cpp') diff --git a/Source/Puzzle.cpp b/Source/Puzzle.cpp index 72af129..d0ede27 100644 --- a/Source/Puzzle.cpp +++ b/Source/Puzzle.cpp @@ -2,18 +2,17 @@ #include "Memory.h" #include - -inline Cell Puzzle::GetCell(int x, int y) const { +Cell Puzzle::GetCell(int x, int y) const { x = Mod(x); if (!SafeCell(x, y)) return Cell::Undefined(); return grid[x][y]; } -inline Cell::Color Puzzle::GetLine(int x, int y) const { +Cell::Color Puzzle::GetLine(int x, int y) const { return grid[x][y].color; } -inline void Puzzle::NewGrid(int newWidth, int newHeight) { +void Puzzle::NewGrid(int newWidth, int newHeight) { if (newWidth == 0) { assert(false); newWidth = width; @@ -28,12 +27,12 @@ inline void Puzzle::NewGrid(int newWidth, int newHeight) { for (int x=0; x= width) return false; if (y < 0 || y >= height) return false; return true; -- cgit 1.4.1