Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F627035
rounddice.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
668 B
Referenced Files
None
Subscribers
None
rounddice.h
View Options
#ifndef ROUNDDICE_H
#define ROUNDDICE_H
#include
<random>
#include
<SFML/Audio.hpp>
#include
<SFML/Graphics.hpp>
#include
"playerhud.h"
class
RoundDice
{
public
:
explicit
RoundDice
(
PlayerHud
(
&
players
)[
4
]);
PlayerHud
*
playersHud
;
std
::
string
drawRound
();
int
diceResult
;
int
diceResultSix
;
int
throwDiceSix
();
sf
::
Texture
textureDice
;
sf
::
Sprite
spriteDice
;
void
setDiceTexture
();
void
setDiceTexture
(
int
diceResult
);
void
setColor
(
int
playerNumber
);
private
:
int
throwDice
();
int
diceSize
;
// void eventExtraCash();
sf
::
SoundBuffer
sfxDiceBuffer
;
sf
::
Sound
sfxDice
;
};
#endif
// ROUNDDICE_H
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sun, Nov 15, 1:30 AM (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
132188
Default Alt Text
rounddice.h (668 B)
Attached To
Mode
R82 deerportal
Attached
Detach File
Event Timeline