#include "supertux/direction.hpp"
Go to the source code of this file.
Functions | |
std::ostream & | operator<< (std::ostream &o, const Direction &dir) |
std::ostream& operator<< | ( | std::ostream & | o, | |
const Direction & | dir | |||
) |
Definition at line 19 of file direction.cpp.
00020 { 00021 switch (dir) 00022 { 00023 case AUTO: 00024 o << "auto"; 00025 break; 00026 case LEFT: 00027 o << "left"; 00028 break; 00029 case RIGHT: 00030 o << "right"; 00031 break; 00032 case UP: 00033 o << "up"; 00034 break; 00035 case DOWN: 00036 o << "down"; 00037 break; 00038 } 00039 00040 return o; 00041 }