Began working on methods

This commit is contained in:
Devine Lu Linvega
2017-03-18 15:02:37 -07:00
parent 15e019d455
commit 35438605af
12 changed files with 81 additions and 12 deletions

19
scripts/units/method.js Normal file
View File

@@ -0,0 +1,19 @@
function Method(name,params)
{
Unit.call(this);
this.name = name;
this.params = params;
this.example = "";
this.render = function()
{
var s = name+":";
for(param in this.params){
s += this.params[param]+","
}
s = s.substr(0,s.length-1);
return s;
}
}