'use strict';
/**
* @module entity/Player
*/
let Entity = require('./Entity');
/**
*
*
* @param {any} x
* @param {any} y
* @param {any} key
* @constructor Player
*/
function Player(x, y, key) {
Entity.call(this, x, y, key);
/**
* Player Health.
*
* Setting max HP to 100 by default.
*/
this.maxHP = 100;
this.HP = 100;
this.score = 0;
this.daysSurvived = 1;
this.type = 'player';
this.converse('Press Escape for help');
}
Player.prototype = Object.create(Entity.prototype);
Player.prototype.constructor = Player;
// Player.prototype.die = function() {
// Entity.die.call(this);
// };
module.exports = Player;