nanoMMO 0.97.8
Building an MMO: The Engineering Series
Loading...
Searching...
No Matches
lands.h File Reference
#include <array>
#include <cstdint>
#include <string_view>
#include "terrain/terrain.h"

Go to the source code of this file.

Classes

struct  nanommo::Place
 In metres from the middle of a land. More...
struct  nanommo::Land
struct  nanommo::Gate
 A ring of stones in a land, which takes players to another. More...

Namespaces

namespace  nanommo

Functions

constexpr bool nanommo::GatesLeadBack ()
int nanommo::LandNamed (std::string_view name)
 Its place in the list, or the first land's for a name that isn't there.
bool nanommo::IsLand (std::string_view name)
bool nanommo::InGate (const Gate &gate, float x, float z)
const Gate & nanommo::Twin (const Gate &gate)
 The gate in the land this one takes you to, which leads back.
const Gate & nanommo::WayOut (int dungeon)
 The dungeon's way out: its first gate.
Place nanommo::Arrival (const Gate &gate, float yaw)

Variables

constexpr std::array< Land, 3 > nanommo::kLands
constexpr std::array< Gate, 4 > nanommo::kGates
constexpr float nanommo::kGateRadius = 1.0f
 In metres from the middle of a gate.
constexpr float nanommo::kArrival = 3.0f
 Past the edge of a gate, so that players don't arrive inside it.