Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F629190
Barrier.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
345 B
Referenced Files
None
Subscribers
None
Barrier.cpp
View Options
#include
"Barrier.h"
using
namespace
std
;
void
Barrier::SetBarrierpos
(
int
x
,
int
y
)
{
x_pos
=
x
;
y_pos
=
y
;
}
void
Barrier::setLife
(
int
l
)
{
life_points
=
l
;
}
Barrier
::
Barrier
()
{
life_points
=
5
;
active
=
true
;
}
void
Barrier
::
drawIfActive
(
float
x
,
float
y
)
{
if
(
this
->
active
==
true
)
al_draw_bitmap
(
CurrentImage
,
x
,
y
,
0
);
}
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sun, Nov 15, 6:11 AM (1 d, 22 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
110794
Default Alt Text
Barrier.cpp (345 B)
Attached To
Mode
R72 DarthInvaders
Attached
Detach File
Event Timeline