case class FollowTargetRule(enemies: ListBuffer[SentientEnemyProperty]) extends SentientRule with Product with Serializable
Rule to compute the acceleration to follow the target enemy
- enemies
list of enemies from which choose the target enemy
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- FollowTargetRule
- Serializable
- Serializable
- Product
- Equals
- SentientRule
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
-
new
FollowTargetRule(enemies: ListBuffer[SentientEnemyProperty])
- enemies
list of enemies from which choose the target enemy
Value Members
-
def
computeRule(sentient: SentientProperty, previousAcceleration: Vector): Vector
compute the acceleration to apply for this rule to the specified entity with the previous compute acceleration
compute the acceleration to apply for this rule to the specified entity with the previous compute acceleration
- sentient
entity to apply the rule
- previousAcceleration
previous acceleration compute
- returns
acceleration to apply this rule considered the previous acceleration
- Definition Classes
- FollowTargetRule → SentientRule
- val enemies: ListBuffer[SentientEnemyProperty]