From 97d6287a0710ec59d746f6340a796bbe6c7c8aa2 Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Sat, 6 Jun 2015 15:39:02 +0200 Subject: Abstracted game objects into an entity base class --- include/enemy_bullet.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'include/enemy_bullet.h') diff --git a/include/enemy_bullet.h b/include/enemy_bullet.h index db3fcf9..ff3b001 100644 --- a/include/enemy_bullet.h +++ b/include/enemy_bullet.h @@ -1,11 +1,12 @@ #pragma once -class EnemyBullet { +#include "game_entity.h" + +class EnemyBullet: public GameEntity +{ public: EnemyBullet(int x, int y); const static char ALIEN_MAP_CHAR = '|'; const static char ENEMY_MISSILE_MAP_CHAR = 'i'; private: - int x; - int y; }; -- cgit v1.2.3