Create Action interface with several child classes
Is your feature related to a problem? Please describe.
When a player selects a link to go through, the player might be affected in some way eg. score, health, gold or inventory. The action interface describes how each action should be implemented.
Describe the solution you'd like.
The image below describes the proposed solution. Each action has an execute method which takes a player as a parameter and modifies it in some way. When an action is called, it takes in some kind of parameter set by each type of action. When the action interface is implemented, add the action list to the link class.