Package com.mg105.use_cases
Class WalkVisInteractor
java.lang.Object
com.mg105.use_cases.WalkVisInteractor
This class interacts with the WalkingCharacter entity.
It is responsible for modifying the sprite attribute of WalkingCharacter.
-
Constructor Summary
ConstructorDescriptionWalkVisInteractor
(GameState state) Creates a new WalkVisInteractor with reference to GameState. -
Method Summary
Modifier and TypeMethodDescriptionvoid
setWalkingSprite
(String spriteName) Updates the current WalkingCharacter's sprite attribute.
-
Constructor Details
-
WalkVisInteractor
Creates a new WalkVisInteractor with reference to GameState.- Parameters:
state
- the GameState being referred to.
-
-
Method Details
-
setWalkingSprite
Updates the current WalkingCharacter's sprite attribute.- Parameters:
spriteName
- the name of the desired character sprite to be used.
-