Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F622071
cardslist.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
619 B
Referenced Files
None
Subscribers
None
cardslist.cpp
View Options
#include
"cardslist.h"
CardsList
::
CardsList
()
:
currentCard
(
0
),
element
(
0
),
invisibleLeft
(
0
),
active
(
true
)
{
}
CardsList
::
CardsList
(
int
element
)
:
active
(
true
)
{
// amount = 32; //TODO: ???
this
->
element
=
element
;
currentCard
=
0
;
invisibleLeft
=
0.0f
;
// Transparency for effect
}
void
CardsList
::
shufflePile
()
{
active
=
true
;
std
::
srand
(
std
::
time
(
0
));
unsigned
seed
=
std
::
chrono
::
system_clock
::
now
().
time_since_epoch
().
count
();
shuffle
(
cardsPile
.
begin
(),
cardsPile
.
end
(),
std
::
default_random_engine
(
seed
));
}
//void CardsList::addCard(Card card)
//{
//}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sat, Nov 14, 7:47 PM (21 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
112759
Default Alt Text
cardslist.cpp (619 B)
Attached To
Mode
R82 deerportal
Attached
Detach File
Event Timeline