Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F145081
cardslist.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
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, Aug 15, 6:21 PM (1 d, 9 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
77287
Default Alt Text
cardslist.cpp (619 B)
Attached To
Mode
R82 deerportal
Attached
Detach File
Event Timeline