Skip to content

Create a passage class

Is your feature related to a problem? Please describe.

To create a story, we need to represent a story by different conflicts and points where a choice has to be made. This is done through a passage. There should be something describing this passage and it should also be connected to one or more links. If all passages in a story has only one link, the story is linear and there is only one path. Two passages are equal if they have the same title. We do not want two passages in the same story to have the same name. Create tests to both describe how the functionality should behave and for trust in the code.

Describe the solution you'd like.

Look at the image below for the class diagram. Use the List interface to store several links. This represents the possible paths a player can take from a passage.

image

Edited by Carl Gützkow