Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F627876
boarddiamond.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
891 B
Referenced Files
None
Subscribers
None
boarddiamond.cpp
View Options
#include
"boarddiamond.h"
BoardDiamond
::
BoardDiamond
()
{
}
BoardDiamond
::
BoardDiamond
(
TextureHolder
*
textures
,
int
idNumber
,
int
element
,
int
boardPosition
)
{
this
->
textures
=
textures
;
this
->
element
=
element
;
this
->
boardPosition
=
boardPosition
;
this
->
idNumber
=
idNumber
;
spriteHolder
.
setTexture
(
this
->
textures
->
textureBoardDiamond
);
sf
::
IntRect
textureRect
(
idNumber
*
44
,
0
,
44
,
44
);
spriteHolder
.
setTextureRect
(
textureRect
);
spriteHolder
.
scale
(
0.5
,
0.5
);
setBoardPosition
(
boardPosition
);
}
void
BoardDiamond
::
draw
(
sf
::
RenderTarget
&
target
,
sf
::
RenderStates
states
)
const
{
if
(
boardPosition
>
-1
)
{
states
.
transform
*=
getTransform
();
sf
::
Vector2f
where
(
getPosition
());
target
.
draw
(
spriteHolder
,
states
);
}
}
void
BoardDiamond
::
update
(
sf
::
Time
deltaTime
,
std
::
set
<
int
>
&
busyTiles
)
{
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sun, Nov 15, 2:54 AM (1 d, 22 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
152034
Default Alt Text
boarddiamond.cpp (891 B)
Attached To
Mode
R82 deerportal
Attached
Detach File
Event Timeline