#include <mturtle.h>
Inheritance diagram for TurtleState:
Public Methods | |
void | jumpTo (double x, double y) |
void | jumpTo (const Coord2D &pos) |
void | turnBy (double rot) |
void | copy (const TurtleState &o) |
void | operator= (const TurtleState &o) |
Protected Attributes | |
Coord2D | mCoord |
double | mRot |
These are placed in stack by Turtle.
Definition at line 83 of file mturtle.h.
|
Copy operator. * * Copyright (C) 1998-2004 Marko Grönroos <magi@iki.fi> * * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; see the file COPYING.LIB. If * not, write to the Free Software Foundation, Inc., 59 Temple Place *
Definition at line 40 of file mturtle.cc. Referenced by Turtle::drawLSystem(), and operator=(). |
|
Moves to given coordinates.
Definition at line 90 of file mturtle.h. References Coord2D::copy(), and mCoord. |
|
Moves to given coordinates.
Definition at line 88 of file mturtle.h. References mCoord, and Coord2D::moveTo(). Referenced by Turtle::forward(), and Turtle::Turtle(). |
|
Copy operator.
Definition at line 98 of file mturtle.h. References copy(). |
|
Turns the turtle by given amount (in radians).
Definition at line 93 of file mturtle.h. References mRot. Referenced by Turtle::drawLSystem(). |
|
Coordinates.
Definition at line 102 of file mturtle.h. Referenced by copy(), Turtle::drawLSystem(), Turtle::forward(), jumpTo(), and Turtle::operator>>(). |
|
Current rotation angle.
Definition at line 105 of file mturtle.h. Referenced by copy(), Turtle::forward(), Turtle::operator>>(), turnBy(), and Turtle::Turtle(). |