Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F145092
boarddiamondseq.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
boarddiamondseq.h
View Options
#ifndef BOARDDIAMONDSEQ_H
#define BOARDDIAMONDSEQ_H
#include
<cstdlib>
#include
<ctime>
#include
<iostream>
#include
<set>
#include
"textureholder.h"
#include
<SFML/Graphics.hpp>
#include
"boarddiamond.h"
/*!
* \brief The BoardDiamondSeq class
* We are going to have 2 cards / diamonds of each element per each area,
* which gives 2*4*4 = 32 cards diamonds of elements on the board.
*
* Additionally there will be extra 6 white diamonds per area to collect, which
* gives 4*6 = 24 diamonds on the board.
*
* Together it would give 32 + 24 = 56 diamonds cards/diamonds together,
* 15 per area.
*/
class
BoardDiamondSeq
:
public
sf
::
Drawable
,
public
sf
::
Transformable
{
public
:
explicit
BoardDiamondSeq
(
TextureHolder
*
textures
);
TextureHolder
*
textures
;
BoardDiamond
diamonds
[
efc
::
diamondsNumber
];
std
::
array
<
int
,
efc
::
diamondsNumber
>
getBoardPositions
();
virtual
void
draw
(
sf
::
RenderTarget
&
target
,
sf
::
RenderStates
states
)
const
;
int
getRandomPos
(
int
playerNumber
);
void
reorder
();
// bool ifFieldIsEmpty(int pos, int element);
bool
ifFieldIsEmpty
(
int
pos
);
void
collectField
(
int
pos
);
int
getNumberForField
(
int
pos
);
void
reorder
(
int
element
);
};
#endif
// BOARDDIAMONDSEQ_H
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sat, Aug 15, 7:13 PM (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
77297
Default Alt Text
boarddiamondseq.h (1 KB)
Attached To
Mode
R82 deerportal
Attached
Detach File
Event Timeline