Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
trice_limits.h File Reference
#include <QString>
Include dependency graph for trice_limits.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static QString nameFromStdString (const std::string &_string)
static QString textFromStdString (const std::string &_string)
static QString fileFromStdString (const std::string &_string)

Variables

constexpr int MAX_NAME_LENGTH = 0xff
constexpr int MAX_TEXT_LENGTH = 0xfff
constexpr int MAX_FILE_LENGTH = 0x1fffff
constexpr uint MINIMUM_DIE_SIDES = 2
constexpr uint MAXIMUM_DIE_SIDES = 1000000
constexpr uint MINIMUM_DICE_TO_ROLL = 1
constexpr uint MAXIMUM_DICE_TO_ROLL = 100

Function Documentation

◆ fileFromStdString()

QString fileFromStdString ( const std::string & _string)
inlinestatic
Here is the caller graph for this function:

◆ nameFromStdString()

QString nameFromStdString ( const std::string & _string)
inlinestatic
Here is the caller graph for this function:

◆ textFromStdString()

QString textFromStdString ( const std::string & _string)
inlinestatic
Here is the caller graph for this function:

Variable Documentation

◆ MAX_FILE_LENGTH

int MAX_FILE_LENGTH = 0x1fffff
constexpr

◆ MAX_NAME_LENGTH

int MAX_NAME_LENGTH = 0xff
constexpr

◆ MAX_TEXT_LENGTH

int MAX_TEXT_LENGTH = 0xfff
constexpr

◆ MAXIMUM_DICE_TO_ROLL

uint MAXIMUM_DICE_TO_ROLL = 100
constexpr

◆ MAXIMUM_DIE_SIDES

uint MAXIMUM_DIE_SIDES = 1000000
constexpr

◆ MINIMUM_DICE_TO_ROLL

uint MINIMUM_DICE_TO_ROLL = 1
constexpr

◆ MINIMUM_DIE_SIDES

uint MINIMUM_DIE_SIDES = 2
constexpr