Added forward declarations (not for library types).

This commit is contained in:
Felix Ableitner 2012-09-14 20:39:56 +02:00
parent 69eca24bd2
commit 17e628b083
14 changed files with 37 additions and 0 deletions

View file

@ -19,6 +19,9 @@
#include "sprite/Player.h"
#include "util/Collection.h"
class Player;
class Collection;
/*
* Use vertex for tiles.
*/

View file

@ -19,6 +19,8 @@
#include "util/Vector.h"
#include "abstract/Sprite.h"
class Sprite;
class TileManager : public sf::Drawable {
// Public constants.
public:

View file

@ -15,6 +15,8 @@
#include "Physical.h"
#include "../util/Vector.h"
class Physical;
/**
* Represents a drawable object.
*

View file

@ -10,6 +10,8 @@
#include "../particle/Particle.h"
class Particle;
/**
* Bullet particle fired by a weapon, may damage actors.
*/

View file

@ -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

View file

@ -12,6 +12,10 @@
#include "../util/Collection.h"
#include "Particle.h"
class Physical;
class Collection;
class Particle;
class Emitter {
// Public functions.
public:

View file

@ -10,6 +10,8 @@
#include "../abstract/Sprite.h"
class Sprite;
/**
* Prototype for a particle.
*/

View file

@ -10,6 +10,8 @@
#include "../abstract/Sprite.h"
class Sprite;
class Body : public Sprite {
// Public functions.
public:

View file

@ -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.
*/

View file

@ -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:

View file

@ -16,7 +16,9 @@
#include "../items/Weapon.h"
#include "../util/Vector.h"
class Actor;
class Sprite;
class Weapon;
/**
* Player object.

View file

@ -15,6 +15,8 @@
#include "../abstract/Sprite.h"
class Sprite;
/**
* A collection of sprites, which can be put into different layers.
*/

View file

@ -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

View file

@ -14,6 +14,10 @@
#include "Singleton.h"
template <class T>
class Singleton;
/**
* Loads and manages all resources by providing Singleton access to Thor ResourceManager.
*/