pragmaticLogic.Elephant=function(f,b,e,d,a){this.superclass(f,b,e,d,2,1,a)};pragmaticLogic.Elephant.prototype=new pragmaticLogic.BasePiece();pragmaticLogic.Elephant.prototype.superclass=pragmaticLogic.BasePiece;pragmaticLogic.Elephant.prototype.step=[-28,-24,24,28];pragmaticLogic.Elephant.prototype.obstructed=[-10,-8,8,10];pragmaticLogic.Elephant.prototype.render=function(){this.superclass.prototype.render.apply(this)};pragmaticLogic.Elephant.prototype.findLegalMoves=function(e){var b=[];for(var c=0;c<this.step.length;c++){var d=pragmaticLogic.BasePiece.MAILBOX90[this.position]+this.step[c];var f=pragmaticLogic.BasePiece.MAILBOX182[d];if(f!=-1&&(this.game.vertex[f]==null||this.game.vertex[f].color!=this.color)&&(pragmaticLogic.BasePiece.LEGALPOS[f]&pragmaticLogic.BasePiece.MASKPIECE[this.color][this.type])!=0){if(this.game.vertex[this.position+this.obstructed[c]]==null){if(this.superclass.prototype.isSafeMove.apply(this,[this.position,f])){var a=new pragmaticLogic.Move(this.position,f);b.push(a)}}}}return b};