Constructor and Description |
---|
GroupNPCFlock(Iterable<NPC> npcs,
double radius) |
Modifier and Type | Method and Description |
---|---|
static GroupNPCFlock |
create(Iterable<NPC> npcs) |
static GroupNPCFlock |
createWithRadius(Iterable<NPC> npcs,
double radius) |
Collection<NPC> |
getNearby(NPC npc)
Returns the NPCs to be considered part of a flock.
|
public Collection<NPC> getNearby(NPC npc)
NPCFlock
public static GroupNPCFlock create(Iterable<NPC> npcs)
public static GroupNPCFlock createWithRadius(Iterable<NPC> npcs, double radius)
Copyright © 2021. All rights reserved.