Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class WeaponFactory {
- public WeaponFactory() {
- }
- public Arme createWeapon (String type, String nom){
- if(type.equals("SWORD"))
- return new Epee();
- else if (type.equals("DAGGER"))
- return new Dague();
- else if (type.equals("SHIELD"))
- return new Bouclier();
- else return null;
- }
- public Arme improve(String extension, String nomArme, int force){
- if (extension.equals("AMPLIFIED") && ){
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement