Package | Description |
---|---|
city.cs.engine |
Simple wrapper around the JBox2D physics engine.
|
Modifier and Type | Method and Description |
---|---|
World |
Body.getWorld()
The world in which this body exists.
|
World |
DebugViewer.getWorld()
The world currently being displayed and controlled.
|
World |
WorldView.getWorld()
The world being shown by this view.
|
Modifier and Type | Method and Description |
---|---|
void |
DebugViewer.setWorld(World world)
Display and control a new world.
|
void |
WorldView.setWorld(World world)
Set the world to be viewed.
|
Constructor and Description |
---|
DebugViewer(World world,
int width,
int height)
Initialize a debug viewer.
|
DynamicBody(World w)
Initialise a new dynamic Body with no shapes attached.
|
DynamicBody(World w,
Shape s)
Initialise a new dynamic Body with a single shape attached.
|
EngineerView(World w,
int width,
int height)
Initialise a new game view, centred on the origin and with a zoom
factor of 20.
|
StaticBody(World w)
Initialise a new static body with no shapes attached.
|
StaticBody(World w,
Shape s)
Initialise a new static body with a single shape attached.
|
UserView(World w,
int width,
int height)
Initialise a new game view, centred on the origin and with a zoom
factor of 20.
|
Walker(World world)
Initialise a new Walker with no attached shapes.
|
Walker(World world,
Shape shape)
Initialise a new dynamic Walker with a single shape attached.
|
WorldView(World w,
int width,
int height)
Initialise a new game view, centred on the origin and with a zoom
factor of 20.
|