Interface MobBehaviour.Factory

Enclosing interface:
MobBehaviour
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface MobBehaviour.Factory
Builds the behaviour bound to one mob.
Since:
0.1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    create(Mob mob)
     
  • Method Details

    • create

      MobBehaviour create(Mob mob)
      Parameters:
      mob - the mob the behaviour drives
      Returns:
      the behaviour instance, owned by that mob alone
      Since:
      0.1.0