object MoveEffectStrategies
A factory of the possible move effects present in the game.
- Alphabetic
- By Inheritance
- MoveEffectStrategies
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
apply(moveEffectStrategyCode: String, moveType: MoveType, baseValue: Int)(addModifiers: Map[Modifier, Int], addAlterations: Map[Alteration, Int], removeAlterations: Set[Alteration]): (Attacker, Target) ⇒ NewTargetStatus
Provides the appropriate move effect a string code, the move type, all the modifiers to add and the alterations to add/remove to/from the target.
Provides the appropriate move effect a string code, the move type, all the modifiers to add and the alterations to add/remove to/from the target.
- moveEffectStrategyCode
the string code that discerns a certain effect
- moveType
the move type
- baseValue
the base value of the move effect
- addModifiers
the modifiers that must be added to the target status
- addAlterations
the alterations that must be added to the target status
- removeAlterations
the alterations to remove from the target status
- returns
the appropriate move effect
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
createBuffDebuffEffect(implicit addModifiers: Map[Modifier, Int], addAlterations: Map[Alteration, Int], removeAlterations: Set[Alteration]): (Attacker, Target) ⇒ Status
Provides a buff/debuff move effect: this type of effect only affects the modifiers and the alterations of the target's status.
Provides a buff/debuff move effect: this type of effect only affects the modifiers and the alterations of the target's status.
- addModifiers
the modifiers to add (or to update if already present) to the target's status
- addAlterations
the alterations to add (or to update if already present) to the target's status
- removeAlterations
the alterations to remove (if present) from the target's status
- returns
the move effect modeling an appropriate buff/debuff modification
-
def
createPercentageEffect(percentage: Int)(implicit addModifiers: Map[Modifier, Int], addAlterations: Map[Alteration, Int], removeAlterations: Set[Alteration]): (Attacker, Target) ⇒ Status
Provides a percentage move effect that describes how to: 1) Increase/decrease the target's health points by a certain percentage.
Provides a percentage move effect that describes how to: 1) Increase/decrease the target's health points by a certain percentage. 2) Possibly affect the modifiers and the alterations of the target's status.
- percentage
the percentage value that will be multiplied by the health points of the target (formula: hp * percentage / 100)
- addModifiers
the modifiers to add (or to update if already present) to the target's status
- addAlterations
the alterations to add (or to update if already present) to the target's status
- removeAlterations
the alterations to remove (if present) from the target's status
- returns
the move effect modeling an appropriate percentage modification
-
def
createStandardDamageEffect(moveType: MoveType, baseDamage: Int)(implicit addModifiers: Map[Modifier, Int], addAlterations: Map[Alteration, Int], removeAlterations: Set[Alteration]): (Attacker, Target) ⇒ Status
Provides a standard damage effect that describes how to: 1) Decrease the target's health points.
Provides a standard damage effect that describes how to: 1) Decrease the target's health points. 2) Possibly affect the modifiers and the alterations of the target's status.
- moveType
the move type
- baseDamage
the base damage value
- addModifiers
the modifiers to add (or to update if already present) to the target's status
- addAlterations
the alterations to add (or to update if already present) to the target's status
- removeAlterations
the alterations to remove (if present) from the target's status
- returns
the move effect modeling an appropriate standard damage
-
def
createStandardHealEffect(baseHeal: Int)(implicit addModifiers: Map[Modifier, Int], addAlterations: Map[Alteration, Int], removeAlterations: Set[Alteration]): (Attacker, Target) ⇒ Status
Provides a standard heal effect that describes how to: 1) Increase the target's health points.
Provides a standard heal effect that describes how to: 1) Increase the target's health points. 2) Possibly affect the modifiers and the alterations of the target's status.
- baseHeal
the base heal value
- addModifiers
the modifiers to add (or to update if already present) to the target's status
- addAlterations
the alterations to add (or to update if already present) to the target's status
- removeAlterations
the alterations to remove (if present) from the target's status
- returns
the move effect modeling an appropriate standard healing
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val minDamage: Int
-
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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )