Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Pokedex;
- public abstract class Pokemon {
- private String name;
- private String type;
- private String movePool;
- public Pokemon(){
- this.name = "noName";
- this.type = "noType";
- this.movePool = "noMove";
- }
- public Pokemon(String name, String type, String movePool){
- this.name = name;
- this.type = type;
- this.movePool = movePool;
- }
- public void attack(){
- System.out.println(name + " used " + movePool);
- System.out.println();
- }
- public void talk(){
- System.out.println(name + "! ");
- }
- public String getName(){
- return this.name;
- }
- public String getType(){
- return this.type;
- }
- public String movePool(){
- return this.movePool;
- }
- public void setName(String name){
- this.name = name;
- }
- public void setType(String type){
- this.type = type;
- }
- public void setMovePool(String movePool){
- this.movePool = movePool;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement