Class NPCFollowing
java.lang.Object
games.stendhal.server.entity.npc.interaction.NPCFollowing
- All Implemented Interfaces:
Observer
class for make one npc follower of other.
- Author:
- yoriy
-
Constructor Summary
ConstructorDescriptionNPCFollowing(SpeakerNPC leader, SpeakerNPC follower, Observer finish)
constructor -
Method Summary
Modifier and TypeMethodDescriptiongetOneThirdOfPath(FixedPath path)
return 1/3 of follower's pathvoid
update(Observable o, Object arg)
-
Constructor Details
-
NPCFollowing
constructor- Parameters:
leader
- - NPC for follow him.follower
- - follower of leader.finish
- - code to continue after follower meet leader.
-
-
Method Details