Search Results for

    Show / Hide Table of Contents

    Struct ParticleJointMovementState

    Contains the joint movement information for a single particle in a single round.

    Namespace: AS2.Visuals
    Assembly: .dll
    Syntax
    public struct ParticleJointMovementState

    Constructors

    | Edit this page View Source

    ParticleJointMovementState(bool, Vector2Int)

    Declaration
    public ParticleJointMovementState(bool isJointMovement, Vector2Int jointExpansionOffset)
    Parameters
    Type Name Description
    bool isJointMovement
    Vector2Int jointExpansionOffset

    Fields

    | Edit this page View Source

    None

    Constant neutral version of the struct, representing no joint movement.

    Declaration
    public static ParticleJointMovementState None
    Field Value
    Type Description
    ParticleJointMovementState
    | Edit this page View Source

    isJointMovement

    Whether or not this is actually a joint movement. if false, the jointMovementOffset is invalid unless it is (0, 0).

    Declaration
    public bool isJointMovement
    Field Value
    Type Description
    bool
    | Edit this page View Source

    jointMovementOffset

    The global offset by which the particle's position has shifted. This is relative to the particle's own non-moving part if it performs a movement itself.

    Declaration
    public Vector2Int jointMovementOffset
    Field Value
    Type Description
    Vector2Int

    Methods

    | Edit this page View Source

    Description()

    Declaration
    public string Description()
    Returns
    Type Description
    string
    | Edit this page View Source

    Equals(ParticleJointMovementState)

    Indicates whether the current object is equal to another object of the same type.

    Declaration
    public bool Equals(ParticleJointMovementState other)
    Parameters
    Type Name Description
    ParticleJointMovementState other

    An object to compare with this object.

    Returns
    Type Description
    bool

    true if the current object is equal to the other parameter; otherwise, false.

    | Edit this page View Source

    Equals(object)

    Indicates whether this instance and a specified object are equal.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    The object to compare with the current instance.

    Returns
    Type Description
    bool

    true if obj and this instance are the same type and represent the same value; otherwise, false.

    Overrides
    System.ValueType.Equals(object)
    | Edit this page View Source

    GetHashCode()

    Returns the hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A 32-bit signed integer that is the hash code for this instance.

    Overrides
    System.ValueType.GetHashCode()

    Operators

    | Edit this page View Source

    operator ==(ParticleJointMovementState, ParticleJointMovementState)

    Declaration
    public static bool operator ==(ParticleJointMovementState state1, ParticleJointMovementState state2)
    Parameters
    Type Name Description
    ParticleJointMovementState state1
    ParticleJointMovementState state2
    Returns
    Type Description
    bool
    | Edit this page View Source

    operator !=(ParticleJointMovementState, ParticleJointMovementState)

    Declaration
    public static bool operator !=(ParticleJointMovementState lhs, ParticleJointMovementState rhs)
    Parameters
    Type Name Description
    ParticleJointMovementState lhs
    ParticleJointMovementState rhs
    Returns
    Type Description
    bool
    • Edit this page
    • View Source
    In this article
    Back to top AmoebotSim 2.0 Documentation v1.11
    Copyright © 2025 AmoebotSim 2.0 Authors
    Generated by DocFX