Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F625774
Enemy.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
423 B
Referenced Files
None
Subscribers
None
Enemy.cpp
View Options
#include
"Enemy.h"
Enemy
::
Enemy
()
{
}
Enemy
::~
Enemy
()
{
}
Enemy
::
Enemy
(
int
x
,
int
y
)
{
x_pos
=
x
;
y_pos
=
y
;
active
=
true
;
speed
=
5
;
boxright
=
60
;
boxleft
=
10
;
boxheight
=
15
;
}
void
Enemy
::
set
(
int
x
,
int
y
)
{
x_pos
=
x
;
y_pos
=
y
;
active
=
true
;
speed
=
3
;
boxright
=
60
;
boxleft
=
10
;
boxheight
=
15
;
}
void
Enemy
::
Move
(
bool
check
)
{
if
(
check
==
true
)
{
speed
*=
-1
;
}
x_pos
+=
speed
;
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sat, Nov 14, 11:53 PM (1 d, 13 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
110869
Default Alt Text
Enemy.cpp (423 B)
Attached To
Mode
R72 DarthInvaders
Attached
Detach File
Event Timeline