I think I just added collide functions I didn't accomplish much
							parent
							
								
									a016d98fbd
								
							
						
					
					
						commit
						fe6a905e55
					
				@ -0,0 +1,21 @@
 | 
			
		||||
#include "enemy.h"
 | 
			
		||||
 | 
			
		||||
Enemy::Enemy()
 | 
			
		||||
{
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void Enemy::reset_pos(float x, float y)
 | 
			
		||||
{
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void Enemy::draw()
 | 
			
		||||
{
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void Enemy::move(Direction dir)
 | 
			
		||||
{
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void Enemy::collide(GameElement * x)
 | 
			
		||||
{
 | 
			
		||||
}
 | 
			
		||||
@ -0,0 +1,15 @@
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#include "game_element.h"
 | 
			
		||||
 | 
			
		||||
class Enemy : public GameElement {
 | 
			
		||||
public:
 | 
			
		||||
	ALLEGRO_BITMAP* sprite;
 | 
			
		||||
 | 
			
		||||
	Enemy();
 | 
			
		||||
 | 
			
		||||
	void reset_pos(float x, float y);
 | 
			
		||||
	void draw();
 | 
			
		||||
	void move(Direction dir);
 | 
			
		||||
	void collide(GameElement* x);
 | 
			
		||||
};
 | 
			
		||||
					Loading…
					
					
				
		Reference in New Issue