Search Results for

    Show / Hide Table of Contents

    Class BehaviorEntity.BulletControls

    Repository for functions that can be applied to BehaviorEntities via the beh-control command, including complex bullets such as lasers and pathers.

    Inheritance
    System.Object
    BehaviorEntity.BulletControls
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Danmokou.Behavior
    Assembly: cs.temp.dll.dll
    Syntax
    public static class BulletControls

    Methods

    Batch(Pred, BehaviorEntity.cBEHControl[])

    Batch several commands together under one predicate.

    Declaration
    public static BehaviorEntity.cBEHControl Batch(Pred cond, BehaviorEntity.cBEHControl[] over)
    Parameters
    Type Name Description
    Pred cond
    Danmokou.Behavior.BehaviorEntity.cBEHControl[] over
    Returns
    Type Description
    Danmokou.Behavior.BehaviorEntity.cBEHControl

    Cull(Pred)

    Destroy bullets.

    Declaration
    public static BehaviorEntity.cBEHControl Cull(Pred cond)
    Parameters
    Type Name Description
    Pred cond

    Filter condition

    Returns
    Type Description
    Danmokou.Behavior.BehaviorEntity.cBEHControl

    DT(Single, Pred)

    Add to the time of objects.

    Declaration
    public static BehaviorEntity.cBEHControl DT(float by, Pred cond)
    Parameters
    Type Name Description
    System.Single by

    Delta time

    Pred cond

    Filter condition

    Returns
    Type Description
    Danmokou.Behavior.BehaviorEntity.cBEHControl

    DX(Single, Pred)

    Add to the x-position of bullets. Useful for teleporting around the sides.

    Declaration
    public static BehaviorEntity.cBEHControl DX(float by, Pred cond)
    Parameters
    Type Name Description
    System.Single by

    Delta position

    Pred cond

    Filter condition

    Returns
    Type Description
    Danmokou.Behavior.BehaviorEntity.cBEHControl

    DY(Single, Pred)

    Add to the y-position of bullets. Useful for teleporting around the sides.

    Declaration
    public static BehaviorEntity.cBEHControl DY(float by, Pred cond)
    Parameters
    Type Name Description
    System.Single by

    Delta position

    Pred cond

    Filter condition

    Returns
    Type Description
    Danmokou.Behavior.BehaviorEntity.cBEHControl

    Exec(ErasedParametric, Pred)

    Run some code on bullets that pass the condition.

    Declaration
    public static BehaviorEntity.cBEHControl Exec(ErasedParametric code, Pred cond)
    Parameters
    Type Name Description
    ErasedParametric code
    Pred cond
    Returns
    Type Description
    Danmokou.Behavior.BehaviorEntity.cBEHControl

    FlipX(Pred)

    Flip the X-velocity of bullets. Use FlipXGT(BPY, Pred), etc instead for flipping against walls.

    Declaration
    public static BehaviorEntity.cBEHControl FlipX(Pred cond)
    Parameters
    Type Name Description
    Pred cond

    Filter condition

    Returns
    Type Description
    Danmokou.Behavior.BehaviorEntity.cBEHControl

    FlipXGT(BPY, Pred)

    Flip the x-velocity and x-position of bullets around a wall on the right.

    Declaration
    public static BehaviorEntity.cBEHControl FlipXGT(BPY wall, Pred cond)
    Parameters
    Type Name Description
    BPY wall

    X-position of wall

    Pred cond

    Filter condition

    Returns
    Type Description
    Danmokou.Behavior.BehaviorEntity.cBEHControl

    FlipXLT(BPY, Pred)

    Flip the x-velocity and x-position of bullets around a wall on the left.

    Declaration
    public static BehaviorEntity.cBEHControl FlipXLT(BPY wall, Pred cond)
    Parameters
    Type Name Description
    BPY wall

    X-position of wall

    Pred cond

    Filter condition

    Returns
    Type Description
    Danmokou.Behavior.BehaviorEntity.cBEHControl

    FlipY(Pred)

    Flip the Y-velocity of bullets. Use FlipXGT(BPY, Pred), etc instead for flipping against walls.

    Declaration
    public static BehaviorEntity.cBEHControl FlipY(Pred cond)
    Parameters
    Type Name Description
    Pred cond

    Filter condition

    Returns
    Type Description
    Danmokou.Behavior.BehaviorEntity.cBEHControl

    FlipYGT(BPY, Pred)

    Flip the y-velocity and y-position of bullets around a wall on the top.

    Declaration
    public static BehaviorEntity.cBEHControl FlipYGT(BPY wall, Pred cond)
    Parameters
    Type Name Description
    BPY wall

    Y-position of wall

    Pred cond

    Filter condition

    Returns
    Type Description
    Danmokou.Behavior.BehaviorEntity.cBEHControl

    FlipYLT(BPY, Pred)

    Flip the y-velocity and y-position of bullets around a wall on the bottom.

    Declaration
    public static BehaviorEntity.cBEHControl FlipYLT(BPY wall, Pred cond)
    Parameters
    Type Name Description
    BPY wall

    Y-position of wall

    Pred cond

    Filter condition

    Returns
    Type Description
    Danmokou.Behavior.BehaviorEntity.cBEHControl

    Freeze(Pred)

    Freeze an object. It will still collide but it will not move.

    Declaration
    public static BehaviorEntity.cBEHControl Freeze(Pred cond)
    Parameters
    Type Name Description
    Pred cond
    Returns
    Type Description
    Danmokou.Behavior.BehaviorEntity.cBEHControl

    OnCollide(Pred, StateMachine)

    When the bullet collides, if the condition is true, spawn an iNode at the position and run an SM on it.

    Declaration
    public static BehaviorEntity.cBEHControl OnCollide(Pred cond, StateMachine target)
    Parameters
    Type Name Description
    Pred cond
    StateMachine target
    Returns
    Type Description
    Danmokou.Behavior.BehaviorEntity.cBEHControl

    OnDestroy(Pred, StateMachine)

    When the entity is destroyed, if the condition is true, spawn an iNode at the position and run an SM on it.
    This only works on enemies and other destructible entities.

    Declaration
    public static BehaviorEntity.cBEHControl OnDestroy(Pred cond, StateMachine target)
    Parameters
    Type Name Description
    Pred cond
    StateMachine target
    Returns
    Type Description
    Danmokou.Behavior.BehaviorEntity.cBEHControl

    Poof(Pred)

    Destroy bullets or enemies, while spawning their death effects and running on-destroy controls.

    Declaration
    public static BehaviorEntity.cBEHControl Poof(Pred cond)
    Parameters
    Type Name Description
    Pred cond

    Filter condition

    Returns
    Type Description
    Danmokou.Behavior.BehaviorEntity.cBEHControl

    Restyle(String, Pred)

    Change the style of bullets. Note: should only be used between the same type, eg pather->pather, laser->laser. Otherwise, weird shit might happen.

    Declaration
    public static BehaviorEntity.cBEHControl Restyle(string target, Pred cond)
    Parameters
    Type Name Description
    System.String target

    New style

    Pred cond

    Filter condition

    Returns
    Type Description
    Danmokou.Behavior.BehaviorEntity.cBEHControl

    SFX(String, Pred)

    Create a sound effect.

    Declaration
    public static BehaviorEntity.cBEHControl SFX(string sfx, Pred cond)
    Parameters
    Type Name Description
    System.String sfx

    Sound effect

    Pred cond

    Filter condition

    Returns
    Type Description
    Danmokou.Behavior.BehaviorEntity.cBEHControl

    SM(Pred, StateMachine)

    If the condition is true, spawn an iNode at the position and run an SM on it.

    Declaration
    public static BehaviorEntity.cBEHControl SM(Pred cond, StateMachine target)
    Parameters
    Type Name Description
    Pred cond
    StateMachine target
    Returns
    Type Description
    Danmokou.Behavior.BehaviorEntity.cBEHControl

    Softcull(String, Pred)

    Change the bullets into a softcull-type bullet rather than destroying them directly.

    Declaration
    public static BehaviorEntity.cBEHControl Softcull(string target, Pred cond)
    Parameters
    Type Name Description
    System.String target

    New style

    Pred cond

    Filter condition

    Returns
    Type Description
    Danmokou.Behavior.BehaviorEntity.cBEHControl

    SpawnOn(String, Pred)

    Run a spawn effect on objects.

    Declaration
    public static BehaviorEntity.cBEHControl SpawnOn(string target, Pred cond)
    Parameters
    Type Name Description
    System.String target

    New style

    Pred cond

    Filter condition

    Returns
    Type Description
    Danmokou.Behavior.BehaviorEntity.cBEHControl

    Time(Single, Pred)

    Set the time of bullets.

    Declaration
    public static BehaviorEntity.cBEHControl Time(float time, Pred cond)
    Parameters
    Type Name Description
    System.Single time

    Time to set

    Pred cond

    Filter condition

    Returns
    Type Description
    Danmokou.Behavior.BehaviorEntity.cBEHControl

    UpdateF((String target, ExBPY valuer)[], Pred)

    Declaration
    public static BehaviorEntity.cBEHControl UpdateF((string target, ExBPY valuer)[] targets, Pred cond)
    Parameters
    Type Name Description
    System.ValueTuple<System.String, ExBPY>[] targets
    Pred cond
    Returns
    Type Description
    Danmokou.Behavior.BehaviorEntity.cBEHControl

    UpdateV2((String target, ExTP valuer)[], Pred)

    Declaration
    public static BehaviorEntity.cBEHControl UpdateV2((string target, ExTP valuer)[] targets, Pred cond)
    Parameters
    Type Name Description
    System.ValueTuple<System.String, ExTP>[] targets
    Pred cond
    Returns
    Type Description
    Danmokou.Behavior.BehaviorEntity.cBEHControl
    In This Article
    Back to top Generated by DocFX