// @topic T01040 FLTK Graphics
// @brief Turtle Animation Demo (Or <a href="http://www.c-jump.com/bcc/c255c/c255samples/Graphics/turtles_v1.7z">download</a> the entire project.)

#include "txtbook/Simple_window.h"
#include "txtbook/Graph.h"

const double ANIMATION_TIMEOUT = 0.1; // 100 ms

#include "turtles.h"

using namespace Graph_lib;

int main()
{
    Point tl( 100, 100 );
    Simple_window win( tl, 600, 600, "Moving Turtles" );
    Turtle lora( win, Point( 50, 50 ) );
    Turtle bora( win, Point( 50, 150 ) );
    Turtle mora( win, Point( 50, 250 ) );
    Turtle nora( win, Point( 50, 350 ) );
    lora.go( 20 );
    bora.go( 50 );
    mora.go( 75 );
    nora.go( 200 );
    win.wait_for_button();
    return 0;
}