vrecko
virtual reality framework
|
#include <turtlestack.h>
Public Member Functions | |
TurtleStack (void) | |
~TurtleStack (void) | |
int | pop () |
int | push () |
int | push (LSGeode *geode) |
AbstractTurtle * | top () |
void | clear () |
Specialized stack for turtle processing.
TurtleStack::TurtleStack | ( | void | ) |
TurtleStack::~TurtleStack | ( | void | ) |
void TurtleStack::clear | ( | void | ) |
Removes all turtles
int TurtleStack::pop | ( | ) |
Pops a turtle on the top of the stack.
int TurtleStack::push | ( | ) |
Adds turtle on the top of the stack. The turtle will have same type as current turtle on the top of the stack. Turtle is also binded with the same LSGeode.
int TurtleStack::push | ( | LSGeode * | geode | ) |
AbstractTurtle * TurtleStack::top | ( | ) |
Get turtle from the top of the stack.