4 // Copyright (C) 2005 Philipp <balinor@pnxs.de>
5 // Copyright (C) 2006 Christoph Sommer <christoph.sommer@2006.expires.deltadevelopment.de>
6 // Copyright (C) 2006 Matthias Braun <matze@braunis.de>
8 // This program is free software; you can redistribute it and/or
9 // modify it under the terms of the GNU General Public License
10 // as published by the Free Software Foundation; either version 2
11 // of the License, or (at your option) any later version.
13 // This program is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 // GNU General Public License for more details.
18 // You should have received a copy of the GNU General Public License
19 // along with this program; if not, write to the Free Software
20 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
26 #include "math/vector.hpp"
27 #include "lisp/lisp.hpp"
28 #include "serializable.hpp"
30 class Path : public Serializable
36 void read(const lisp::Lisp& reader);
37 void write(lisp::Writer& writer);
39 Vector get_base() const;
42 * Helper class that stores an individual node of a Path
47 Vector position; /**< the position of this node */
48 float time; /**< time (in seconds) to get from this node to next node */
51 std::vector<Node> nodes;
54 friend class PathWalker;
57 // moves from first to last path node and stops
59 // moves from first to last node then in reverse order back to first
61 // moves from last node back to the first node