public static Collision createCollision ( XmlReader node ) { Check . notNull ( node ) ; final String name = node . readString ( ATT_NAME ) ; final int offsetX = node . readInteger ( ATT_OFFSETX ) ; final int offsetY = node . readInteger ( ATT_OFFSETY ) ; final int width = node . readInteger ( ATT_WIDTH ) ; final int height = node . readInteger ( ATT_HEIGHT ) ; final boolean mirror = node . readBoolean ( ATT_MIRROR ) ; return new Collision ( name , offsetX , offsetY , width , height , mirror ) ; }
Create an collision from its node .