/* 
 * Tactic is the legal property of its developers, whose names are too numerous 
 * to list here.  Please refer to the COPYRIGHT file distributed with this 
 * source distribution. 
 * 
 * This library is free software; you can redistribute it and/or 
 * modify it under the terms of the GNU Lesser General Public 
 * License as published by the Free Software Foundation; either 
 * version 2.1 of the License, or (at your option) any later version. 
 * 
 * This library is distributed in the hope that it will be useful, 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
 * Lesser General Public License for more details. 
 * 
 * You should have received a copy of the GNU Lesser General Public 
 * License along with this library; if not, write to the Free Software 
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA 
 *
 * See README for more informations
 *
 * EnnemyHealthPoint.h
 *
 * This class is the poucentage of the hp of the ennemy group 
 *
 * Date 19/03/06
 *
 */

#ifndef ENNEMY_HEALTH_POINT_H
#define ENNEMY_HEALTH_POINT_H

#include <vector>
#include "FuzzyNumberName.h"
#include "FuzzyNumber.h"
#include "FuzzyValue.h"
#include "GroupEnnemy.h"
#include "HPHigh.h"
#include "HPMiddle.h"
#include "HPLow.h"
#include "DebugAI.h"
#include "Converter.h"

class EnnemyHealthPoint : public FuzzyNumber{

private:

	GroupEnnemy* ennemy;				// the ennemy group considered

	static const int infinite = 0;		// Used if there are no ennemis, their hp are considered very high

public:
	
	/**
	 *Constructor
	 * 
	 *@param void
	 *
	 */
	EnnemyHealthPoint(void);

	/**
	 *Constructor
	 *
	 *@param vect : vector of fuzzyValue to link with NbVisibleUnit
	 *
	 */
	EnnemyHealthPoint(std::vector<FuzzyValue*> vect);

	/**
	 *Constructor
	 * 
	 *@param fv1 : a FuzzyValue
	 *
	 *@param fv2 : a FuzzyValue
	 *
	 *@param fv3 : a FuzzyValue
	 *
	 */
	EnnemyHealthPoint(HPHigh* fv1, HPMiddle* fv2, HPLow* fv3);

	/**
	 *Destructor : Destroy the FuzzyNumber
	 * 
	 *@param void
	 *
	 */
	~EnnemyHealthPoint(void);

	/**
	 *update : refresh the value of the FuzzyNumber
	 * 
	 *@param void
	 *
	 *@return void
	 *
	 */
	void update(void);

	/**
	 *setEnnemy : set the EnnemyManager
	 * 
	 *@param ennemy : the EnnemyManager
	 *
	 *@return void
	 *
	 */
	void setEnnemy(GroupEnnemy* ennemy);

};

#endif