//////////////////////////////////////////////////////////////////////////
//
// This file is part of the BWEM Library.
// BWEM is free software, licensed under the MIT/X11 License. 
// A copy of the license is provided with the library in the LICENSE file.
// Copyright (c) 2015, 2017, Igor Dimitrijevic
//
//////////////////////////////////////////////////////////////////////////


#pragma once

#include <BWAPI.h>

class BMP;
namespace BWEM {
class Map;
namespace utils {



//////////////////////////////////////////////////////////////////////////////////////////////
//                                                                                          //
//                                  class MapDrawer
//                                                                                          //
//////////////////////////////////////////////////////////////////////////////////////////////
//


class MapDrawer
{
public:

	static bool ProcessCommand(const std::string & command);

	static bool		showSeas;
	static bool		showLakes;
	static bool		showUnbuildable;
	static bool		showGroundHeight;
	static bool		showMinerals;
	static bool		showGeysers;
	static bool		showStaticBuildings;
	static bool		showBases;
	static bool		showAssignedRessources;
	static bool		showFrontier;
	static bool		showCP;

	struct Color
	{
		static const BWAPI::Color	sea;
		static const BWAPI::Color	lakes;
		static const BWAPI::Color	unbuildable;
		static const BWAPI::Color	highGround;
		static const BWAPI::Color	veryHighGround;
		static const BWAPI::Color	minerals;
		static const BWAPI::Color	geysers;
		static const BWAPI::Color	staticBuildings;
		static const BWAPI::Color	bases;
		static const BWAPI::Color	assignedRessources;
		static const BWAPI::Color	frontier;
		static const BWAPI::Color	cp;
	};

private:
	static bool ProcessCommandVariants(const std::string & command, const std::string & attributName, bool & attribut);
};


}} // namespace BWEM::detail::detail
