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

#include <animator.h>

Public Attributes

uint32_t id = 0
std::string name
std::string guild
 A player's guild, by its name, or empty.
uint32_t faction = 0
Color faction_color = BLANK
bool you = false
bool monster = false
bool npc = false
uint32_t kind = 0
 A monster's or an NPC's kind, by its id in the content folder.
Color color = WHITE
 A monster's tint, or the colour of what an NPC wears that's dyed.
std::optional< Features > features
bool talks = false
 Whether the player can talk to it, by clicking it.
std::vector< uint32_t > teaches
 The skills an NPC teaches, by their ids, when it's a trainer.
std::vector< uint32_t > quests
 The quests an NPC gives, by their ids in the quests file.
char mark = 0
int level = 1
int health = 0
int max_health = 0
uint32_t phase = 0
 A boss's phase, from one, or 0 for any other monster.
float height = 0.0f
 A monster's height, in metres, from its kind's look.
uint32_t weapon = 0
 What a player holds, by its id in the items file.
std::vector< uint32_t > wearing
 What else a player wears, by its ids in the items file.
uint32_t target = 0
uint32_t target_player = 0
Vector3 position {0.0f, 0.0f, 0.0f}
float yaw = 0.0f
float lift = 0.0f
 How high a blow's thrown it, in metres off the ground.
float lean = 0.0f
float lean_yaw = 0.0f
float flash = 0.0f
 How lit up it is from a blow just landed, from 0 to 1.
protocol::Motion from = protocol::MOTION_IDLE
uint32_t from_skill = 0
 While a motion is a skill's, which skill, by its id in the skills file.
float from_time = 0.0f
protocol::Motion to = protocol::MOTION_IDLE
uint32_t to_skill = 0
uint32_t casts = 0
float to_time = 0.0f
float blend = 1.0f

Detailed Description

Definition at line 20 of file animator.h.

Member Data Documentation

◆ blend

float nanommo::Figure::blend = 1.0f

Definition at line 83 of file animator.h.

◆ casts

uint32_t nanommo::Figure::casts = 0

While a player uses a skill, how many they've started: a new count is a new cast, even of the skill before.

Definition at line 81 of file animator.h.

◆ color

Color nanommo::Figure::color = WHITE

A monster's tint, or the colour of what an NPC wears that's dyed.

Definition at line 35 of file animator.h.

◆ faction

uint32_t nanommo::Figure::faction = 0

A player's faction, or the one an NPC is the herald of, by its id in the factions file, or 0 for none, and its colour.

Definition at line 27 of file animator.h.

◆ faction_color

Color nanommo::Figure::faction_color = BLANK

Definition at line 28 of file animator.h.

◆ features

std::optional<Features> nanommo::Figure::features

An NPC's skin and hair, from its kind, and a player's, with their build, as they chose them. Without any, their id picks them.

Definition at line 38 of file animator.h.

◆ flash

float nanommo::Figure::flash = 0.0f

How lit up it is from a blow just landed, from 0 to 1.

Definition at line 72 of file animator.h.

◆ from

protocol::Motion nanommo::Figure::from = protocol::MOTION_IDLE

Definition at line 73 of file animator.h.

◆ from_skill

uint32_t nanommo::Figure::from_skill = 0

While a motion is a skill's, which skill, by its id in the skills file.

Definition at line 75 of file animator.h.

◆ from_time

float nanommo::Figure::from_time = 0.0f

Definition at line 76 of file animator.h.

◆ guild

std::string nanommo::Figure::guild

A player's guild, by its name, or empty.

Definition at line 24 of file animator.h.

◆ health

int nanommo::Figure::health = 0

Definition at line 49 of file animator.h.

◆ height

float nanommo::Figure::height = 0.0f

A monster's height, in metres, from its kind's look.

Definition at line 54 of file animator.h.

◆ id

uint32_t nanommo::Figure::id = 0

Definition at line 21 of file animator.h.

◆ kind

uint32_t nanommo::Figure::kind = 0

A monster's or an NPC's kind, by its id in the content folder.

Definition at line 33 of file animator.h.

◆ lean

float nanommo::Figure::lean = 0.0f

How far it's tipped over, in radians, and which way it tips, as a yaw: a monster rocking back from a blow.

Definition at line 69 of file animator.h.

◆ lean_yaw

float nanommo::Figure::lean_yaw = 0.0f

Definition at line 70 of file animator.h.

◆ level

int nanommo::Figure::level = 1

Definition at line 48 of file animator.h.

◆ lift

float nanommo::Figure::lift = 0.0f

How high a blow's thrown it, in metres off the ground.

Definition at line 66 of file animator.h.

◆ mark

char nanommo::Figure::mark = 0

Over an NPC with a quest for you: '!' for one to take, or '?' for one you've done, to turn in.

Definition at line 47 of file animator.h.

◆ max_health

int nanommo::Figure::max_health = 0

Definition at line 50 of file animator.h.

◆ monster

bool nanommo::Figure::monster = false

Definition at line 30 of file animator.h.

◆ name

std::string nanommo::Figure::name

Definition at line 22 of file animator.h.

◆ npc

bool nanommo::Figure::npc = false

Definition at line 31 of file animator.h.

◆ phase

uint32_t nanommo::Figure::phase = 0

A boss's phase, from one, or 0 for any other monster.

Definition at line 52 of file animator.h.

◆ position

Vector3 nanommo::Figure::position {0.0f, 0.0f, 0.0f}

Definition at line 63 of file animator.h.

◆ quests

std::vector<uint32_t> nanommo::Figure::quests

The quests an NPC gives, by their ids in the quests file.

Definition at line 44 of file animator.h.

◆ talks

bool nanommo::Figure::talks = false

Whether the player can talk to it, by clicking it.

Definition at line 40 of file animator.h.

◆ target

uint32_t nanommo::Figure::target = 0

While a player uses a skill, the monster they picked, by its id, or in a duel, the player.

Definition at line 61 of file animator.h.

◆ target_player

uint32_t nanommo::Figure::target_player = 0

Definition at line 62 of file animator.h.

◆ teaches

std::vector<uint32_t> nanommo::Figure::teaches

The skills an NPC teaches, by their ids, when it's a trainer.

Definition at line 42 of file animator.h.

◆ to

protocol::Motion nanommo::Figure::to = protocol::MOTION_IDLE

Definition at line 77 of file animator.h.

◆ to_skill

uint32_t nanommo::Figure::to_skill = 0

Definition at line 78 of file animator.h.

◆ to_time

float nanommo::Figure::to_time = 0.0f

Definition at line 82 of file animator.h.

◆ weapon

uint32_t nanommo::Figure::weapon = 0

What a player holds, by its id in the items file.

Definition at line 56 of file animator.h.

◆ wearing

std::vector<uint32_t> nanommo::Figure::wearing

What else a player wears, by its ids in the items file.

Definition at line 58 of file animator.h.

◆ yaw

float nanommo::Figure::yaw = 0.0f

Definition at line 64 of file animator.h.

◆ you

bool nanommo::Figure::you = false

Definition at line 29 of file animator.h.


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