QcAquaticDefinition Struct
A creature that lives in water (fish, decision E-502), from its data (aquatic): it swims only in water, in schools with its kind (cohesion, alignment and separation among at most neighbours creatures of its kind within schoolRadius metres), flops about on land and suffocates there after airSeconds. More...
| Header: | #include <common/content/mobs/QcMobTraits.h> |
Public Types
| enum class | Cap { Fish, Large } |
Public Variables
| double | airSeconds |
| double | alignment |
| QcAquaticDefinition::Cap | cap |
| double | cohesion |
| double | flopSpeed |
| int | neighbours |
| double | schoolRadius |
| double | separation |
| double | separationDistance |
| double | suffocationDamage |
| double | swimSpeed |
Detailed Description
Water creatures have their own caps and never count as animals: fish that of QcServerLimits::waterCreaturesPerPlayer, larger ones like the squid ("cap": "large", decision E-974) that of QcServerLimits::largeWaterCreaturesPerPlayer. Server side only.
Member Type Documentation
enum class QcAquaticDefinition::Cap
The spawn cap a water creature counts against (cap).
| Constant | Value | Description |
|---|---|---|
QcAquaticDefinition::Cap::Fish | 0 | "fish" (default): small fish, QcServerLimits::waterCreaturesPerPlayer. |
QcAquaticDefinition::Cap::Large | 1 | "large": the squid, QcServerLimits::largeWaterCreaturesPerPlayer. |
Member Variable Documentation
double QcAquaticDefinition::alignment
Weight of the steering along its school mates' mean heading.
QcAquaticDefinition::Cap QcAquaticDefinition::cap
The spawn cap it counts against.
double QcAquaticDefinition::cohesion
Weight of the steering towards the centre of its school mates.
double QcAquaticDefinition::flopSpeed
Upward speed in m/s of a flop on land (sideways a third of it).
int QcAquaticDefinition::neighbours
Most school mates (the nearest) it steers by; 0 for no schooling.
double QcAquaticDefinition::schoolRadius
Metres within which creatures of its kind count for its school; 0 for no schooling.
double QcAquaticDefinition::separation
Weight of the steering away from school mates closer than separationDistance.
double QcAquaticDefinition::separationDistance
Distance in metres below which separation pushes it away from a school mate.
double QcAquaticDefinition::swimSpeed
Speed in m/s while swimming; it darts away at the creature's chaseSpeed when hurt.