Package com.deco2800.game.components.npc
Class NpcInteraction
java.lang.Object
com.deco2800.game.components.npc.NpcInteraction
- Direct Known Subclasses:
 AdvancedNpcInteraction
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionfloatget the current distancevoidupdateDistance(int distance) set new distance 
- 
Constructor Details
- 
NpcInteraction
public NpcInteraction(int playerId) Create a new instance of NpcInteractionn- Parameters:
 playerId-
 
 - 
 - 
Method Details
- 
updateDistance
public void updateDistance(int distance) set new distance- Parameters:
 distance-
 - 
getDistance
public float getDistance()get the current distance- Returns:
 - current
 
 
 -