Advertisement
alexjowilson7

card

Mar 5th, 2020
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.04 KB | None | 0 0
  1. import java.util.ArrayList;
  2. public class Card{
  3.    
  4.     //ATTRIBUTES
  5.     private String name;
  6.     private String cardImg;
  7.     private String description;
  8.     private int budget;
  9.     private boolean flipped = false;  
  10.     private int numRoles;
  11.     private ArrayList<Role> roles;
  12.     private ArrayList<cardArea> cardArea;
  13.    
  14.    
  15.  
  16.  
  17.  
  18.     //CONSTRUCTORS
  19.     public Card(){}
  20.     public Card(String name, String cardImg,String description, int budget, int numRoles, ArrayList<Role> roles, ArrayList<cardArea> cardArea){
  21.         this.name = name;
  22.         this.cardImg = cardImg;
  23.         this.description = description;
  24.         this.budget = budget;
  25.         this.numRoles = numRoles;
  26.         this.roles = roles;
  27.         this.cardArea = cardArea;
  28.     }
  29.  
  30.     // SETTERS
  31.     public void setName(String name){
  32.         this.name = name;
  33.     }
  34.     public String getCardImg() {
  35.         return cardImg;
  36.     }
  37.     public void setCardImg(String cardImg) {
  38.         this.cardImg = cardImg;
  39.     }
  40.     public void setDescription(String description){
  41.         this.description = description;
  42.     }
  43.  
  44.     public void setBudget(int budget){
  45.         this.budget = budget;
  46.     }
  47.  
  48.     public void setFlipped(boolean flipped){
  49.         this.flipped = flipped;
  50.     }
  51.     public void setNumRoles(int numRoles) {
  52.         this.numRoles = numRoles;
  53.     }
  54.     public void setRoles(ArrayList<Role> roles) {
  55.         this.roles = roles;
  56.     }
  57.     public ArrayList<cardArea> getCardArea() {
  58.         return cardArea;
  59.     }
  60.  
  61.    
  62.     // GETTERS
  63.     public String getName(){
  64.         return this.name;
  65.     }
  66.  
  67.     public String getDescription(){
  68.         return this.description;
  69.     }
  70.  
  71.     public int getBudget(){
  72.         return this.budget;
  73.     }
  74.  
  75.     public boolean getFlipped(){
  76.         return this.flipped;
  77.     }
  78.    
  79.     public int getNumRoles() {
  80.         return this.numRoles;
  81.     }
  82.     public ArrayList<Role> getRoles(){
  83.         return this.roles;
  84.     }
  85.     public void setCardArea(ArrayList<cardArea> cardArea) {
  86.         this.cardArea = cardArea;
  87.     }
  88.    
  89.     // METHODS
  90.     /*
  91.     */
  92. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement