This repository has been archived on 2019-12-07. You can view files and clone it, but cannot push or open issues or pull requests.
dungeon-gunner/source/types/Instances.h
2012-12-22 01:14:30 +01:00

35 lines
698 B
C++

/*
* Instances.h
*
* Created on: 04.10.2012
* Author: Felix
*/
#ifndef DG_INSTANCES_H_
#define DG_INSTANCES_H_
#include "../World.h"
#include "../sprites/TileManager.h"
#include "../util/Collection.h"
#include "../util/Pathfinder.h"
class World;
class Pathfinder;
class TileManager;
class Collection;
/**
* POD class that holds instances of major classes used by other objects.
*/
struct Instances {
Instances() = default;
Instances(Pathfinder& p, TileManager& t, Collection& c, World& w) :
pathfinder(p), tilemanager(t), collection(c), world(w) {};
Pathfinder& pathfinder;
TileManager& tilemanager;
Collection& collection;
World& world;
};
#endif /* DG_INSTANCES_H_ */