Added forward declarations (not for library types).
This commit is contained in:
parent
69eca24bd2
commit
17e628b083
14 changed files with 37 additions and 0 deletions
|
@ -19,6 +19,9 @@
|
|||
#include "sprite/Player.h"
|
||||
#include "util/Collection.h"
|
||||
|
||||
class Player;
|
||||
class Collection;
|
||||
|
||||
/*
|
||||
* Use vertex for tiles.
|
||||
*/
|
||||
|
|
|
@ -19,6 +19,8 @@
|
|||
#include "util/Vector.h"
|
||||
#include "abstract/Sprite.h"
|
||||
|
||||
class Sprite;
|
||||
|
||||
class TileManager : public sf::Drawable {
|
||||
// Public constants.
|
||||
public:
|
||||
|
|
|
@ -15,6 +15,8 @@
|
|||
#include "Physical.h"
|
||||
#include "../util/Vector.h"
|
||||
|
||||
class Physical;
|
||||
|
||||
/**
|
||||
* Represents a drawable object.
|
||||
*
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
|
||||
#include "../particle/Particle.h"
|
||||
|
||||
class Particle;
|
||||
|
||||
/**
|
||||
* Bullet particle fired by a weapon, may damage actors.
|
||||
*/
|
||||
|
|
|
@ -13,6 +13,9 @@
|
|||
#include "../abstract/Physical.h"
|
||||
#include "../particle/Emitter.h"
|
||||
|
||||
class Physical;
|
||||
class Emitter;
|
||||
|
||||
/**
|
||||
* Loading mechanism:
|
||||
* - pass enum value and load mapped xml
|
||||
|
|
|
@ -12,6 +12,10 @@
|
|||
#include "../util/Collection.h"
|
||||
#include "Particle.h"
|
||||
|
||||
class Physical;
|
||||
class Collection;
|
||||
class Particle;
|
||||
|
||||
class Emitter {
|
||||
// Public functions.
|
||||
public:
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
|
||||
#include "../abstract/Sprite.h"
|
||||
|
||||
class Sprite;
|
||||
|
||||
/**
|
||||
* Prototype for a particle.
|
||||
*/
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
|
||||
#include "../abstract/Sprite.h"
|
||||
|
||||
class Sprite;
|
||||
|
||||
class Body : public Sprite {
|
||||
// Public functions.
|
||||
public:
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
|
||||
#include "../abstract/Sprite.h"
|
||||
|
||||
class Sprite;
|
||||
|
||||
/**
|
||||
* A wall that can be placed anywhere (not limited by tiles) and have any (rectangular) size.
|
||||
*/
|
||||
|
|
|
@ -13,6 +13,10 @@
|
|||
#include "../util/Collection.h"
|
||||
#include "../util/Vector.h"
|
||||
|
||||
class Actor;
|
||||
class Sprite;
|
||||
class Collection;
|
||||
|
||||
class Enemy : public Sprite, public Actor {
|
||||
// Public functions.
|
||||
public:
|
||||
|
|
|
@ -16,7 +16,9 @@
|
|||
#include "../items/Weapon.h"
|
||||
#include "../util/Vector.h"
|
||||
|
||||
class Actor;
|
||||
class Sprite;
|
||||
class Weapon;
|
||||
|
||||
/**
|
||||
* Player object.
|
||||
|
|
|
@ -15,6 +15,8 @@
|
|||
|
||||
#include "../abstract/Sprite.h"
|
||||
|
||||
class Sprite;
|
||||
|
||||
/**
|
||||
* A collection of sprites, which can be put into different layers.
|
||||
*/
|
||||
|
|
|
@ -18,6 +18,9 @@
|
|||
|
||||
#include "Singleton.h"
|
||||
|
||||
template <class T>
|
||||
class Singleton;
|
||||
|
||||
/**
|
||||
* This class allows to set default resource folders and subfolders, which means that these
|
||||
* folders only have to be set once, and not be included in the creation of every single
|
||||
|
|
|
@ -14,6 +14,10 @@
|
|||
|
||||
#include "Singleton.h"
|
||||
|
||||
template <class T>
|
||||
class Singleton;
|
||||
|
||||
|
||||
/**
|
||||
* Loads and manages all resources by providing Singleton access to Thor ResourceManager.
|
||||
*/
|
||||
|
|
Reference in a new issue