/* 
 * 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
 *
 * Fresh.h
 *
 * This class is represent the difference in number between the current ally group
 * and the closest ennemy.
 *
 * Date 18/03/06
 *
 */

#ifndef FRESH_H
#define FRESH_H

#include <vector>
#include "FuzzyNumberName.h"
#include "FuzzyNumber.h"
#include "FuzzyValue.h"
#include "Point2D.h"
#include "GroundArmyInfo.h"
#include "DebugAI.h"
#include "Converter.h"

// Foward declaration

class FreshZone;
class OutDatedZone;

class Fresh : public FuzzyNumber{

private:

	Point2D pt2d;								// The position of the group
	ground::GroundArmyInfo* infoGround;			// the InfoGround give the average of the age of the closed zone

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

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

	/**
	 *Constructor
	 * 
	 *@param fv1 : a FuzzyValue
	 *
	 *@param fv2 : a FuzzyValue
	 *
	 */
	Fresh(FreshZone* fv1, OutDatedZone* fv2);

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

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

	/**
	 *setInfoGround : set the attribute InfoGround
	 * 
	 *@param infoG : a pointer to the infoground which have the information 
	 *concerning the map
	 *
	 *@return void
	 *
	 */
	void setInfoGround(ground::GroundArmyInfo* infoG);

	/**
	 *setAlly : set the GroupAI
	 * 
	 *@param ennemy : the GroupAI concerned
	 *
	 *@return void
	 *
	 */
	void setPt2D(Point2D pt2d);

};

#endif