Cytopia  0.3
A city building simulation game
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Map.cxx File Reference
#include "Map.hxx"
#include "basics/Camera.hxx"
#include "basics/isoMath.hxx"
#include "basics/mapEdit.hxx"
#include "basics/Settings.hxx"
#include "LOG.hxx"
#include "common/Constants.hxx"
#include "map/MapLayers.hxx"
#include "common/JsonSerialization.hxx"
#include "Filesystem.hxx"
#include "../services/Randomizer.hxx"
#include "json.hxx"
#include <sstream>
#include <string>
#include <set>
#include <queue>
+ Include dependency graph for Map.cxx:

Go to the source code of this file.

Typedefs

using json = nlohmann::json
 

Functions

NeighborNodesPosition operator++ (NeighborNodesPosition &nn, int)
 

Typedef Documentation

◆ json

using json = nlohmann::json

Definition at line 26 of file Map.cxx.

Function Documentation

◆ operator++()

NeighborNodesPosition operator++ ( NeighborNodesPosition &  nn,
int   
)

Definition at line 28 of file Map.cxx.

29 {
30  NeighborNodesPosition res = nn;
31 
32  switch (nn)
33  {
34  case NeighborNodesPosition::BOTTOM_LEFT:
35  nn = NeighborNodesPosition::LEFT;
36  break;
37  case NeighborNodesPosition::LEFT:
38  nn = NeighborNodesPosition::TOP_LEFT;
39  break;
40  case NeighborNodesPosition::TOP_LEFT:
41  nn = NeighborNodesPosition::BOTTOM;
42  break;
43  case NeighborNodesPosition::BOTTOM:
44  nn = NeighborNodesPosition::CENTER;
45  break;
46  case NeighborNodesPosition::CENTER:
47  nn = NeighborNodesPosition::TOP;
48  break;
49  case NeighborNodesPosition::TOP:
50  nn = NeighborNodesPosition::BOTTOM_RIGHT;
51  break;
52  case NeighborNodesPosition::BOTTOM_RIGHT:
53  nn = NeighborNodesPosition::RIGHT;
54  break;
55  case NeighborNodesPosition::RIGHT:
56  nn = NeighborNodesPosition::TOP_RIGHT;
57  break;
58  case NeighborNodesPosition::TOP_RIGHT:
59  nn = NeighborNodesPosition::BOTTOM_LEFT;
60  break;
61  default:
62  assert(false);
63  break;
64  }
65 
66  return res;
67 }