nanoMMO 0.97.8
Building an MMO: The Engineering Series
Loading...
Searching...
No Matches
nanommo::testing Namespace Reference

Classes

class  SilentListener

Functions

ItemTable Sword ()
SkillTable Kick ()
ItemTable Gear ()
SkillTable WithStrike (SkillTable skills)
std::shared_ptr< const Content > With (ItemTable items, SkillTable skills={}, MonsterTable monsters={}, std::map< uint32_t, quests::Quest > quests={})
std::map< uint32_t, quests::Quest > Bones ()
monsters::Kind Skeleton ()
std::unique_ptr< Database > TestDatabase ()
std::unique_ptr< Redis > TestRedis ()
 Redis at NANOMMO_REDIS_HOST, like TestDatabase.
std::string TestName ()

Variables

constexpr uint32_t kStrike = 100

Function Documentation

◆ Bones()

std::map< uint32_t, quests::Quest > nanommo::testing::Bones ( )
inline

The first kind of NPC asks for three of the first kind of monster, for experience and two of the second item.

Definition at line 63 of file test_content.h.

◆ Gear()

ItemTable nanommo::testing::Gear ( )
inline

Definition at line 28 of file test_content.h.

◆ Kick()

SkillTable nanommo::testing::Kick ( )
inline

Definition at line 23 of file test_content.h.

◆ Skeleton()

monsters::Kind nanommo::testing::Skeleton ( )
inline

Definition at line 67 of file test_content.h.

◆ Sword()

ItemTable nanommo::testing::Sword ( )
inline

Definition at line 19 of file test_content.h.

◆ TestDatabase()

std::unique_ptr< Database > nanommo::testing::TestDatabase ( )
inline

MySQL at NANOMMO_MYSQL_HOST, or nullptr if that isn't set. If it's set and we can't connect, the test fails.

Definition at line 23 of file test_services.h.

◆ TestName()

std::string nanommo::testing::TestName ( )
inline

Definition at line 63 of file test_services.h.

◆ TestRedis()

std::unique_ptr< Redis > nanommo::testing::TestRedis ( )
inline

Redis at NANOMMO_REDIS_HOST, like TestDatabase.

Definition at line 38 of file test_services.h.

◆ With()

std::shared_ptr< const Content > nanommo::testing::With ( ItemTable items,
SkillTable skills = {},
MonsterTable monsters = {},
std::map< uint32_t, quests::Quest > quests = {} )
inline

Definition at line 51 of file test_content.h.

◆ WithStrike()

SkillTable nanommo::testing::WithStrike ( SkillTable skills)
inline

Definition at line 39 of file test_content.h.

Variable Documentation

◆ kStrike

uint32_t nanommo::testing::kStrike = 100
inlineconstexpr

Content with these items, skills, monsters and quests, and nothing else, for a World.

Definition at line 35 of file test_content.h.