Examples of Fixture


Examples of org.jbox2d.dynamics.Fixture

     
      shape.m_radius=CoordinateConverter.scalerPixelsToWorld(radius);
      fixtureDef.isSensor=true;
      fixtureDef.shape=shape;
     
      Fixture fixture=body.createFixture(fixtureDef);
      aabb=fixture.getAABB();
     
    }else{
      this.radius=0;
    }
  }
View Full Code Here

Examples of org.jbox2d.dynamics.Fixture

    for (int i = 0; i < m_count; ++i) {
      // System.out.println("contacts: " + m_count);
      final Contact contact = m_contacts[i];

      final Fixture fixtureA = contact.m_fixtureA;
      final Fixture fixtureB = contact.m_fixtureB;
      final Shape shapeA = fixtureA.getShape();
      final Shape shapeB = fixtureB.getShape();
      final float radiusA = shapeA.m_radius;
      final float radiusB = shapeB.m_radius;
      final Body bodyA = fixtureA.getBody();
      final Body bodyB = fixtureB.getBody();
      final Manifold manifold = contact.getManifold();

      int pointCount = manifold.pointCount;
      assert (pointCount > 0);
View Full Code Here

Examples of org.jbox2d.dynamics.Fixture

    if (manifold.pointCount == 0) {
      return;
    }

    Fixture fixtureA = contact.getFixtureA();
    Fixture fixtureB = contact.getFixtureB();

    Collision.getPointStates(state1, state2, oldManifold, manifold);

    contact.getWorldManifold(worldManifold);
View Full Code Here

Examples of org.jbox2d.dynamics.Fixture

    for (int i = 0; i < m_count; ++i) {
      // System.out.println("contacts: " + m_count);
      final Contact contact = m_contacts[i];

      final Fixture fixtureA = contact.m_fixtureA;
      final Fixture fixtureB = contact.m_fixtureB;
      final Shape shapeA = fixtureA.getShape();
      final Shape shapeB = fixtureB.getShape();
      final float radiusA = shapeA.m_radius;
      final float radiusB = shapeB.m_radius;
      final Body bodyA = fixtureA.getBody();
      final Body bodyB = fixtureB.getBody();
      final Manifold manifold = contact.getManifold();

      int pointCount = manifold.pointCount;
      assert (pointCount > 0);
View Full Code Here

Examples of org.jmcdonnell.blackoutrugby.beans.Fixture

*/
public class RequestManagerFixtureTest extends AbstractApiRequestTest {

    @Test
    public void testGetNationalFixtureByIdNotNull() throws BlackoutException {
        Fixture fixture
                = requestManager.getEntityFromApi(new Long(6537), Fixture.class, Boolean.TRUE, Boolean.FALSE);

        assertNotNull(fixture);
    }
View Full Code Here

Examples of org.jmcdonnell.blackoutrugby.beans.Fixture

        assertNotNull(fixture);
    }

    @Test
    public void testGetUnderTwentyFixtureByIdNotNull() throws BlackoutException {
        Fixture fixture
                = requestManager.getEntityFromApi(new Long(3716), Fixture.class, Boolean.TRUE, Boolean.TRUE);

        assertNotNull(fixture);
    }
View Full Code Here

Examples of org.jmcdonnell.blackoutrugby.beans.Fixture

        assertNotNull(fixture);
    }

    @Test
    public void testGetClubFixtureByIdNotNull() throws BlackoutException {
        Fixture fixture
                = requestManager.getEntityFromApi(new Long(System.getProperty("fixture.1.id")), Fixture.class, Boolean.FALSE, Boolean.FALSE);

        assertNotNull(fixture);
    }
View Full Code Here

Examples of org.jmcdonnell.blackoutrugby.beans.Fixture

        assertNotNull(fixture);
    }

    @Test
    public void testGetYouthFixtureByIdNotNull() throws BlackoutException {
        Fixture fixture
                = requestManager.getEntityFromApi(new Long(10023659), Fixture.class, Boolean.FALSE, Boolean.TRUE);

        assertNotNull(fixture);
    }
View Full Code Here

Examples of org.jmcdonnell.blackoutrugby.beans.Fixture

        assertNotNull(entitiesFromApi);
    }

    @Test
    public void testContentsOfSingleFixtureById() throws BlackoutException {
        Fixture LastFixture = requestManager.getLastFixtureForTeam(new Long(System.getProperty("team.id")), Boolean.FALSE, Boolean.FALSE);

        Fixture fixture
                = requestManager.getEntityFromApi(LastFixture.getFixtureId(), Fixture.class, Boolean.FALSE, Boolean.FALSE);

        assertNotNull(fixture.getBotMatch());
        assertNotNull(fixture.getCompetition());
        assertNotNull(fixture.getCountryIso());
        assertTrue(fixture.getFixtureId().equals(new Long(System.getProperty("fixture.1.id"))));
        assertNotNull(fixture.getGuestTeamId());
        assertNotNull(fixture.getHomeTeamId());
        assertNotNull(fixture.getLeagueId());
        assertNotNull(fixture.getMatchStart());
        assertNotNull(fixture.getRound());
        assertNotNull(fixture.getSeason());
    }
View Full Code Here

Examples of org.jmcdonnell.blackoutrugby.beans.Fixture

        fixtureIds.add(lastFixtures.get(0).getFixtureId());
        fixtureIds.add(lastFixtures.get(1).getFixtureId());
        List<Fixture> entitiesFromApi
                = requestManager.getEntitiesFromApi(fixtureIds, Fixture.class, Boolean.FALSE, Boolean.FALSE);

        Fixture fixture1 = entitiesFromApi.get(0);
        Fixture fixture2 = entitiesFromApi.get(1);

        assertNotNull(fixture1.getBotMatch());
        assertNotNull(fixture1.getCompetition());
        assertNotNull(fixture1.getCountryIso());
        assertTrue(fixture1.getFixtureId().equals(fixtureIds.get(0)));
        assertNotNull(fixture1.getGuestTeamId());
        assertNotNull(fixture1.getHomeTeamId());
        assertNotNull(fixture1.getLeagueId());
        assertNotNull(fixture1.getMatchStart());
        assertNotNull(fixture1.getRound());
        assertNotNull(fixture1.getSeason());

        assertNotNull(fixture2.getBotMatch());
        assertNotNull(fixture2.getCompetition());
        assertNotNull(fixture2.getCountryIso());
        assertTrue(fixture2.getFixtureId().equals(fixtureIds.get(0)));
        assertNotNull(fixture2.getGuestTeamId());
        assertNotNull(fixture2.getHomeTeamId());
        assertNotNull(fixture2.getLeagueId());
        assertNotNull(fixture2.getMatchStart());
        assertNotNull(fixture2.getRound());
        assertNotNull(fixture2.getSeason());
    }
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.