Skip to content

Commit

Permalink
Add project src to include directories.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackbenfu committed Nov 22, 2017
1 parent 2d59b9a commit 811e0d1
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 18 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ include_directories(${PROJECT_SOURCE_DIR}/external/jackbengine/include)
include_directories(${PROJECT_SOURCE_DIR}/external/jackbengine/src)
include_directories(${PROJECT_SOURCE_DIR}/external/jackbengine/external)

include_directories(${PROJECT_SOURCE_DIR}/src)

# Using Resource generator tool
add_executable(
resourceGenerator
Expand Down
1 change: 0 additions & 1 deletion src/app.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

#include "jackbengine.hpp"
#include "scene/menu/menuScene.hpp"
#include "scene/2players/2playersScene.hpp"

using namespace Jackbengine;

Expand Down
4 changes: 2 additions & 2 deletions src/scene/1player/1playerScene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
//

#include "1playerScene.hpp"
#include "../const.hpp"
#include "scene/const.hpp"
#include "state/1playerServiceState.hpp"
#include "state/1playerGameState.hpp"
#include "state/1playerGameOverState.hpp"
#include "../menu/menuScene.hpp"
#include "scene/menu/menuScene.hpp"

IMPORT_TEXT_RESOURCE(one_player_tmx)
IMPORT_BINARY_RESOURCE(tileset_png)
Expand Down
4 changes: 2 additions & 2 deletions src/scene/1player/state/1playerGameOverState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//

#include "1playerGameOverState.hpp"
#include "../../menu/menuScene.hpp"
#include "../../const.hpp"
#include "scene/menu/menuScene.hpp"
#include "scene/const.hpp"

OnePlayerGameOverState::OnePlayerGameOverState(StateMachine& stateMachine, Scene& scene, TmxSceneLoader& sceneLoader)
: SceneState(stateMachine, scene),
Expand Down
2 changes: 1 addition & 1 deletion src/scene/1player/state/1playerGameState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "1playerGameState.hpp"
#include "1playerServiceState.hpp"
#include "1playerGameOverState.hpp"
#include "../../const.hpp"
#include "scene/const.hpp"

OnePlayerGameState::OnePlayerGameState(StateMachine& stateMachine, Scene& scene, TmxSceneLoader& sceneLoader)
: SceneState(stateMachine, scene),
Expand Down
4 changes: 2 additions & 2 deletions src/scene/2players/2playersScene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
//

#include "2playersScene.hpp"
#include "../const.hpp"
#include "scene/const.hpp"
#include "state/2playersServiceState.hpp"
#include "state/2playersGameState.hpp"
#include "state/2playersGameOverState.hpp"
#include "../menu/menuScene.hpp"
#include "scene/menu/menuScene.hpp"

IMPORT_TEXT_RESOURCE(two_players_tmx)
IMPORT_BINARY_RESOURCE(tileset_png)
Expand Down
4 changes: 2 additions & 2 deletions src/scene/2players/state/2playersGameOverState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//

#include "2playersGameOverState.hpp"
#include "../../menu/menuScene.hpp"
#include "../../const.hpp"
#include "scene/menu/menuScene.hpp"
#include "scene/const.hpp"

TwoPlayersGameOverState::TwoPlayersGameOverState(StateMachine& stateMachine, Scene& scene, TmxSceneLoader& sceneLoader)
: SceneState(stateMachine, scene),
Expand Down
2 changes: 1 addition & 1 deletion src/scene/2players/state/2playersGameState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "2playersGameState.hpp"
#include "2playersServiceState.hpp"
#include "2playersGameOverState.hpp"
#include "../../const.hpp"
#include "scene/const.hpp"

TwoPlayersGameState::TwoPlayersGameState(StateMachine& stateMachine, Scene& scene, TmxSceneLoader& sceneLoader)
: SceneState(stateMachine, scene),
Expand Down
6 changes: 3 additions & 3 deletions src/scene/menu/menuScene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
//

#include "menuScene.hpp"
#include "../wall/wallScene.hpp"
#include "../2players/2playersScene.hpp"
#include "../1player/1playerScene.hpp"
#include "scene/wall/wallScene.hpp"
#include "scene/2players/2playersScene.hpp"
#include "scene/1player/1playerScene.hpp"

IMPORT_TEXT_RESOURCE(menu_tmx)
IMPORT_BINARY_RESOURCE(default_font)
Expand Down
2 changes: 1 addition & 1 deletion src/scene/wall/state/wallGameOverState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#include "wallGameOverState.hpp"
#include "../../menu/menuScene.hpp"
#include "scene/menu/menuScene.hpp"

WallGameOverState::WallGameOverState(StateMachine& stateMachine, Scene& scene, TmxSceneLoader& sceneLoader)
: SceneState(stateMachine, scene),
Expand Down
2 changes: 1 addition & 1 deletion src/scene/wall/state/wallGameState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#include "wallGameState.hpp"
#include "../../const.hpp"
#include "scene/const.hpp"
#include "wallGameOverState.hpp"

WallGameState::WallGameState(StateMachine& stateMachine, Scene& scene, TmxSceneLoader& sceneLoader)
Expand Down
4 changes: 2 additions & 2 deletions src/scene/wall/wallScene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
//

#include "wallScene.hpp"
#include "../const.hpp"
#include "scene/const.hpp"
#include "state/wallServiceState.hpp"
#include "state/wallGameState.hpp"
#include "state/wallGameOverState.hpp"
#include "../menu/menuScene.hpp"
#include "scene/menu/menuScene.hpp"

IMPORT_TEXT_RESOURCE(wall_tmx)
IMPORT_BINARY_RESOURCE(tileset_png)
Expand Down

0 comments on commit 811e0d1

Please sign in to comment.