X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fdirection.hpp;h=f4df937ead972562ddea17cb3a4fd61d40c7118b;hb=65d0d1559c7327b38a707adee1b37aa801cd10d5;hp=ac32a21efb1c5ef14d37e6f194fa3ded378bebcb;hpb=7ffe0f4a7fe4ee1d4041a684638d07557676624c;p=supertux.git diff --git a/src/direction.hpp b/src/direction.hpp index ac32a21ef..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,6 +20,10 @@ #ifndef SUPERTUX_DIRECTION_H #define SUPERTUX_DIRECTION_H -enum Direction { LEFT = 0, RIGHT = 1 }; +#include + +enum Direction { AUTO, LEFT, RIGHT, UP, DOWN }; + +std::ostream& operator<<(std::ostream& o, const Direction& dir); #endif