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.
2012-10-04 17:10:12 +00:00
|
|
|
/*
|
|
|
|
* Instances.h
|
|
|
|
*
|
|
|
|
* Created on: 04.10.2012
|
|
|
|
* Author: Felix
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef DG_INSTANCES_H_
|
|
|
|
#define DG_INSTANCES_H_
|
|
|
|
|
|
|
|
#include <Box2D/Box2D.h>
|
|
|
|
|
2012-10-13 11:11:43 +00:00
|
|
|
#include "../Pathfinder.h"
|
|
|
|
#include "../TileManager.h"
|
|
|
|
#include "Collection.h"
|
2012-10-04 17:10:12 +00:00
|
|
|
|
|
|
|
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, b2World& w) :
|
|
|
|
pathfinder(p), tilemanager(t), collection(c), world(w) {};
|
|
|
|
|
|
|
|
Pathfinder& pathfinder;
|
|
|
|
TileManager& tilemanager;
|
|
|
|
Collection& collection;
|
|
|
|
b2World& world;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* DG_INSTANCES_H_ */
|