QcMobAbilities Struct
How a creature finds its way (decision E-423), from its data (abilities); the path rules (QcPathRules::of) follow from it. More...
| Header: | #include <common/content/mobs/QcMobDefinition.h> |
Public Types
| enum class | Climbing { None, Ladders, Walls } |
Public Variables
| QcMobAbilities::Climbing | climbs |
| bool | dives |
| bool | divesIntoWater |
| bool | opensDoors |
| bool | swims |
Detailed Description
Server side only.
Member Type Documentation
enum class QcMobAbilities::Climbing
How it climbs ("climbs": none, ladders or walls).
| Constant | Value | Description |
|---|---|---|
QcMobAbilities::Climbing::None | 0 | Does not climb. |
QcMobAbilities::Climbing::Ladders | 1 | Holds on to ladders and goes up and down along them. |
QcMobAbilities::Climbing::Walls | 2 | Also up walls (spiders, stage 52); on paths like Ladders until then. |
Member Variable Documentation
QcMobAbilities::Climbing QcMobAbilities::climbs
How it climbs.
bool QcMobAbilities::dives
Stays under water (drowned, decision E-838): it sinks and walks on the bottom and swims up only towards a target above it or at a wall, instead of keeping its head above the surface.
bool QcMobAbilities::divesIntoWater
Drops deeper than the usual limit into deep water (QcPathRules::waterDrop).
bool QcMobAbilities::opensDoors
Opens closed wooden doors and gates on its way (only the villager AI does so far).
bool QcMobAbilities::swims
Moves through water on its paths as freely as on land; a walker uses water only without a dry way.