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

#include <animator.h>

Public Member Functions

 Animator (Content content=Content())
std::vector< Figure > Update (const protocol::World &world, float seconds)

Static Public Attributes

static constexpr float kBlendTime = 0.25f
static constexpr float kFollowRate = 15.0f
static constexpr float kTurnRate = 4.0f * std::numbers::pi_v<float>

Detailed Description

Definition at line 97 of file animator.h.

Constructor & Destructor Documentation

◆ Animator()

nanommo::Animator::Animator ( Content content = Content())
inlineexplicit

Monsters and NPCs come by kind, so the animator looks up their names, in the player's language, and their looks in the content.

Definition at line 101 of file animator.h.

Member Function Documentation

◆ Update()

std::vector< Figure > nanommo::Animator::Update ( const protocol::World & world,
float seconds )

Definition at line 150 of file animator.cc.

Member Data Documentation

◆ kBlendTime

float nanommo::Animator::kBlendTime = 0.25f
staticconstexpr

Definition at line 104 of file animator.h.

◆ kFollowRate

float nanommo::Animator::kFollowRate = 15.0f
staticconstexpr

For a monster's lift: the share of the gap still left after a second is e to the minus this.

Definition at line 108 of file animator.h.

◆ kTurnRate

float nanommo::Animator::kTurnRate = 4.0f * std::numbers::pi_v<float>
staticconstexpr

Definition at line 110 of file animator.h.


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