mirror of
https://github.com/exane/not-gwent-online
synced 2024-10-31 10:36:53 +00:00
28 lines
443 B
JavaScript
28 lines
443 B
JavaScript
var Entity = require("./Entity");
|
|
|
|
|
|
var Npc = (function(){
|
|
var Npc = function(){
|
|
if(!(this instanceof Npc)){
|
|
return (new Npc());
|
|
}
|
|
Entity.call(this);
|
|
/**
|
|
* constructor here
|
|
*/
|
|
|
|
|
|
};
|
|
Npc.prototype = Object.create(Entity.prototype);
|
|
var r = Npc.prototype;
|
|
/**
|
|
* methods && properties here
|
|
* r.property = null;
|
|
* r.getProperty = function() {...}
|
|
*/
|
|
|
|
|
|
return Npc;
|
|
})();
|
|
|
|
module.exports = Npc; |