package cactusServer.models; import java.util.HashMap; import org.ntlab.radishforandroidstudio.framework.model3D.Model3D; public class CharacterManager { private static CharacterManager theInstance = null; private HashMap<Integer, Model3D> characters = new HashMap<>(); private CharacterManager() { } public static CharacterManager getInstance() { if (theInstance == null) { theInstance = new CharacterManager(); } return theInstance; } public Model3D getCharacter(int id) { return characters.get(id); } }