Class BaseNPC

All Implemented Interfaces:
IArtifact
Direct Known Subclasses:
NPC

public class BaseNPC extends RenderableArtifact implements IArtifact
  • Constructor Details

    • BaseNPC

      public BaseNPC(Resource imageLocation, float startingXpos, float startingYpos, float rotation, float size)
  • Method Details

    • canSeeTarget

      public boolean canSeeTarget(TilePos targetPos)
    • moveTowardsTarget

      public void moveTowardsTarget(TilePos targetPos, float speed)
    • lookAt

      public void lookAt(float angle)
    • handleCollisions

      public void handleCollisions()
    • update

      public void update(float deltaTime)