You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
346 B
18 lines
346 B
#pragma once
|
|
#include "Rect.h"
|
|
#include "olcPixelGameEngine.h"
|
|
|
|
class Enemy{
|
|
olc::vf2d pos;
|
|
Rect*sprite;
|
|
int health;
|
|
public:
|
|
Enemy(olc::vi2d pos,Rect*sprite,int health=1);
|
|
olc::vf2d GetPos();
|
|
olc::vi2d GetSprPos();
|
|
olc::vi2d GetSprSize();
|
|
void Hurt(int damage=1);
|
|
bool IsAlive();
|
|
void Move(olc::vi2d moveAmt);
|
|
olc::Pixel GetColor();
|
|
}; |