//	World2.h - One of the worlds.
//  ----------------------------------------------------------------------------
//	This file is part of 'NiallsAVLib', base code for any kind of audiovisual
//	apps.
//	Copyright (C) 2012  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 World2_H_
#define World2_H_

#include "World.h"
#include "CircleDetector.h"

///	One of the worlds.
class World2 : public World
{
  public:
	///	Constructor.
	World2();
	///	Destructor.
	~World2();

	///	Handles mouse input for this world.
	void mouseMove(const TwoFloats& pos);
	///	Returns true when it's time to move to the next world.
	bool worldDone() {return done;};
  private:
	///	Called for every draw frame.
	void subclassTick();

	///	Used to detect when the player's drawn a circle.
	CircleDetector detector;

	///	True when the player's solved the puzzle.
	bool done;
};

#endif
