| clone(){ | clone(){ | ||||
| var t = new NESTile(); | |||||
| t.base64 = this.base64; | |||||
| return t; | |||||
| return (new NESTile()).copy(this); | |||||
| } | } | ||||
| copy(t){ | copy(t){ | ||||
| if (!(t instanceof NESTile)) | if (!(t instanceof NESTile)) | ||||
| throw new TypeError("Expected NESTile object."); | throw new TypeError("Expected NESTile object."); | ||||
| this.__data.set(t.__data); | this.__data.set(t.__data); | ||||
| return this; | |||||
| } | } | ||||
| isEq(tile){ | isEq(tile){ |