[This is preliminary documentation and is subject to change.]

Selects the next player to teleport to while patroling. Includes additional inclusion check (predicate).

Namespace: fCraft
Assembly: fCraft (in fCraft.dll) Version: 0.6.3.1 (0.6.3.1)

Syntax

   
 C# 
public Player GetNextPatrolTarget(
	Player observer,
	Predicate<Player> predicate,
	bool setLastPatrolTime
)

Parameters

observer
Player
Player who is patrolling
predicate
Predicate<(Of <(<'Player>)>)>
Additional inclusion check for patrol targets. Applied after the standard checks. Allows filtering out unwanted players.
setLastPatrolTime
Boolean
Whether to set target's LastPatrolTime.

Return Value

Player who has been selected to be patrolled

Exceptions

ExceptionCondition
System..::..ArgumentNullException If observer or predicate is null.

See Also