Changed BasicEnemy properties from private to protected in order to allow inheritance

This commit is contained in:
Vassyli
2017-09-19 12:48:02 +02:00
parent 9842fa9ace
commit 51a102f981
+4 -4
View File
@@ -11,13 +11,13 @@ use Doctrine\ORM\Mapping\MappedSuperclass;
abstract class BasicEnemy implements FighterInterface
{
/** @Id @Column(type="integer") @GeneratedValue */
private $id;
protected $id;
/** @Column(type="string", length=50); */
private $name;
protected $name;
/** @Column(type="integer"); */
private $level;
protected $level;
/** @var int */
private $health;
protected $health;
/**
* Returns the enemy's id