Peoplemon  0.1.0
Peoplemon 3 game source documentation
Public Member Functions | Public Attributes | List of all members
core::pplmn::WildPeoplemon Struct Reference

Template struct to generate OwnedPeoplemon for random encounters. More...

#include <WildPeoplemon.hpp>

Public Member Functions

OwnedPeoplemon generate () const
 Generate an OwnedPeoplemon from the template. More...
 

Public Attributes

Id id
 The type of peoplemon to generate. More...
 
std::uint8_t minLevel
 The minimum level that may spawn, inclusive. More...
 
std::uint8_t maxLevel
 The maximum level that may spawn, inclusive. More...
 
std::uint16_t frequency
 Frequency of spawns relative to other wild peoplemon in the region. More...
 

Detailed Description

Template struct to generate OwnedPeoplemon for random encounters.

Definition at line 18 of file WildPeoplemon.hpp.

Member Function Documentation

◆ generate()

OwnedPeoplemon core::pplmn::WildPeoplemon::generate ( ) const

Generate an OwnedPeoplemon from the template.

Definition at line 10 of file WildPeoplemon.cpp.

Member Data Documentation

◆ frequency

std::uint16_t core::pplmn::WildPeoplemon::frequency

Frequency of spawns relative to other wild peoplemon in the region.

Definition at line 29 of file WildPeoplemon.hpp.

◆ id

Id core::pplmn::WildPeoplemon::id

The type of peoplemon to generate.

Definition at line 20 of file WildPeoplemon.hpp.

◆ maxLevel

std::uint8_t core::pplmn::WildPeoplemon::maxLevel

The maximum level that may spawn, inclusive.

Definition at line 26 of file WildPeoplemon.hpp.

◆ minLevel

std::uint8_t core::pplmn::WildPeoplemon::minLevel

The minimum level that may spawn, inclusive.

Definition at line 23 of file WildPeoplemon.hpp.


The documentation for this struct was generated from the following files: