diff --git a/index.html b/index.html index ac51185..5317ad1 100644 --- a/index.html +++ b/index.html @@ -12,6 +12,8 @@ + + diff --git a/models/croco-turtle.js b/models/croco-turtle.js index c0e7f6c..ae8e658 100644 --- a/models/croco-turtle.js +++ b/models/croco-turtle.js @@ -6,5 +6,9 @@ var CrocoTurtle = (function () { CrocoTurtle.prototype = Object.create(Unit.prototype); CrocoTurtle.prototype.constructor = CrocoTurtle; + CrocoTurtle.prototype.step = function() { + console.log('Step') + } + return CrocoTurtle; }()); diff --git a/models/monkey.js b/models/monkey.js index b9d646f..fba5cee 100644 --- a/models/monkey.js +++ b/models/monkey.js @@ -6,6 +6,8 @@ var Monkey = (function() { Monkey.prototype = Object.create(Unit.prototype) Monkey.prototype.constructor = Monkey + + return Monkey; }());