//	Turtle.h#ifndef TURTLE_H#define TURTLE_H#include "PixelMap.h"class Turtle{public:	Turtle() :	itsPixelMap(0), itsX(0), itsY(0), itsAngle(0), itsWidth(1),				itsHeight(1), itsColor(1) {}		void Move( const int pDX, const int pDY )	{	itsX += pDX; itsY += pDY;	}		void MoveTo( const int pX, const int pY )	{	itsX = pX; itsY = pY;	}	void Move( const int pDist );		void Dot()	{	if (itsPixelMap) itsPixelMap->SetPixel( 			(int)itsX, (int)itsY, itsColor );	}		void Line( const int pDX, const int pDY );		void LineTo( const int pX, const int pY )	{	Line( (int)(pX-itsX), (int)(pY-itsY) );	}	void Line( const int pDist );	void VLine( const int pY1, const int pY2, const int pX );	void HLine( const int pX1, const int pX2, const int pY );		// attributes (OK for users to view/modify these):	double	itsX, itsY;				// position	double	itsAngle;				// orientation (in degrees)	int		itsWidth, itsHeight;	// shape of its "tail" (pen)	int		itsColor;				// color it draws in		// pixel map to which this turtle is attached:	PixelMap *itsPixelMap;};#endif
