Zappy GUI
C++ graphic client: renderer, camera, 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

std::ostream & operator<< (std::ostream &os, Orientation orientation)
 
std::string to_string (Orientation orientation)
 
float toAngle (Orientation orientation)
 Returns the Y rotation angle (degrees) for a given 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 12 of file Orientation.hpp.

◆ to_string()

std::string to_string ( Orientation  orientation)
inline

Definition at line 27 of file Orientation.hpp.

◆ toAngle()

float toAngle ( Orientation  orientation)
inline

Returns the Y rotation angle (degrees) for a given orientation.

Note
Specific to the rimuru player model, which faces West at 0°.

Definition at line 46 of file Orientation.hpp.

Referenced by GameState::_applyPlayerNew(), GameState::_applyPlayerPosition(), and TurnBehavior::TurnBehavior().

+ Here is the caller graph for this function: