Fixed some type errors
This commit is contained in:
parent
ad12ab5633
commit
a69354b535
|
@ -23,7 +23,7 @@ ascii.Vector.prototype.equals = function(other) {
|
|||
|
||||
/**
|
||||
* @param {ascii.Vector} other
|
||||
* @return {boolean}
|
||||
* @return {ascii.Vector}
|
||||
*/
|
||||
ascii.Vector.prototype.subtract = function(other) {
|
||||
return new ascii.Vector(this.x - other.x, this.y - other.y);
|
||||
|
@ -31,7 +31,7 @@ ascii.Vector.prototype.subtract = function(other) {
|
|||
|
||||
/**
|
||||
* @param {ascii.Vector} other
|
||||
* @return {boolean}
|
||||
* @return {ascii.Vector}
|
||||
*/
|
||||
ascii.Vector.prototype.add = function(other) {
|
||||
return new ascii.Vector(this.x + other.x, this.y + other.y);
|
||||
|
|
|
@ -41,7 +41,7 @@ ascii.State = function() {
|
|||
* Returns the cell at the given coordinates.
|
||||
*
|
||||
* @param {ascii.Vector} vector
|
||||
* @return {asii.Cell}
|
||||
* @return {ascii.Cell}
|
||||
*/
|
||||
ascii.State.prototype.getCell = function(vector) {
|
||||
return this.cells[vector.x][vector.y];
|
||||
|
|
Loading…
Reference in New Issue