QtCraft API C++ classes QML types Handbook

QcMobLegs::Budget Struct

struct QcMobLegs::Budget

How many questions to the routes are left this tick. More...

Header: #include <server/pathing/QcMobLegs.h>

Public Functions

bool spent() const
bool take()

Public Variables

int limit
int used

Detailed Description

Member Function Documentation

bool Budget::spent() const

Returns whether the budget is spent.

bool Budget::take()

Takes one question; returns false (nothing taken) when the budget is spent.

Member Variable Documentation

int Budget::limit

Questions allowed this tick.

int Budget::used

Questions taken this tick.