Skip navigation links
A B C D E F G H I J L M N O P R S T U V W X Y 

S

Sensor - Class in city.cs.engine
A sensor component of a rigid body.
Sensor(Body, Shape, float) - Constructor for class city.cs.engine.Sensor
Create a sensor from a shape.
Sensor(Body, Shape) - Constructor for class city.cs.engine.Sensor
Create a sensor from a shape.
SensorEvent - Class in city.cs.engine
Event object describing contact between a Sensor and a solid fixture.
SensorListener - Interface in city.cs.engine
Listener interface for responding to contacts with sensors.
setAlwaysOutline(boolean) - Method in class city.cs.engine.Body
Set the alwaysOutline attribute.
setAngle(float) - Method in class city.cs.engine.Body
Set the angle of rotation of this body relative to its original state.
setAngleDegrees(float) - Method in class city.cs.engine.Body
Set the angle of rotation of this body relative to its original state.
setAngularVelocity(float) - Method in class city.cs.engine.DynamicBody
Set this body's angular velocity.
setBullet(boolean) - Method in class city.cs.engine.DynamicBody
Set the value of the bullet attribute on this body.
setCentre(Vec2) - Method in class city.cs.engine.WorldView
Reposition the view.
setClipped(boolean) - Method in class city.cs.engine.Body
Determine whether the images will be clipped to the body's composite shape or displayed in full (the default).
setDensity(float) - Method in class city.cs.engine.Fixture
Set the density of this fixture.
setFillColor(Color) - Method in class city.cs.engine.Body
Set the colour used to paint the interior of this body's composite shape when no image is attached.
setFriction(float) - Method in class city.cs.engine.SolidFixture
Set the coefficient of friction for this shape.
setGravity(float) - Method in class city.cs.engine.World
Set the strength of gravity in this world.
setGravityScale(float) - Method in class city.cs.engine.DynamicBody
Set the gravity scale for this body.
setGridResolution(float) - Method in class city.cs.engine.WorldView
If gridResolution is greater than zero, draw grid lines over the view.
setLinearVelocity(Vec2) - Method in class city.cs.engine.DynamicBody
Set this body's linear velocity.
setLineColor(Color) - Method in class city.cs.engine.Body
Set the colour used to paint the outline of this body's composite shape when no image is attached (or if alwaysOutline is true).
setName(String) - Method in class city.cs.engine.Body
Set a name for this body.
setOffset(Vec2) - Method in class city.cs.engine.AttachedImage
Set the offset for this image instance.
setPosition(Vec2) - Method in class city.cs.engine.Body
Set the position in the world of this body's origin point.
setPositionIterations(int) - Method in class city.cs.engine.SimulationSettings
 
setRestitution(float) - Method in class city.cs.engine.SolidFixture
Set the coefficient of restitution (bounciness) for this fixture.
setRotation(float) - Method in class city.cs.engine.AttachedImage
Set the angle of rotation for this image instance.
setScale(float) - Method in class city.cs.engine.AttachedImage
Set the scale factor for this image instance.
setTargetFrameRate(int) - Method in class city.cs.engine.SimulationSettings
Set the target frame rate
setVelocityIterations(int) - Method in class city.cs.engine.SimulationSettings
 
setView(Vec2, float) - Method in class city.cs.engine.WorldView
Reposition and zoom the view.
setVolume(double) - Method in class city.cs.engine.SoundClip
Adjust the volume of the sound.
setWorld(World) - Method in class city.cs.engine.DebugViewer
Display and control a new world.
setWorld(World) - Method in class city.cs.engine.WorldView
Set the world to be viewed.
setZoom(float) - Method in class city.cs.engine.WorldView
Zoom the view.
Shape - Class in city.cs.engine
The shape of a Fixture (a component of a rigid body).
SimulationSettings - Class in city.cs.engine
Settings governing the simulation of a World.
SimulationSettings(int) - Constructor for class city.cs.engine.SimulationSettings
 
SolidFixture - Class in city.cs.engine
A component of a rigid body.
SolidFixture(Body, Shape) - Constructor for class city.cs.engine.SolidFixture
Create a fixture from a shape.
SolidFixture(Body, Shape, float) - Constructor for class city.cs.engine.SolidFixture
Create a fixture from a shape.
SoundClip - Class in city.cs.engine
Sound clips loaded from audio files.
SoundClip(String) - Constructor for class city.cs.engine.SoundClip
Initialise a new sound clip from the named audio file.
SoundClip(URL) - Constructor for class city.cs.engine.SoundClip
Initialise a new sound clip from the audio file located at the given url.
start() - Method in class city.cs.engine.World
Start (or resume) the simulation.
startWalking(float) - Method in class city.cs.engine.Walker
Start continually setting the horizontal speed of the body, or change the speed if we are already walking.
StaticBody - Class in city.cs.engine
A static body does not move under simulation, but dynamic bodies can collide with it.
StaticBody(World) - Constructor for class city.cs.engine.StaticBody
Initialise a new static body with no shapes attached.
StaticBody(World, Shape) - Constructor for class city.cs.engine.StaticBody
Initialise a new static body with a single shape attached.
StepEvent - Class in city.cs.engine
Events signalling the start and end of a simulation step.
StepListener - Interface in city.cs.engine
Listener interface for actions to take place on each simulation step.
stop() - Method in class city.cs.engine.SoundClip
Stop playing the clip.
stop() - Method in class city.cs.engine.World
Stop the simulation.
stopWalking() - Method in class city.cs.engine.Walker
Stop continually setting the horizontal speed of the body.
sub(Vec2) - Method in class org.jbox2d.common.Vec2
Return the difference between this vector and another; does not alter either one.
A B C D E F G H I J L M N O P R S T U V W X Y 
Skip navigation links