#ifndef COLLISIONKEY_H
#define COLLISIONKEY_H

namespace Salamander
{

/*
** Special object that is used as the key in a map of Collision objects. When created, we store the bodies in
** order of their addresses/pointers. These are then used as the key in the map - keys created with bodies in
** different orders will still end up as a match.
*/

class CollisionKey
{
	public:
		CollisionKey(Body* body1, Body* body2);
		~CollisionKey();

		bool operator < (const CollisionKey& c) const;

		Body* body1_;
		Body* body2_;
	};

}

#endif	// COLLISIONKEY_H