Peoplemon  0.1.0
Peoplemon 3 game source documentation
Public Member Functions | Public Attributes | List of all members
core::file::Behavior::Path::Pace Struct Reference

Represents a straight section of path. More...

#include <Behavior.hpp>

Public Member Functions

 Pace (bl::tmap::Direction dir, std::uint16_t steps)
 Construct a new Pace. More...
 
 Pace ()
 Makes a single step up. More...
 

Public Attributes

bl::tmap::Direction direction
 The direction to walk in. More...
 
std::uint16_t steps
 The number of steps to take. No need to account for direction change. More...
 

Detailed Description

Represents a straight section of path.

Definition at line 72 of file Behavior.hpp.

Constructor & Destructor Documentation

◆ Pace() [1/2]

core::file::Behavior::Path::Pace::Pace ( bl::tmap::Direction  dir,
std::uint16_t  steps 
)

Construct a new Pace.

Parameters
dirThe direction to walk in
stepsThe number of steps to take

Definition at line 139 of file Behavior.cpp.

◆ Pace() [2/2]

core::file::Behavior::Path::Pace::Pace ( )

Makes a single step up.

Definition at line 143 of file Behavior.cpp.

Member Data Documentation

◆ direction

bl::tmap::Direction core::file::Behavior::Path::Pace::direction

The direction to walk in.

Definition at line 74 of file Behavior.hpp.

◆ steps

std::uint16_t core::file::Behavior::Path::Pace::steps

The number of steps to take. No need to account for direction change.

Definition at line 77 of file Behavior.hpp.


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