Zappy Server
C++ game server: world, rules, scheduler, network
Loading...
Searching...
No Matches
Orientation.hpp File Reference
#include <ostream>
+ Include dependency graph for Orientation.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum class  Orientation {
  N , E , S , W ,
  N = 1 , E = 2 , S = 3 , W = 4
}
 Represents the orientation of an object in the game. Orientation mapped to integers as required by the protocol. See G-YEP-400_zappy_GUI_protocol.pdf for details. More...
 

Functions

Orientation turnRight (Orientation o)
 
Orientation turnLeft (Orientation o)
 
std::ostream & operator<< (std::ostream &os, Orientation orientation)
 

Enumeration Type Documentation

◆ Orientation

enum class Orientation
strong

Represents the orientation of an object in the game. Orientation mapped to integers as required by the protocol. See G-YEP-400_zappy_GUI_protocol.pdf for details.

Enumerator

Definition at line 10 of file Orientation.hpp.

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream &  os,
Orientation  orientation 
)
inline

Definition at line 42 of file Orientation.hpp.

◆ turnLeft()

Orientation turnLeft ( Orientation  o)
inline

Definition at line 27 of file Orientation.hpp.

Referenced by CommandDispatcher::_handleLeft().

+ Here is the caller graph for this function:

◆ turnRight()

Orientation turnRight ( Orientation  o)
inline

Definition at line 12 of file Orientation.hpp.

Referenced by CommandDispatcher::_handleRight().

+ Here is the caller graph for this function: