
#pragma once
#ifndef GROUPCONTAINER_HPP
#define GROUPCONTAINER_HPP

#include "Group.hpp"
#pragma warning (push)
#include <stlport\map>
#pragma warning (pop)


namespace MechWarrior4
{
	class MWObject;

	class GroupContainer
	{
	  public:
		void AddObjectToGroup(MWObject& object, Group::identifier group);
		void RemoveObjectFromGroup(MWObject& object, Group::identifier group);

		const Group& GetGroup(Group::identifier group) const;
		Group& GetGroup(Group::identifier group);

		bool GroupExists(Group::identifier group) const;

	  private:
		typedef std::map<Group::identifier,Group> groups_container;
		groups_container m_groups;
	};
};



#endif // GROUPCONTAINER_HPP
