Page MenuHomePhabricator (Chris)

Enemy.cpp
No OneTemporary

Authored By
Unknown
Size
423 B
Referenced Files
None
Subscribers
None

Enemy.cpp

#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

Mime Type
text/x-c
Expires
Sat, Nov 14, 11:53 PM (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
110869
Default Alt Text
Enemy.cpp (423 B)

Event Timeline