Skip to content

Retrieve game features and interactions

Raluca D. Gaina edited this page Feb 12, 2018 · 1 revision

The last thing that GameDescription class provide is a set of functions that describes the game more. The following table shows all different functions that can help you to understand and generate levels for the current described game:

GameDescription functions Description
ArrayList<Types.ACTIONS> getAvailableActions(boolean includeNIL) Get all the allowed actions to the player avatar in the current game. The input variable will either allow adding ACTIONS.ACTION_NIL to the list or not
ArrayList<TerminationData> getTerminationConditions() Get a list of all game termination conditions
HashMap<Character, ArrayList<String>> getLevelMapping() Get a hashmap for the original game level mapping
ArrayList<InteractionData> getInteraction(String stype1, String stype2) Get a list of interaction data that happens when two sprites (stype1, stype2) collides and empty list otherwise.

Table of Contents:

Clone this wiki locally