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

#include <world.h>

Public Attributes

int damage = 0
int health = 0
int armour = 0
const items::Weapon * weapon = nullptr
 The weapon in the player's main hand, from the content, or nullptr.

Detailed Description

What a player's worn items add up to, worked out as what they wear changes, so that a fight doesn't add it up for each blow.

Definition at line 40 of file world.h.

Member Data Documentation

◆ armour

int nanommo::Stats::armour = 0

Definition at line 43 of file world.h.

◆ damage

int nanommo::Stats::damage = 0

Definition at line 41 of file world.h.

◆ health

int nanommo::Stats::health = 0

Definition at line 42 of file world.h.

◆ weapon

const items::Weapon* nanommo::Stats::weapon = nullptr

The weapon in the player's main hand, from the content, or nullptr.

Definition at line 45 of file world.h.


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