TriggerRegion class

Base class for representing trigger regions. It's a predefine region in 3D space, owned by one or more triggers. The shape of the trigger can be arbitrary.

@author {@link https://github.com/Mugen87|Mugen87}

Implementers

Constructors

TriggerRegion()

Properties

hashCode int
The hash code for this object.
no setterinherited
radius double
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

fromJSON(Map<String, dynamic> json) TriggerRegion
Restores this instance from the given JSON object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJSON() Map<String, dynamic>
Transforms this instance into a JSON object.
toString() String
A string representation of this object.
inherited
touching([GameEntity? entity]) bool
Returns true if the bounding volume of the given game entity touches/intersects the trigger region. Must be implemented by all concrete trigger regions.
update([Trigger? trigger]) TriggerRegion
Updates this trigger region. Must be implemented by all concrete trigger regions.

Operators

operator ==(Object other) bool
The equality operator.
inherited