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 "sprite/Player.h"
#include "util/Collection.h" #include "util/Collection.h"
class Player;
class Collection;
/* /*
* Use vertex for tiles. * Use vertex for tiles.
*/ */

View file

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

View file

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

View file

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

View file

@ -13,6 +13,9 @@
#include "../abstract/Physical.h" #include "../abstract/Physical.h"
#include "../particle/Emitter.h" #include "../particle/Emitter.h"
class Physical;
class Emitter;
/** /**
* Loading mechanism: * Loading mechanism:
* - pass enum value and load mapped xml * - pass enum value and load mapped xml

View file

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

View file

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

View file

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

View file

@ -10,6 +10,8 @@
#include "../abstract/Sprite.h" #include "../abstract/Sprite.h"
class Sprite;
/** /**
* A wall that can be placed anywhere (not limited by tiles) and have any (rectangular) size. * 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/Collection.h"
#include "../util/Vector.h" #include "../util/Vector.h"
class Actor;
class Sprite;
class Collection;
class Enemy : public Sprite, public Actor { class Enemy : public Sprite, public Actor {
// Public functions. // Public functions.
public: public:

View file

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

View file

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

View file

@ -18,6 +18,9 @@
#include "Singleton.h" #include "Singleton.h"
template <class T>
class Singleton;
/** /**
* This class allows to set default resource folders and subfolders, which means that these * 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 * 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" #include "Singleton.h"
template <class T>
class Singleton;
/** /**
* Loads and manages all resources by providing Singleton access to Thor ResourceManager. * Loads and manages all resources by providing Singleton access to Thor ResourceManager.
*/ */