X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fdirection.hpp;h=f4df937ead972562ddea17cb3a4fd61d40c7118b;hb=e126dd8c3da286ab759dc36f3f59f3955e16ed09;hp=5ecc417bcffe6acdf6358a76321db7ec24afd9be;hpb=5b7f9214cb929399f1a855ef5807018a9447d510;p=supertux.git diff --git a/src/direction.hpp b/src/direction.hpp index 5ecc417bc..f4df937ea 100644 --- a/src/direction.hpp +++ b/src/direction.hpp @@ -1,8 +1,7 @@ // $Id$ -// +// // SuperTux -// Copyright (C) 2000 Bill Kendrick -// Copyright (C) 2004 Tobias Glaesser +// Copyright (C) 2006 Matthias Braun // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License @@ -13,7 +12,7 @@ // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. -// +// // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA @@ -21,7 +20,10 @@ #ifndef SUPERTUX_DIRECTION_H #define SUPERTUX_DIRECTION_H -enum Direction { LEFT = 0, RIGHT = 1 }; +#include + +enum Direction { AUTO, LEFT, RIGHT, UP, DOWN }; -#endif /*SUPERTUX_DEFINES_H*/ +std::ostream& operator<<(std::ostream& o, const Direction& dir); +#endif