//////////////////////////////////////////////////////////////////////////
//
// This file is part of Iron's source files.
// Iron 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) 2016, Igor Dimitrijevic
//
//////////////////////////////////////////////////////////////////////////


#ifndef ZEALOT_RUSH_H
#define ZEALOT_RUSH_H

#include <BWAPI.h>
#include "strat.h"
#include "../defs.h"
#include "../utils.h"


namespace iron
{

class MyUnit;
	
//////////////////////////////////////////////////////////////////////////////////////////////
//                                                                                          //
//                                  class ZealotRush
//                                                                                          //
//////////////////////////////////////////////////////////////////////////////////////////////
//

class ZealotRush : public Strat
{
public:
									ZealotRush();

	string							Name() const override { return "ZealotRush"; }
	string							StateDescription() const override;

	bool							Detected() const		{ return m_detected; }

	int								MaxMarines() const;
	bool							TechRestartingCondition() const;

private:
	void							OnFrame_v() override;
	bool							Detection() const;
	void							WorkerDefense();

	bool							m_detected = false;
};


} // namespace iron


#endif

