QtCraft API C++ classes QML types Handbook

<common/gameplay/QcGameMode.h>

Declarations at global scope in common/gameplay/QcGameMode.h. More...

Header: #include <common/gameplay/QcGameMode.h>

Types

QcGameMode
enum class QcMovement { Walk, MayFly, NoClip }

Detailed Description

Type Documentation

[alias] QcGameMode

The game mode of a player (QcGameModes::Mode), the name the code uses.

enum class QcMovement

How a game mode lets a player move (QcEntityMotion::stepPlayer): on foot, flying on a wish (creative, decision E-284) or flying through blocks all the time (spectator, decision E-730).

ConstantValueDescription
QcMovement::Walk0On foot.
QcMovement::MayFly1May fly on a wish.
QcMovement::NoClip2Flies through blocks all the time.