Search in sources :

Example 6 with Toroidal2DPhysics

use of spacesettlers.simulator.Toroidal2DPhysics in project spacesettlers by amymcgovern.

the class TestMoveActionWithOrientation method setUp.

@Before
public void setUp() throws Exception {
    space = new Toroidal2DPhysics(480, 640, timestep);
    targetVelocity = new Vector2D();
}
Also used : Vector2D(spacesettlers.utilities.Vector2D) Toroidal2DPhysics(spacesettlers.simulator.Toroidal2DPhysics) Before(org.junit.Before)

Example 7 with Toroidal2DPhysics

use of spacesettlers.simulator.Toroidal2DPhysics in project spacesettlers by amymcgovern.

the class TestToroidal2DPhysics method setUp.

@Before
public void setUp() throws Exception {
    position = new Position(0, 0, 0);
    height = 480;
    width = 640;
    space = new Toroidal2DPhysics(height, width, timestep);
}
Also used : Position(spacesettlers.utilities.Position) Toroidal2DPhysics(spacesettlers.simulator.Toroidal2DPhysics) Before(org.junit.Before)

Aggregations

Toroidal2DPhysics (spacesettlers.simulator.Toroidal2DPhysics)7 UUID (java.util.UUID)4 ExecutionException (java.util.concurrent.ExecutionException)4 RejectedExecutionException (java.util.concurrent.RejectedExecutionException)4 TimeoutException (java.util.concurrent.TimeoutException)4 AbstractActionableObject (spacesettlers.objects.AbstractActionableObject)4 HashMap (java.util.HashMap)3 Map (java.util.Map)3 Before (org.junit.Before)3 Vector2D (spacesettlers.utilities.Vector2D)2 AbstractAction (spacesettlers.actions.AbstractAction)1 PurchaseCosts (spacesettlers.actions.PurchaseCosts)1 PurchaseTypes (spacesettlers.actions.PurchaseTypes)1 Base (spacesettlers.objects.Base)1 Ship (spacesettlers.objects.Ship)1 SpaceSettlersPowerupEnum (spacesettlers.objects.powerups.SpaceSettlersPowerupEnum)1 ResourcePile (spacesettlers.objects.resources.ResourcePile)1 Position (spacesettlers.utilities.Position)1