File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ function Graph(gridIn, diagonal) {
175
175
this . grid [ x ] = [ ] ;
176
176
177
177
for ( var y = 0 , row = gridIn [ x ] ; y < row . length ; y ++ ) {
178
- var node = new GraphNode ( x , y , row [ y ] ) ;
178
+ var node = new GridNode ( x , y , row [ y ] ) ;
179
179
this . grid [ x ] [ y ] = node ;
180
180
this . nodes . push ( node ) ;
181
181
}
@@ -261,17 +261,17 @@ Graph.prototype.toString = function() {
261
261
return graphString ;
262
262
} ;
263
263
264
- function GraphNode ( x , y , type ) {
264
+ function GridNode ( x , y , type ) {
265
265
this . x = x ;
266
266
this . y = y ;
267
267
this . type = type ;
268
268
}
269
269
270
- GraphNode . prototype . toString = function ( ) {
270
+ GridNode . prototype . toString = function ( ) {
271
271
return "[" + this . x + " " + this . y + "]" ;
272
272
} ;
273
273
274
- GraphNode . prototype . isWall = function ( ) {
274
+ GridNode . prototype . isWall = function ( ) {
275
275
return this . type === 0 ;
276
276
} ;
277
277
You can’t perform that action at this time.
0 commit comments