BrainHurt class final

What Brain.onHurt is handed: the actor's mind and how much it was hurt by.

One object, so a minor can hand a brain more — what kind of harm, where it landed — without breaking a brain written against 1.0. A brain reads it during the call and does not keep it: its mind is the system's and moves on to the next actor.

Constructors

BrainHurt({required Mind mind, required double amount})
The hurt of amount to the actor behind mind.
const

Properties

amount → double
How much health it lost, in the units its health counts in.
final
hashCode → int
The hash code for this object.
no setterinherited
mind → Mind
The actor's mind; who did it is its Mind.hurtBy.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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