EntranceStrategy

Trait that model the entrance strategy interface.

class Object
trait Matchable
class Any

Value members

Abstract methods

def canEnter(entity: SimulationEntity): Boolean

It's the core of the strategy, and it decide if the entity can enter or not.

It's the core of the strategy, and it decide if the entity can enter or not.

Value parameters:
entity

the entity that wants to enter in the structure

Returns:

true if the entity can enter, false otherwise