Examples of modifyResourceValue()


Examples of voodoo.framework.Piece.modifyResourceValue()

      Piece diffPiece = new YouLosePiece();
      if(piece == null || !(piece instanceof YouLosePiece)) {
        throw new IllegalArgumentException();
      }
      for(String id : piece.getResourceIds()) {
        diffPiece.modifyResourceValue(id, (-1)*(piece.getResourceValue(id)));
      }
      return diffPiece;
    } catch (Exception e) {
      System.out.println(e.toString());
      return null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.