mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:57:35 +00:00
Libraries: Change enums to enum classes in LibCards
This commit is contained in:
parent
d3893a73fb
commit
56046d3f9b
6 changed files with 43 additions and 43 deletions
|
@ -90,7 +90,7 @@ void Game::timer_event(Core::TimerEvent&)
|
|||
|
||||
void Game::create_new_animation_card()
|
||||
{
|
||||
auto card = Card::construct(static_cast<Card::Type>(get_random_uniform(Card::Type::__Count)), get_random_uniform(Card::card_count));
|
||||
auto card = Card::construct(static_cast<Card::Type>(get_random_uniform(to_underlying(Card::Type::__Count))), get_random_uniform(Card::card_count));
|
||||
card->set_position({ get_random_uniform(Game::width - Card::width), get_random_uniform(Game::height / 8) });
|
||||
|
||||
int x_sgn = card->position().x() > (Game::width / 2) ? -1 : 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue