unit.js 362 B

12345678910111213
  1. this.initialize = function() {
  2. this.future( 0.3 ).render();
  3. }
  4. // the driver will be handling this function
  5. //this.render = function() {}
  6. this.handleRender = function( img, iconSize, symbolCenter, symbolBounds ){
  7. if ( this.parent !== undefined ) {
  8. this.parent.handleRender( img, iconSize, symbolCenter, symbolBounds );
  9. }
  10. }
  11. //@ sourceURL=unit.js