mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-29 17:32:17 -07:00
Refactor tax counters into cast counts with separate ID space and user activated create/delete
This commit is contained in:
parent
4354191918
commit
f5e49a571e
50 changed files with 900 additions and 828 deletions
|
|
@ -102,13 +102,13 @@ TEST(ServerCounter, IncrementClampsToCustomBounds)
|
|||
EXPECT_EQ(c.getCount(), 0);
|
||||
}
|
||||
|
||||
TEST(ServerCounter, CustomBoundsForCommanderTax)
|
||||
TEST(ServerCounter, CustomBoundsForCastCount)
|
||||
{
|
||||
Server_Counter taxCounter(1, "tax", color(), 20, 0, 0, MAX_COUNTER_VALUE);
|
||||
EXPECT_TRUE(taxCounter.setCount(1000));
|
||||
EXPECT_EQ(taxCounter.getCount(), MAX_COUNTER_VALUE);
|
||||
EXPECT_TRUE(taxCounter.setCount(-5));
|
||||
EXPECT_EQ(taxCounter.getCount(), 0);
|
||||
Server_Counter castCount(1, "cast_count", color(), 20, 0, 0, MAX_COUNTER_VALUE);
|
||||
EXPECT_TRUE(castCount.setCount(1000));
|
||||
EXPECT_EQ(castCount.getCount(), MAX_COUNTER_VALUE);
|
||||
EXPECT_TRUE(castCount.setCount(-5));
|
||||
EXPECT_EQ(castCount.getCount(), 0);
|
||||
}
|
||||
|
||||
TEST(ServerCounter, SetActiveReportsChangeOnce)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue