Class Box2D.PbBody

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.io.Serializable, Box2D.PbBodyOrBuilder
    Enclosing class:
    Box2D

    public static final class Box2D.PbBody
    extends com.google.protobuf.GeneratedMessage
    implements Box2D.PbBodyOrBuilder
    Protobuf type box2d.PbBody
    See Also:
    Serialized Form
    • Field Detail

      • bitField0_

        private int bitField0_
      • tag_

        private long tag_
      • type_

        private int type_
      • angle_

        private float angle_
      • LINEAR_VELOCITY_FIELD_NUMBER

        public static final int LINEAR_VELOCITY_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ANGULAR_VELOCITY_FIELD_NUMBER

        public static final int ANGULAR_VELOCITY_FIELD_NUMBER
        See Also:
        Constant Field Values
      • angularVelocity_

        private float angularVelocity_
      • LINEAR_DAMPING_FIELD_NUMBER

        public static final int LINEAR_DAMPING_FIELD_NUMBER
        See Also:
        Constant Field Values
      • linearDamping_

        private float linearDamping_
      • ANGULAR_DAMPING_FIELD_NUMBER

        public static final int ANGULAR_DAMPING_FIELD_NUMBER
        See Also:
        Constant Field Values
      • angularDamping_

        private float angularDamping_
      • GRAVITY_SCALE_FIELD_NUMBER

        public static final int GRAVITY_SCALE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • gravityScale_

        private float gravityScale_
      • bullet_

        private boolean bullet_
      • ALLOW_SLEEP_FIELD_NUMBER

        public static final int ALLOW_SLEEP_FIELD_NUMBER
        See Also:
        Constant Field Values
      • allowSleep_

        private boolean allowSleep_
      • awake_

        private boolean awake_
      • active_

        private boolean active_
      • FIXED_ROTATION_FIELD_NUMBER

        public static final int FIXED_ROTATION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • fixedRotation_

        private boolean fixedRotation_
      • memoizedIsInitialized

        private byte memoizedIsInitialized
      • DEFAULT_INSTANCE

        private static final Box2D.PbBody DEFAULT_INSTANCE
      • PARSER

        private static final com.google.protobuf.Parser<Box2D.PbBody> PARSER
    • Constructor Detail

      • PbBody

        private PbBody​(com.google.protobuf.GeneratedMessage.Builder<?> builder)
      • PbBody

        private PbBody()
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
      • hasTag

        public boolean hasTag()
        optional int64 tag = 1;
        Specified by:
        hasTag in interface Box2D.PbBodyOrBuilder
        Returns:
        Whether the tag field is set.
      • hasType

        public boolean hasType()
        required .box2d.PbBodyType type = 2;
        Specified by:
        hasType in interface Box2D.PbBodyOrBuilder
        Returns:
        Whether the type field is set.
      • hasPosition

        public boolean hasPosition()
         physical attributes
         
        optional .box2d.PbVec2 position = 10;
        Specified by:
        hasPosition in interface Box2D.PbBodyOrBuilder
        Returns:
        Whether the position field is set.
      • hasAngle

        public boolean hasAngle()
        optional float angle = 11;
        Specified by:
        hasAngle in interface Box2D.PbBodyOrBuilder
        Returns:
        Whether the angle field is set.
      • hasLinearVelocity

        public boolean hasLinearVelocity()
        optional .box2d.PbVec2 linear_velocity = 12;
        Specified by:
        hasLinearVelocity in interface Box2D.PbBodyOrBuilder
        Returns:
        Whether the linearVelocity field is set.
      • hasAngularVelocity

        public boolean hasAngularVelocity()
        optional float angular_velocity = 13;
        Specified by:
        hasAngularVelocity in interface Box2D.PbBodyOrBuilder
        Returns:
        Whether the angularVelocity field is set.
      • hasLinearDamping

        public boolean hasLinearDamping()
         configuration
         
        optional float linear_damping = 50;
        Specified by:
        hasLinearDamping in interface Box2D.PbBodyOrBuilder
        Returns:
        Whether the linearDamping field is set.
      • getLinearDamping

        public float getLinearDamping()
         configuration
         
        optional float linear_damping = 50;
        Specified by:
        getLinearDamping in interface Box2D.PbBodyOrBuilder
        Returns:
        The linearDamping.
      • hasAngularDamping

        public boolean hasAngularDamping()
        optional float angular_damping = 51;
        Specified by:
        hasAngularDamping in interface Box2D.PbBodyOrBuilder
        Returns:
        Whether the angularDamping field is set.
      • hasGravityScale

        public boolean hasGravityScale()
        optional float gravity_scale = 52;
        Specified by:
        hasGravityScale in interface Box2D.PbBodyOrBuilder
        Returns:
        Whether the gravityScale field is set.
      • hasBullet

        public boolean hasBullet()
        optional bool bullet = 53;
        Specified by:
        hasBullet in interface Box2D.PbBodyOrBuilder
        Returns:
        Whether the bullet field is set.
      • hasAllowSleep

        public boolean hasAllowSleep()
        optional bool allow_sleep = 54;
        Specified by:
        hasAllowSleep in interface Box2D.PbBodyOrBuilder
        Returns:
        Whether the allowSleep field is set.
      • getAllowSleep

        public boolean getAllowSleep()
        optional bool allow_sleep = 54;
        Specified by:
        getAllowSleep in interface Box2D.PbBodyOrBuilder
        Returns:
        The allowSleep.
      • hasAwake

        public boolean hasAwake()
        optional bool awake = 55;
        Specified by:
        hasAwake in interface Box2D.PbBodyOrBuilder
        Returns:
        Whether the awake field is set.
      • hasActive

        public boolean hasActive()
        optional bool active = 56;
        Specified by:
        hasActive in interface Box2D.PbBodyOrBuilder
        Returns:
        Whether the active field is set.
      • hasFixedRotation

        public boolean hasFixedRotation()
        optional bool fixed_rotation = 57;
        Specified by:
        hasFixedRotation in interface Box2D.PbBodyOrBuilder
        Returns:
        Whether the fixedRotation field is set.
      • getFixedRotation

        public boolean getFixedRotation()
        optional bool fixed_rotation = 57;
        Specified by:
        getFixedRotation in interface Box2D.PbBodyOrBuilder
        Returns:
        The fixedRotation.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessage
        Throws:
        java.io.IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessage
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static Box2D.PbBody parseFrom​(java.nio.ByteBuffer data)
                                      throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Box2D.PbBody parseFrom​(java.nio.ByteBuffer data,
                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                      throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Box2D.PbBody parseFrom​(com.google.protobuf.ByteString data)
                                      throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Box2D.PbBody parseFrom​(com.google.protobuf.ByteString data,
                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                      throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Box2D.PbBody parseFrom​(byte[] data)
                                      throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Box2D.PbBody parseFrom​(byte[] data,
                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                      throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Box2D.PbBody parseFrom​(java.io.InputStream input)
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Box2D.PbBody parseFrom​(java.io.InputStream input,
                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static Box2D.PbBody parseDelimitedFrom​(java.io.InputStream input)
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static Box2D.PbBody parseDelimitedFrom​(java.io.InputStream input,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Box2D.PbBody parseFrom​(com.google.protobuf.CodedInputStream input)
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Box2D.PbBody parseFrom​(com.google.protobuf.CodedInputStream input,
                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • newBuilderForType

        public Box2D.PbBody.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public Box2D.PbBody.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Box2D.PbBody.Builder newBuilderForType​(com.google.protobuf.AbstractMessage.BuilderParent parent)
        Overrides:
        newBuilderForType in class com.google.protobuf.AbstractMessage
      • getDefaultInstance

        public static Box2D.PbBody getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<Box2D.PbBody> parser()
      • getParserForType

        public com.google.protobuf.Parser<Box2D.PbBody> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessage
      • getDefaultInstanceForType

        public Box2D.PbBody getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder