QtCraft API C++ classes QML types Handbook

QcVillagerLook Struct

What the villagers of one village style wear (decision E-411): an outfit, hair styles or headwear to choose from (an empty name: none) and the colours of the tinted layers (0xRRGGBB). More...

Header: #include <common/content/villages/QcVillagerDefinitions.h>

Public Functions

bool isSet() const

Static Public Members

const int maxChoices
enum class QcVillagerActivity { Wander, Work, Meet, Home, Sleep }

Detailed Description

Each villager draws one of every list from its own seed; empty lists take the default look's. Read from an object with outfit, hair (names), skin, hairColor, shirt and pants (lists of "#rrggbb").

Member Function Documentation

bool QcVillagerLook::isSet() const

Returns whether the look is given (it names an outfit).

Member Variable Documentation

const int QcVillagerLook::maxChoices

Most entries of each list.

Related Non-Members

enum class QcVillagerActivity

What a villager does at a time of day (QcVillagerSettings::routine).

ConstantValueDescription
QcVillagerLook::QcVillagerActivity::Wander0Strolls about the village near its home.
QcVillagerLook::QcVillagerActivity::Work1At its workstation (the unemployed stroll).
QcVillagerLook::QcVillagerActivity::Meet2At the meeting point (the bell).
QcVillagerLook::QcVillagerActivity::Home3Goes home and stays by its bed.
QcVillagerLook::QcVillagerActivity::Sleep4Lies in its bed.