nanoMMO 0.97.8
Building an MMO: The Engineering Series
Loading...
Searching...
No Matches
world.h File Reference
#include <chrono>
#include <cstddef>
#include <cstdint>
#include <deque>
#include <functional>
#include <map>
#include <memory>
#include <optional>
#include <random>
#include <set>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "content/content.h"
#include "protocol/messages.h"
#include "protocol/nanommo.pb.h"
#include "server/duels.h"
#include "server/history.h"
#include "server/inventory.h"
#include "server/trades.h"
#include "server/walking.h"
#include "server/wars.h"
#include "terrain/lands.h"
#include "terrain/paths.h"
#include "terrain/terrain.h"

Go to the source code of this file.

Classes

struct  nanommo::Stats
struct  nanommo::Player
struct  nanommo::Monster
struct  nanommo::Npc
struct  nanommo::Notice
struct  nanommo::Event
class  nanommo::World

Namespaces

namespace  nanommo

Enumerations

enum class  nanommo::Motion {
  nanommo::kIdle , nanommo::kWalk , nanommo::kRun , nanommo::kAttack ,
  nanommo::kDead , nanommo::kSkill
}

Functions

Part nanommo::Of (const Npc &npc)
 An NPC, by its kind, for a sentence, with its English name.
int nanommo::MaxHealthOf (const Player &player)
uint32_t nanommo::MainHandOf (const Player &player)
std::vector< uint32_t > nanommo::WornOf (const Player &player)

Variables

constexpr std::chrono::milliseconds nanommo::kPushTime {200}
 How long a blow's push takes, fast at first and slowing, as a shove does.
constexpr float nanommo::kGravity = 14.0f
constexpr float nanommo::kPop = 2.5f
constexpr std::chrono::milliseconds nanommo::kMostInAir {2000}
constexpr std::chrono::milliseconds nanommo::kSteady {2000}