mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-29 09:22:18 -07:00
Comment update
This commit is contained in:
parent
2a1b505913
commit
2995fa4300
1 changed files with 11 additions and 6 deletions
|
|
@ -18,12 +18,17 @@ constexpr uint MAXIMUM_DIE_SIDES = 1000000;
|
|||
constexpr uint MINIMUM_DICE_TO_ROLL = 1;
|
||||
constexpr uint MAXIMUM_DICE_TO_ROLL = 100;
|
||||
|
||||
// Card counter value bounds [0, MAX_COUNTER_VALUE].
|
||||
// This caps an individual counter's VALUE (e.g. a +1/+1 counter at 999), not how many counters a card holds.
|
||||
// Applies to card counters only; player counters (Server_Counter) are unbounded and may go
|
||||
// negative (e.g. life total), saturating only at the int range.
|
||||
// The max of 999 is a display constraint (3-digit rendering) and reasonable gameplay limit.
|
||||
// Server enforces these bounds; client may also check for UX optimization.
|
||||
/**
|
||||
* @brief Upper bound for a bounded counter's value: [0, MAX_COUNTER_VALUE].
|
||||
*
|
||||
* Caps an individual counter's VALUE (e.g. a +1/+1 counter at 999), not how many counters
|
||||
* something holds. Applies to counters that are constrained to a non-negative display range,
|
||||
* such as card counters and commander tax. Unbounded counters (e.g. a player's life total)
|
||||
* do not use this limit and may go negative, saturating only at the int range.
|
||||
*
|
||||
* The max of 999 is a display constraint (3-digit rendering) and a reasonable gameplay limit.
|
||||
* The server enforces these bounds; the client may also check them for UX optimization.
|
||||
*/
|
||||
constexpr int MAX_COUNTER_VALUE = 999;
|
||||
|
||||
// optimized functions to get qstrings that are at most that long
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue