//	SlowTone.h - The slow tone type.
//  ----------------------------------------------------------------------------
//	This file is part of 'GameTemplate', template code for a game.
//	Copyright (C) 2011  Niall Moody
//	
//	This program is free software: you can redistribute it and/or modify
//	it under the terms of the GNU General Public License as published by
//	the Free Software Foundation, either version 3 of the License, or
//	(at your option) any later version.
//
//	This program 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 General Public License for more details.
//
//	You should have received a copy of the GNU General Public License
//	along with this program.  If not, see <http://www.gnu.org/licenses/>.
//	----------------------------------------------------------------------------

#ifndef SLOWTONE_H_
#define SLOWTONE_H_

#include "../ToneCreator.h"
#include "DebugHeaders.h"

//------------------------------------------------------------------------------
///	The slow tone type.
class SlowTone : public Tone
{
  public:
	///	Constructor.
	SlowTone(int startRail, int startNumRails, TonesSounderPtr& sound);
	///	Destructor.
	~SlowTone();

	///	Returns the name of this tone type.
	std::wstring getName() const {return L"SlowTone";};
	///	Returns the score you get if this tone makes it to the opposite side of the screen.
	int getScore() const {return 20;};
};

//------------------------------------------------------------------------------
///	The slow tone type ToneCreator.
class SlowCreator : public ToneCreator
{
  public:
	///	Constructor.
	SlowCreator() {};
	///	Destructor.
	~SlowCreator() {};

	///	Constructs this Creator's Tone, returns its pointer.
	TonePtr createTone(int startRail,
					   int startNumRails,
					   TonesSounderPtr& sounder) const
	{
		return TonePtr(NiallNew SlowTone(startRail,
										 startNumRails,
										 sounder));
	};

	///	Returns which side of the screen this Tone should start from.
	bool getStartingSide() const {return true;};
	///	Used to make sure the player isn't put in an unfair position.
	int getMinDistanceToOtherTones() const {return 150;};
	///	Used to make sure the player isn't put in an unfair position.
	int getMaxNumOtherTones(const std::wstring& toneType) const {return -1;};
	///	Used to make sure the player isn't put in an unfair position.
	int getMaxNumWarnings() const {return -1;};
};

#endif
