indiantarget / quimeraengine

0 stars 0 forks source link

Add GetNext and GetPrevious to QNTree #632

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Adding GetNext and GetPrevious to QNTree allows to get the previous and the 
next brother node of a given node in the tree. This is not so practical unless 
you want to use your own traversing algorithm.

QNTreeIterator GetNext(QNTreeIterator) const;
QNTreeIterator GetPrevious(QNTreeIterator) const;

If there is no next or previous node, the iterator points to the end position.
Input node cannot point to the end position.

Original issue reported on code.google.com by Lince3D@gmail.com on 15 Nov 2014 at 9:22

GoogleCodeExporter commented 9 years ago

Original comment by Lince3D@gmail.com on 9 Feb 2015 at 6:30