Changed folder structure, moved files.
This commit is contained in:
parent
2be3f13810
commit
bb3ecf637b
28 changed files with 677 additions and 678 deletions
|
@ -9,13 +9,13 @@
|
||||||
|
|
||||||
#include <Thor/Graphics.hpp>
|
#include <Thor/Graphics.hpp>
|
||||||
|
|
||||||
#include "util/Instances.h"
|
|
||||||
#include "abstract/Character.h"
|
#include "abstract/Character.h"
|
||||||
#include "sprite/Cover.h"
|
#include "sprites/Cover.h"
|
||||||
#include "sprite/Enemy.h"
|
#include "sprites/Enemy.h"
|
||||||
|
#include "types/Instances.h"
|
||||||
|
#include "types/String.h"
|
||||||
#include "util/Loader.h"
|
#include "util/Loader.h"
|
||||||
#include "util/ResourceManager.h"
|
#include "util/ResourceManager.h"
|
||||||
#include "util/String.h"
|
|
||||||
|
|
||||||
/// Goal amount of frames per second.
|
/// Goal amount of frames per second.
|
||||||
const int Game::FPS_GOAL = 60;
|
const int Game::FPS_GOAL = 60;
|
||||||
|
|
|
@ -15,11 +15,11 @@
|
||||||
|
|
||||||
#include <Box2D/Box2D.h>
|
#include <Box2D/Box2D.h>
|
||||||
|
|
||||||
#include "Pathfinder.h"
|
#include "sprites/TileManager.h"
|
||||||
#include "TileManager.h"
|
#include "sprites/Player.h"
|
||||||
#include "sprite/Player.h"
|
#include "types/String.h"
|
||||||
#include "util/Collection.h"
|
#include "util/Collection.h"
|
||||||
#include "util/String.h"
|
#include "util/Pathfinder.h"
|
||||||
|
|
||||||
class Player;
|
class Player;
|
||||||
class Collection;
|
class Collection;
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
#include <Thor/Vectors.hpp>
|
#include <Thor/Vectors.hpp>
|
||||||
|
|
||||||
#include "../sprite/Body.h"
|
#include "../sprites/Body.h"
|
||||||
#include "../util/Log.h"
|
#include "../util/Log.h"
|
||||||
|
|
||||||
const String Character::KEY_HEALTH = "health";
|
const String Character::KEY_HEALTH = "health";
|
||||||
|
|
|
@ -12,8 +12,8 @@
|
||||||
|
|
||||||
#include "Sprite.h"
|
#include "Sprite.h"
|
||||||
#include "../items/Weapon.h"
|
#include "../items/Weapon.h"
|
||||||
#include "../util/Instances.h"
|
#include "../types/Instances.h"
|
||||||
#include "../util/String.h"
|
#include "../types/String.h"
|
||||||
#include "../util/Yaml.h"
|
#include "../util/Yaml.h"
|
||||||
|
|
||||||
class Weapon;
|
class Weapon;
|
||||||
|
|
|
@ -10,8 +10,8 @@
|
||||||
|
|
||||||
#include <Box2D/Box2D.h>
|
#include <Box2D/Box2D.h>
|
||||||
|
|
||||||
#include "../util/String.h"
|
#include "../types/String.h"
|
||||||
#include "../util/Vector.h"
|
#include "../types/Vector.h"
|
||||||
#include "../util/Yaml.h"
|
#include "../util/Yaml.h"
|
||||||
|
|
||||||
class Yaml;
|
class Yaml;
|
||||||
|
|
|
@ -13,8 +13,8 @@
|
||||||
#include <Thor/Resources.hpp>
|
#include <Thor/Resources.hpp>
|
||||||
|
|
||||||
#include "Physical.h"
|
#include "Physical.h"
|
||||||
#include "../util/String.h"
|
#include "../types/String.h"
|
||||||
#include "../util/Vector.h"
|
#include "../types/Vector.h"
|
||||||
#include "../util/Yaml.h"
|
#include "../util/Yaml.h"
|
||||||
|
|
||||||
class Physical;
|
class Physical;
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
#define DG_BULLET_H_
|
#define DG_BULLET_H_
|
||||||
|
|
||||||
#include "../particle/Particle.h"
|
#include "../particle/Particle.h"
|
||||||
#include "../util/String.h"
|
#include "../types/String.h"
|
||||||
#include "../util/Yaml.h"
|
#include "../util/Yaml.h"
|
||||||
|
|
||||||
class Particle;
|
class Particle;
|
||||||
|
|
|
@ -10,9 +10,9 @@
|
||||||
|
|
||||||
#include <Thor/Particles.hpp>
|
#include <Thor/Particles.hpp>
|
||||||
|
|
||||||
#include "../util/Instances.h"
|
|
||||||
#include "../abstract/Physical.h"
|
#include "../abstract/Physical.h"
|
||||||
#include "../particle/Emitter.h"
|
#include "../particle/Emitter.h"
|
||||||
|
#include "../types/Instances.h"
|
||||||
#include "../util/Yaml.h"
|
#include "../util/Yaml.h"
|
||||||
|
|
||||||
class Emitter;
|
class Emitter;
|
||||||
|
|
0
source/sprite/Body.cpp → source/sprites/Body.cpp
Executable file → Normal file
0
source/sprite/Body.cpp → source/sprites/Body.cpp
Executable file → Normal file
0
source/sprite/Body.h → source/sprites/Body.h
Executable file → Normal file
0
source/sprite/Body.h → source/sprites/Body.h
Executable file → Normal file
0
source/sprite/Cover.cpp → source/sprites/Cover.cpp
Executable file → Normal file
0
source/sprite/Cover.cpp → source/sprites/Cover.cpp
Executable file → Normal file
0
source/sprite/Cover.h → source/sprites/Cover.h
Executable file → Normal file
0
source/sprite/Cover.h → source/sprites/Cover.h
Executable file → Normal file
|
@ -8,10 +8,10 @@
|
||||||
#ifndef DG_ENEMY_H_
|
#ifndef DG_ENEMY_H_
|
||||||
#define DG_ENEMY_H
|
#define DG_ENEMY_H
|
||||||
|
|
||||||
#include "../util/Instances.h"
|
#include "../types/Instances.h"
|
||||||
#include "../abstract/Character.h"
|
#include "../abstract/Character.h"
|
||||||
#include "../util/Collection.h"
|
#include "../util/Collection.h"
|
||||||
#include "../util/Vector.h"
|
#include "../types/Vector.h"
|
||||||
#include "../util/Yaml.h"
|
#include "../util/Yaml.h"
|
||||||
|
|
||||||
class Character;
|
class Character;
|
|
@ -9,9 +9,9 @@
|
||||||
|
|
||||||
#include <Thor/Vectors.hpp>
|
#include <Thor/Vectors.hpp>
|
||||||
|
|
||||||
#include "../util/Vector.h"
|
|
||||||
#include "../items/Weapon.h"
|
#include "../items/Weapon.h"
|
||||||
#include "../util/String.h"
|
#include "../types/String.h"
|
||||||
|
#include "../types/Vector.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initializes Sprite.
|
* Initializes Sprite.
|
|
@ -11,11 +11,11 @@
|
||||||
#include <SFML/System.hpp>
|
#include <SFML/System.hpp>
|
||||||
#include <SFML/Graphics.hpp>
|
#include <SFML/Graphics.hpp>
|
||||||
|
|
||||||
#include "../util/Instances.h"
|
|
||||||
#include "../Pathfinder.h"
|
|
||||||
#include "../abstract/Character.h"
|
#include "../abstract/Character.h"
|
||||||
#include "../items/Weapon.h"
|
#include "../items/Weapon.h"
|
||||||
#include "../util/Vector.h"
|
#include "../types/Instances.h"
|
||||||
|
#include "../types/Vector.h"
|
||||||
|
#include "../util/Pathfinder.h"
|
||||||
#include "../util/Yaml.h"
|
#include "../util/Yaml.h"
|
||||||
|
|
||||||
class Character;
|
class Character;
|
8
source/TileManager.cpp → source/sprites/TileManager.cpp
Executable file → Normal file
8
source/TileManager.cpp → source/sprites/TileManager.cpp
Executable file → Normal file
|
@ -9,10 +9,10 @@
|
||||||
|
|
||||||
#include <Thor/Resources.hpp>
|
#include <Thor/Resources.hpp>
|
||||||
|
|
||||||
#include "abstract/Sprite.h"
|
#include "../abstract/Sprite.h"
|
||||||
#include "util/Loader.h"
|
#include "../types/String.h"
|
||||||
#include "util/ResourceManager.h"
|
#include "../util/Loader.h"
|
||||||
#include "util/String.h"
|
#include "../util/ResourceManager.h"
|
||||||
|
|
||||||
const Vector2i TileManager::TILE_SIZE = Vector2i(100, 100);
|
const Vector2i TileManager::TILE_SIZE = Vector2i(100, 100);
|
||||||
|
|
6
source/TileManager.h → source/sprites/TileManager.h
Executable file → Normal file
6
source/TileManager.h → source/sprites/TileManager.h
Executable file → Normal file
|
@ -14,9 +14,9 @@
|
||||||
|
|
||||||
#include <Box2D/Box2D.h>
|
#include <Box2D/Box2D.h>
|
||||||
|
|
||||||
#include "util/Vector.h"
|
#include "../abstract/Sprite.h"
|
||||||
#include "abstract/Sprite.h"
|
#include "../types/Vector.h"
|
||||||
#include "util/String.h"
|
#include "../types/String.h"
|
||||||
|
|
||||||
class Sprite;
|
class Sprite;
|
||||||
|
|
|
@ -10,9 +10,9 @@
|
||||||
|
|
||||||
#include <Box2D/Box2D.h>
|
#include <Box2D/Box2D.h>
|
||||||
|
|
||||||
#include "../Pathfinder.h"
|
#include "../sprites/TileManager.h"
|
||||||
#include "../TileManager.h"
|
#include "../util/Collection.h"
|
||||||
#include "Collection.h"
|
#include "../util/Pathfinder.h"
|
||||||
|
|
||||||
class Pathfinder;
|
class Pathfinder;
|
||||||
class TileManager;
|
class TileManager;
|
0
source/util/Vector.h → source/types/Vector.h
Executable file → Normal file
0
source/util/Vector.h → source/types/Vector.h
Executable file → Normal file
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
#include <Thor/Resources.hpp>
|
#include <Thor/Resources.hpp>
|
||||||
|
|
||||||
#include "Singleton.h"
|
#include "../abstract/Singleton.h"
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
class Singleton;
|
class Singleton;
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
#include "Vector.h"
|
#include "../types/Vector.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Logging functions for different levels.
|
* Logging functions for different levels.
|
||||||
|
|
|
@ -23,8 +23,7 @@
|
||||||
#include <boost/graph/filtered_graph.hpp>
|
#include <boost/graph/filtered_graph.hpp>
|
||||||
#include <boost/graph/astar_search.hpp>
|
#include <boost/graph/astar_search.hpp>
|
||||||
|
|
||||||
#include "util/Log.h"
|
#include "../util/Log.h"
|
||||||
#include <typeinfo>
|
|
||||||
|
|
||||||
// Boost interface type declarations.
|
// Boost interface type declarations.
|
||||||
enum class Direction;
|
enum class Direction;
|
|
@ -10,8 +10,8 @@
|
||||||
|
|
||||||
#include <Box2D/Box2D.h>
|
#include <Box2D/Box2D.h>
|
||||||
|
|
||||||
#include "abstract/Physical.h"
|
#include "../abstract/Physical.h"
|
||||||
#include "util/Vector.h"
|
#include "../types/Vector.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Interface class for Boost Graph A* library.
|
* Interface class for Boost Graph A* library.
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
#include <Thor/Resources.hpp>
|
#include <Thor/Resources.hpp>
|
||||||
|
|
||||||
#include "Singleton.h"
|
#include "../abstract/Singleton.h"
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
class Singleton;
|
class Singleton;
|
||||||
|
|
|
@ -12,8 +12,8 @@
|
||||||
|
|
||||||
#include <yaml-cpp/yaml.h>
|
#include <yaml-cpp/yaml.h>
|
||||||
|
|
||||||
#include "String.h"
|
#include "../types/String.h"
|
||||||
#include "Vector.h"
|
#include "../types/Vector.h"
|
||||||
|
|
||||||
namespace details {};
|
namespace details {};
|
||||||
|
|
||||||
|
|
Reference in a new issue