asciiflow2/js-lib/common.js

18 lines
306 B
JavaScript

/**
* Common classes.
*/
goog.provide('ascii.Position');
/**
* @constructor
*/
ascii.Position = function(x, y) {
/** type {Number} */ this.x = x;
/** type {Number} */ this.y = y;
};
ascii.Position.prototype.equals = function(other) {
return (this.x == other.x)
&& (this.y == other.y);
};