X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fobject%2Fpath.hpp;h=5ac0fe032b6fef8f23385eca83c4e908b9e131dc;hb=1c148c20eede15d02659203c417d01a9877103de;hp=60812ecfbc847d81d033ebd789bf3913516ddd58;hpb=02288dc76442bd6616a200a2d22c0954d2fc8180;p=supertux.git diff --git a/src/object/path.hpp b/src/object/path.hpp index 60812ecfb..5ac0fe032 100644 --- a/src/object/path.hpp +++ b/src/object/path.hpp @@ -38,6 +38,18 @@ public: Vector get_base() const; + /** + * Helper class that stores an individual node of a Path + */ + class Node + { + public: + Vector position; /**< the position of this node */ + float time; /**< time (in seconds) to get from this node to next node */ + }; + + std::vector nodes; + private: friend class PathWalker; @@ -50,18 +62,6 @@ private: CIRCULAR }; - /** - * Helper class that stores an individual node of a Path - */ - class Node - { - public: - Vector position; /**< the position of this node */ - float time; /**< time (in seconds) to get from this node to next node */ - }; - - std::vector nodes; - WalkMode mode; };