BlockingMovement

constructor(fromLoc: LocationIfc, toLoc: LocationIfc, velocity: Double, movePriority: Int = MOVE_PRIORITY, name: String? = null)

Represents the movement of the entity from the specified location to the specified location at the supplied velocity. This wraps the movement within a blockage which will cause entities that are waiting for the movement to complete to block (suspend) until the movement is completed.

If the entity is not currently at fromLoc then its current location is quietly set to fromLoc, without movement before the move commences.

Parameters

fromLoc

, the location from which the entity is supposed to move

toLoc

the location to which the entity is supposed to move

velocity

the velocity associated with the movement, must be greater than 0.0

movePriority

, since the move is scheduled, a priority can be used to determine the order of events for moves that might be scheduled to complete at the same time.


constructor(toLoc: LocationIfc, velocity: GetValueIfc = this@Entity.velocity, movePriority: Int = MOVE_PRIORITY, name: String? = null)
constructor(toLoc: LocationIfc, velocity: Double, movePriority: Int = MOVE_PRIORITY, name: String? = null)

Represents the movement of the entity from the specified location to the specified location at the supplied velocity. This wraps the movement within a blockage which will cause entities that are waiting for the movement to complete to block (suspend) until the movement is completed.

The current location of the entity is used at the origin location.

Parameters

toLoc

the location to which the entity is supposed to move

velocity

the velocity associated with the movement, must be greater than 0.0

movePriority

, since the move is scheduled, a priority can be used to determine the order of events for moves that might be scheduled to complete at the same time.


constructor(fromLoc: LocationIfc, toLoc: LocationIfc, velocity: GetValueIfc = this@Entity.velocity, movePriority: Int = MOVE_PRIORITY, name: String? = null)

Parameters

fromLoc

, the location from which the entity is supposed to move

toLoc

the location to which the entity is supposed to move

velocity

the velocity associated with the movement

movePriority

, since the move is scheduled, a priority can be used to determine the order of events for moves that might be scheduled to complete at the same time.