Package org.jbox2d.serialization

Examples of org.jbox2d.serialization.UnsupportedObjectException


        break;
      case STATIC:
        bd.type = BodyType.STATIC;
        break;
      default:
        UnsupportedObjectException e =
            new UnsupportedObjectException("Unknown body type: " + argBody.getType(), Type.BODY);
        if (ulistener == null || ulistener.isUnsupported(e)) {
          throw e;
        }
        return null;
    }
View Full Code Here


        chain.m_nextVertex.set(pbToVec(s.getNext()));
        shape = chain;
        break;
      }
      default: {
        UnsupportedObjectException e =
            new UnsupportedObjectException("Unknown shape type: " + s.getType(), Type.SHAPE);
        if (ulistener == null || ulistener.isUnsupported(e)) {
          throw e;
        }
        return null;
      }
View Full Code Here

          def.addBodyAndJoint(argBodyMap.get(body), (DistanceJoint) djoint);
        }
        break;
      }
      case LINE: {
        UnsupportedObjectException e =
            new UnsupportedObjectException("Line joint no longer supported.", Type.JOINT);
        if (ulistener == null || ulistener.isUnsupported(e)) {
          throw e;
        }
        return null;
      }
      default: {
        UnsupportedObjectException e =
            new UnsupportedObjectException("Unknown joint type: " + joint.getType(), Type.JOINT);
        if (ulistener == null || ulistener.isUnsupported(e)) {
          throw e;
        }
        return null;
      }
View Full Code Here

        break;
      case STATIC:
        builder.setType(PbBodyType.STATIC);
        break;
      default:
        UnsupportedObjectException e = new UnsupportedObjectException("Unknown body type: "
            + argBody.getType(), Type.BODY);
        if (listener == null || listener.isUnsupported(e)) {
          throw e;
        }
        return null;
View Full Code Here

        builder.setNext(vecToPb(h.m_nextVertex));
        builder.setHas0(h.m_hasPrevVertex);
        builder.setHas3(h.m_hasNextVertex);
        break;
      default:
        UnsupportedObjectException ex = new UnsupportedObjectException(
            "Currently only encodes circle and polygon shapes", Type.SHAPE);
        if (listener == null || listener.isUnsupported(ex)) {
          throw ex;
        }
        return null;
View Full Code Here

        builder.setFrequency(j.getFrequency());
        builder.setDampingRatio(j.getDampingRatio());
        break;
      }
      default:
        UnsupportedObjectException e = new UnsupportedObjectException("Unknown joint type: "
            + joint.getType(), Type.JOINT);
        if (listener == null || listener.isUnsupported(e)) {
          throw e;
        }
        return null;
View Full Code Here

TOP

Related Classes of org.jbox2d.serialization.UnsupportedObjectException

Copyright © 2018 www.massapicom. 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.