//	World3.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 World3_H_
#define World3_H_

#include "World.h"

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

	///	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;};

	///	Called whenever there's a bar start.
	void barStart();
  private:
	///	Called for every draw frame.
	void subclassTick();

	///	The world's ring colours.
	ThreeFloats ringCols[3];

	///	Used to determine when to pulse white.
	int pulseCount;
	///	The white pulse.
	float pulse;

	///	Used to determine when the player has moved the mouse fast.
	TwoFloats lastPos;

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

#endif
