Advertisement
Guest User

Untitled

a guest
Dec 6th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. public class WeaponFactory {
  2.  
  3. public WeaponFactory() {
  4. }
  5.  
  6.  
  7. public Arme createWeapon (String type, String nom){
  8. if(type.equals("SWORD"))
  9. return new Epee();
  10. else if (type.equals("DAGGER"))
  11. return new Dague();
  12. else if (type.equals("SHIELD"))
  13. return new Bouclier();
  14. else return null;
  15. }
  16.  
  17. public Arme improve(String extension, String nomArme, int force){
  18. if (extension.equals("AMPLIFIED") && ){
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement