Skip to content

Level Mapping Class

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

The following pages shows the functionalities supported by the LevelMapping class. LevelMapping class is a data structure that helps you construct LevelMapping hashmap in non painful way. The class support the following function:

LevelMapping functions Description
void addCharacterMapping(Character c, ArrayList list) Register a certain character with a list of sprites
Character getCharacter(ArrayList data) Return the corresponding character to a list of the sprites
ArrayList getArrayList(Character data) Return the list of sprites registered with the input character
HashMap<Character, ArrayList> getCharMapping() Return the constructed hashmap
void clearLevelMapping() Clear the whole hashmap

Table of Contents:

Clone this wiki locally