src/supertux/direction.hpp File Reference

#include <iostream>

Go to the source code of this file.

Enumerations

enum  Direction {
  AUTO, LEFT, RIGHT, UP,
  DOWN
}

Functions

std::ostream & operator<< (std::ostream &o, const Direction &dir)


Enumeration Type Documentation

enum Direction

Enumerator:
AUTO 
LEFT 
RIGHT 
UP 
DOWN 

Definition at line 22 of file direction.hpp.

00022 { AUTO, LEFT, RIGHT, UP, DOWN };


Function Documentation

std::ostream& operator<< ( std::ostream &  o,
const Direction dir 
)

Definition at line 19 of file direction.cpp.

References AUTO, DOWN, LEFT, RIGHT, and UP.

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 }


Generated on Mon Jun 9 03:38:26 2014 for SuperTux by  doxygen 1.5.1