Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F145148
cardsdeck.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
934 B
Referenced Files
None
Subscribers
None
cardsdeck.h
View Options
#ifndef CARDSDECK_H
#define CARDSDECK_H
#include
<array>
#include
<SFML/Graphics.hpp>
#include
<iostream>
#include
"textureholder.h"
#include
"cardslist.h"
#include
"command.h"
class
CardsDeck
:
public
sf
::
Drawable
,
public
sf
::
Transformable
{
public
:
CardsDeck
(
TextureHolder
*
textures
,
sf
::
Font
*
gameFont
,
Command
*
command
);
std
::
array
<
CardsList
,
4
>
cardsList
;
std
::
array
<
sf
::
Sprite
,
4
>
spriteCardBases
;
std
::
array
<
sf
::
Text
,
4
>
textPileTitle
;
TextureHolder
*
textures
;
Command
*
commandManager
;
void
draw
(
sf
::
RenderTarget
&
target
,
sf
::
RenderStates
states
)
const
;
// void setTitles();
void
setFonts
(
sf
::
Font
*
gameFont
);
void
nextCard
(
int
pileNumber
);
int
getCurrentCard
(
int
pileNumber
);
std
::
string
getTitle
(
int
pileNumber
);
void
update
(
sf
::
Time
deltaTime
);
int
getCardTypeInt
(
int
pileNumber
);
void
setTitles
(
int
number
);
void
reloadCards
();
};
#endif
// CARDSDECK_H
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sun, Aug 16, 12:01 AM (1 d, 13 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
77343
Default Alt Text
cardsdeck.h (934 B)
Attached To
Mode
R82 deerportal
Attached
Detach File
Event Timeline