using 'cell' to describe shapes instead of raw object

This commit is contained in:
Gavin McDonald
2016-02-19 09:51:08 -05:00
parent c3e5995bf1
commit ccd9cdb111
6 changed files with 77 additions and 48 deletions

View File

@@ -106,7 +106,7 @@ export default class Hex extends Point {
return this;
},
getAxial: function() {return {x: this.x, z: this.z};},
getAxial: function() {return {q: this.x, r: this.z};},
setAxial: function(newAxial) {
this.x = newAxial.q;
this.z = newAxial.r;