Uses bit flags to create a list of orthogonal directions. useful for
many FlxObject
features like allowCollisions
and touching
.
Available since
4.10.0
.Static methods
staticinlinehas(this:Int, dir:FlxDirectionFlags):Bool
Returns true if this contains all of the supplied flags.
staticinlinewith(this:Int, dir:FlxDirectionFlags):FlxDirectionFlags
Creates a new FlxDirections
that includes the supplied directions.
staticinlinewithout(this:Int, dir:FlxDirectionFlags):FlxDirectionFlags
Creates a new FlxDirections
that excludes the supplied directions.