trait DamageResistanceModel extends DamageAndResistance
The functionality that is necessary for interaction of a vital game object with the rest of the hostile game world.
A vital object can be hurt or damaged or healed or repaired (HDHR).
The actual implementation of how that works is left to the specific object and its interfaces, however.
The more involved values that are applied to the vital object are calculated by a series of functions
that contribute different values, e.g., the value for being damaged.
"Being damaged" is also not the same for all valid targets:
some targets don't utilize the same kinds of values in the same way as another,
and some targets utilize a different assortment of values than either of the first two examples.
The damage model is a common interface for producing those values
and reconciling those values with a valid target object
without much fuss.
By default, nothing should do anything of substance.
- Source
- DamageResistanceModel.scala
- See also
Vitality
- Alphabetic
- By Inheritance
- DamageResistanceModel
- DamageAndResistance
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def DamageUsing: Selector
- Definition Classes
- DamageResistanceModel → DamageAndResistance
- def DamageUsing_=(selector: Selector): Selector
- def Model: Form
- Definition Classes
- DamageResistanceModel → DamageAndResistance
- def Model_=(selector: Form): Form
- def ResistUsing: ResistanceSelection
- Definition Classes
- DamageResistanceModel → DamageAndResistance
- def ResistUsing_=(selector: ResistanceSelection): ResistanceSelection
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def calculate(data: DamageInteraction, resolution: base.DamageType.Value): Output
Magic stuff.
Magic stuff.
- data
the historical damage information
- resolution
an explicit damage resolution overriding the one provided
- returns
a function literal that encapsulates delayed modification instructions for certain objects
- Definition Classes
- DamageResistanceModel → DamageAndResistance
- def calculate(data: DamageInteraction): Output
Magic stuff.
Magic stuff.
- data
the historical damage information
- returns
a function literal that encapsulates delayed modification instructions for certain objects
- Definition Classes
- DamageResistanceModel → DamageAndResistance
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()