Skip to content

Commit

Permalink
reorganize numeric sources
Browse files Browse the repository at this point in the history
  • Loading branch information
evanbowman committed Aug 9, 2019
1 parent 29ab2ee commit aa46c51
Show file tree
Hide file tree
Showing 22 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions build/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ add_executable(BlindJump
${SOURCE_DIR}/entity/enemies/probe.cpp
${SOURCE_DIR}/entity/details/item.cpp
${SOURCE_DIR}/graphics/sprite.cpp
${SOURCE_DIR}/number/numeric.cpp
${SOURCE_DIR}/number/random.cpp
${SOURCE_DIR}/graphics/view.cpp
${SOURCE_DIR}/entity/entity.cpp
${SOURCE_DIR}/entity/player.cpp
Expand All @@ -46,9 +48,7 @@ add_executable(BlindJump
${SOURCE_DIR}/collision.cpp
${SOURCE_DIR}/easterEgg.cpp
${SOURCE_DIR}/tileMap.cpp
${SOURCE_DIR}/numeric.cpp
${SOURCE_DIR}/camera.cpp
${SOURCE_DIR}/random.cpp
${SOURCE_DIR}/start.cpp
${SOURCE_DIR}/game.cpp
${BLINDJUMP_PLATFORM_SOURCE})
Expand Down
2 changes: 1 addition & 1 deletion source/camera.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include "entity/entity.hpp"
#include "numeric.hpp"
#include "number/numeric.hpp"

class Platform;

Expand Down
2 changes: 1 addition & 1 deletion source/entity/details/item.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "item.hpp"
#include "platform/platform.hpp"
#include "random.hpp"
#include "number/random.hpp"


Item::Item(const Vec2<Float>& pos, Platform&, Type type)
Expand Down
2 changes: 1 addition & 1 deletion source/entity/enemies/critter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include "collision.hpp"
#include "entity/entity.hpp"
#include "numeric.hpp"
#include "number/numeric.hpp"


class Game;
Expand Down
2 changes: 1 addition & 1 deletion source/entity/enemies/dasher.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "dasher.hpp"
#include "game.hpp"
#include "random.hpp"
#include "number/random.hpp"


Dasher::Dasher(const Vec2<Float>& position)
Expand Down
2 changes: 1 addition & 1 deletion source/entity/player.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "graphics/animation.hpp"
#include "collision.hpp"
#include "entity.hpp"
#include "numeric.hpp"
#include "number/numeric.hpp"


class Game;
Expand Down
2 changes: 1 addition & 1 deletion source/game.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "game.hpp"
#include "macros.hpp"
#include "random.hpp"
#include "number/random.hpp"
#include <algorithm>
#include <iterator>
#include <type_traits>
Expand Down
2 changes: 1 addition & 1 deletion source/graphics/animation.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "numeric.hpp"
#include "number/numeric.hpp"
#include "sprite.hpp"


Expand Down
2 changes: 1 addition & 1 deletion source/graphics/color.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "numeric.hpp"
#include "number/numeric.hpp"


// Color representation is often platform specific, e.g., OpenGL uses
Expand Down
2 changes: 1 addition & 1 deletion source/graphics/sprite.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include "color.hpp"
#include "numeric.hpp"
#include "number/numeric.hpp"


using TextureIndex = u32;
Expand Down
2 changes: 1 addition & 1 deletion source/graphics/view.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "numeric.hpp"
#include "number/numeric.hpp"


class View {
Expand Down
2 changes: 1 addition & 1 deletion source/memory/buffer.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include "macros.hpp"
#include "numeric.hpp"
#include "number/numeric.hpp"
#include <array>
#include <new>

Expand Down
2 changes: 1 addition & 1 deletion source/memory/pool.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include <array>
#include "numeric.hpp"
#include "number/numeric.hpp"
#include <new>


Expand Down
2 changes: 1 addition & 1 deletion source/memory/rc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include <optional>
#include "pool.hpp"
#include "numeric.hpp"
#include "number/numeric.hpp"


// This program targets embedded systems, and intentionally doesn't
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion source/platform/gba_platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#include "macros.hpp"
#include "platform.hpp"
#include "random.hpp"
#include "number/random.hpp"
#include <string.h>


Expand Down
2 changes: 1 addition & 1 deletion source/platform/platform.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "numeric.hpp"
#include "number/numeric.hpp"
#include "save.hpp"
#include "graphics/sprite.hpp"
#include "graphics/view.hpp"
Expand Down
2 changes: 1 addition & 1 deletion source/save.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once


#include "numeric.hpp"
#include "number/numeric.hpp"


struct SaveData {
Expand Down
2 changes: 1 addition & 1 deletion source/tileMap.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "numeric.hpp"
#include "number/numeric.hpp"
#include <array>


Expand Down

0 comments on commit aa46c51

Please sign in to comment.