Class WalkVisInteractor

java.lang.Object
com.mg105.use_cases.WalkVisInteractor

public class WalkVisInteractor extends Object
This class interacts with the WalkingCharacter entity.

It is responsible for modifying the sprite attribute of WalkingCharacter.

  • Constructor Details

    • WalkVisInteractor

      public WalkVisInteractor(GameState state)
      Creates a new WalkVisInteractor with reference to GameState.
      Parameters:
      state - the GameState being referred to.
  • Method Details

    • setWalkingSprite

      public void setWalkingSprite(String spriteName)
      Updates the current WalkingCharacter's sprite attribute.
      Parameters:
      spriteName - the name of the desired character sprite to be used.