Package org.box2d.proto
Interface Box2D.PbWorldOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Box2D.PbWorld
,Box2D.PbWorld.Builder
- Enclosing class:
Box2D
public static interface Box2D.PbWorldOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionboolean
optional bool allow_sleep = 3;
boolean
optional bool auto_clear_forces = 4;
getBodies
(int index) repeated .box2d.PbBody bodies = 20;
int
repeated .box2d.PbBody bodies = 20;
java.util.List
<Box2D.PbBody> repeated .box2d.PbBody bodies = 20;
getBodiesOrBuilder
(int index) repeated .box2d.PbBody bodies = 20;
java.util.List
<? extends Box2D.PbBodyOrBuilder> repeated .box2d.PbBody bodies = 20;
boolean
optional bool continuous_physics = 6;
optional .box2d.PbVec2 gravity = 2;
optional .box2d.PbVec2 gravity = 2;
getJoints
(int index) repeated .box2d.PbJoint joints = 21;
int
repeated .box2d.PbJoint joints = 21;
java.util.List
<Box2D.PbJoint> repeated .box2d.PbJoint joints = 21;
getJointsOrBuilder
(int index) repeated .box2d.PbJoint joints = 21;
java.util.List
<? extends Box2D.PbJointOrBuilder> repeated .box2d.PbJoint joints = 21;
boolean
optional bool sub_stepping = 7;
long
getTag()
optional int64 tag = 1;
boolean
optional bool warm_starting = 5;
boolean
optional bool allow_sleep = 3;
boolean
optional bool auto_clear_forces = 4;
boolean
optional bool continuous_physics = 6;
boolean
optional .box2d.PbVec2 gravity = 2;
boolean
optional bool sub_stepping = 7;
boolean
hasTag()
optional int64 tag = 1;
boolean
optional bool warm_starting = 5;
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasTag
boolean hasTag()optional int64 tag = 1;
- Returns:
- Whether the tag field is set.
-
getTag
long getTag()optional int64 tag = 1;
- Returns:
- The tag.
-
hasGravity
boolean hasGravity()optional .box2d.PbVec2 gravity = 2;
- Returns:
- Whether the gravity field is set.
-
getGravity
Box2D.PbVec2 getGravity()optional .box2d.PbVec2 gravity = 2;
- Returns:
- The gravity.
-
getGravityOrBuilder
Box2D.PbVec2OrBuilder getGravityOrBuilder()optional .box2d.PbVec2 gravity = 2;
-
hasAllowSleep
boolean hasAllowSleep()optional bool allow_sleep = 3;
- Returns:
- Whether the allowSleep field is set.
-
getAllowSleep
boolean getAllowSleep()optional bool allow_sleep = 3;
- Returns:
- The allowSleep.
-
hasAutoClearForces
boolean hasAutoClearForces()optional bool auto_clear_forces = 4;
- Returns:
- Whether the autoClearForces field is set.
-
getAutoClearForces
boolean getAutoClearForces()optional bool auto_clear_forces = 4;
- Returns:
- The autoClearForces.
-
hasWarmStarting
boolean hasWarmStarting()optional bool warm_starting = 5;
- Returns:
- Whether the warmStarting field is set.
-
getWarmStarting
boolean getWarmStarting()optional bool warm_starting = 5;
- Returns:
- The warmStarting.
-
hasContinuousPhysics
boolean hasContinuousPhysics()optional bool continuous_physics = 6;
- Returns:
- Whether the continuousPhysics field is set.
-
getContinuousPhysics
boolean getContinuousPhysics()optional bool continuous_physics = 6;
- Returns:
- The continuousPhysics.
-
hasSubStepping
boolean hasSubStepping()optional bool sub_stepping = 7;
- Returns:
- Whether the subStepping field is set.
-
getSubStepping
boolean getSubStepping()optional bool sub_stepping = 7;
- Returns:
- The subStepping.
-
getBodiesList
java.util.List<Box2D.PbBody> getBodiesList()repeated .box2d.PbBody bodies = 20;
-
getBodies
repeated .box2d.PbBody bodies = 20;
-
getBodiesCount
int getBodiesCount()repeated .box2d.PbBody bodies = 20;
-
getBodiesOrBuilderList
java.util.List<? extends Box2D.PbBodyOrBuilder> getBodiesOrBuilderList()repeated .box2d.PbBody bodies = 20;
-
getBodiesOrBuilder
repeated .box2d.PbBody bodies = 20;
-
getJointsList
java.util.List<Box2D.PbJoint> getJointsList()repeated .box2d.PbJoint joints = 21;
-
getJoints
repeated .box2d.PbJoint joints = 21;
-
getJointsCount
int getJointsCount()repeated .box2d.PbJoint joints = 21;
-
getJointsOrBuilderList
java.util.List<? extends Box2D.PbJointOrBuilder> getJointsOrBuilderList()repeated .box2d.PbJoint joints = 21;
-
getJointsOrBuilder
repeated .box2d.PbJoint joints = 21;
-