@@ -0,0 +1,1818 @@
+package it.playfellas.superapp.logic.master;%0A%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0A%0Aimport it.playfellas.superapp.logic.master.game1.Master1Color;%0Aimport it.playfellas.superapp.logic.master.game1.Master1Direction;%0Aimport it.playfellas.superapp.logic.master.game1.Master1Shape;%0Aimport it.playfellas.superapp.logic.master.game23.Master2Alternate;%0Aimport it.playfellas.superapp.logic.master.game23.Master2Decreasing;%0Aimport it.playfellas.superapp.logic.master.game23.Master2Growing;%0Aimport it.playfellas.superapp.logic.master.game23.Master2Random;%0Aimport it.playfellas.superapp.logic.master.game23.Master3Controller;%0A%0A/**%0A * Created by affo on 13/10/15.%0A */%0Apublic class GameModTranslator %7B%0A    private static final Map%3CString, String%3E translations;%0A    public static final String UNKNOWN = %22UNKNOWN%22;%0A%0A    static %7B%0A        translations = new HashMap%3C%3E();%0A        translations.put(Master1Color.class.getCanonicalName(), %22Gioco 1 - Colore%22);%0A        translations.put(Master1Direction.class.getCanonicalName(), %22Gioco 1 - Direzione%22);%0A        translations.put(Master1Shape.class.getCanonicalName(), %22Gioco 1 - Forma%22);%0A        translations.put(Master2Growing.class.getCanonicalName(), %22Gioco 2 - Crescente%22);%0A        translations.put(Master2Decreasing.class.getCanonicalName(), %22Gioco 2 - Decrescente%22);%0A        translations.put(Master2Alternate.class.getCanonicalName(), %22Gioco 2 - Alternato%22);%0A        translations.put(Master2Random.class.getCanonicalName(), %22Gioco 2 - Random%22);%0A        translations.put(Master3Controller.class.getCanonicalName(), %22Gioco 3%22);%0A    %7D%0A%0A    public static String translate(Class%3C? extends MasterController%3E masterClass) %7B%0A        String t = translations.get(masterClass.getCanonicalName());%0A        if (t == null) %7B%0A            return UNKNOWN;%0A        %7D%0A        return t;%0A    %7D%0A%7D%0A

translate from master class to string