@@ -0,0 +1,979 @@
+package avs.models;%0A%0Aimport avs.utils.Textures;%0A%0Apublic class PlantFactory %7B%0A    public static final String KOPIKO = %22KOPIKO%22;%0A    public static final String TOWER = %22TOWER%22;%0A    public static final String BANGA = %22BANGA%22;%0A    public static final String TC7 = %22TC7%22;%0A%0A    private String request;%0A    private Textures tex;%0A%0A    public PlantFactory(String request, Textures tex) %7B%0A        this.request = request;%0A        this.tex = tex;%0A    %7D%0A%0A    public AllyEntity makePlant() %7B%0A        AllyEntity plant;%0A%0A        switch (this.request) %7B%0A            case KOPIKO:%0A                plant = new Kopiko(tex);%0A                break;%0A%0A            case TOWER:%0A                plant = new Tower(tex);%0A                break;%0A%0A            case BANGA:%0A                plant = new Banga(tex);%0A                break;%0A%0A            case TC7:%0A                plant = new Tc7(tex);%0A                break;%0A%0A            default:%0A                plant = null;%0A        %7D%0A%0A        return plant;%0A    %7D%0A%7D%0A

Create PlantFactory class.