Packages

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
Serializable, Serializable, Product, Equals, SentientRule, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FollowTargetRule
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. SentientRule
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FollowTargetRule(enemies: ListBuffer[SentientEnemyProperty])

    enemies

    list of enemies from which choose the target enemy

Value Members

  1. 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
    FollowTargetRuleSentientRule
  2. val enemies: ListBuffer[SentientEnemyProperty]