Search Results for

    Show / Hide Table of Contents

    Struct BondMovementInfo

    Serializable representation of a single bond movement. Describes the two locations of a bond before and after a movement round. Also contains some graphical info.

    Namespace: AS2.Sim
    Assembly: .dll
    Syntax
    [Serializable]
    public struct BondMovementInfo

    Constructors

    | Edit this page View Source

    BondMovementInfo(Vector2Int, Vector2Int, Vector2Int, Vector2Int, bool)

    Declaration
    public BondMovementInfo(Vector2Int start1, Vector2Int end1, Vector2Int start2, Vector2Int end2, bool hidden = false)
    Parameters
    Type Name Description
    Vector2Int start1
    Vector2Int end1
    Vector2Int start2
    Vector2Int end2
    bool hidden

    Fields

    | Edit this page View Source

    Empty

    A movement info in which all positions are (0,0).

    Declaration
    public static BondMovementInfo Empty
    Field Value
    Type Description
    BondMovementInfo
    | Edit this page View Source

    end1

    The bond's end location before the movement.

    Declaration
    public Vector2Int end1
    Field Value
    Type Description
    Vector2Int
    | Edit this page View Source

    end2

    The bond's end location after the movement.

    Declaration
    public Vector2Int end2
    Field Value
    Type Description
    Vector2Int
    | Edit this page View Source

    hidden

    Whether the bond should be hidden.

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

    start1

    The bond's start location before the movement.

    Declaration
    public Vector2Int start1
    Field Value
    Type Description
    Vector2Int
    | Edit this page View Source

    start2

    The bond's start location after the movement.

    Declaration
    public Vector2Int start2
    Field Value
    Type Description
    Vector2Int

    Methods

    | 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 ==(BondMovementInfo, BondMovementInfo)

    Declaration
    public static bool operator ==(BondMovementInfo i1, BondMovementInfo i2)
    Parameters
    Type Name Description
    BondMovementInfo i1
    BondMovementInfo i2
    Returns
    Type Description
    bool
    | Edit this page View Source

    operator !=(BondMovementInfo, BondMovementInfo)

    Declaration
    public static bool operator !=(BondMovementInfo i1, BondMovementInfo i2)
    Parameters
    Type Name Description
    BondMovementInfo i1
    BondMovementInfo i2
    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