Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.ArrayList;
- public class Card{
- //ATTRIBUTES
- private String name;
- private String cardImg;
- private String description;
- private int budget;
- private boolean flipped = false;
- private int numRoles;
- private ArrayList<Role> roles;
- private ArrayList<cardArea> cardArea;
- //CONSTRUCTORS
- public Card(){}
- public Card(String name, String cardImg,String description, int budget, int numRoles, ArrayList<Role> roles, ArrayList<cardArea> cardArea){
- this.name = name;
- this.cardImg = cardImg;
- this.description = description;
- this.budget = budget;
- this.numRoles = numRoles;
- this.roles = roles;
- this.cardArea = cardArea;
- }
- // SETTERS
- public void setName(String name){
- this.name = name;
- }
- public String getCardImg() {
- return cardImg;
- }
- public void setCardImg(String cardImg) {
- this.cardImg = cardImg;
- }
- public void setDescription(String description){
- this.description = description;
- }
- public void setBudget(int budget){
- this.budget = budget;
- }
- public void setFlipped(boolean flipped){
- this.flipped = flipped;
- }
- public void setNumRoles(int numRoles) {
- this.numRoles = numRoles;
- }
- public void setRoles(ArrayList<Role> roles) {
- this.roles = roles;
- }
- public ArrayList<cardArea> getCardArea() {
- return cardArea;
- }
- // GETTERS
- public String getName(){
- return this.name;
- }
- public String getDescription(){
- return this.description;
- }
- public int getBudget(){
- return this.budget;
- }
- public boolean getFlipped(){
- return this.flipped;
- }
- public int getNumRoles() {
- return this.numRoles;
- }
- public ArrayList<Role> getRoles(){
- return this.roles;
- }
- public void setCardArea(ArrayList<cardArea> cardArea) {
- this.cardArea = cardArea;
- }
- // METHODS
- /*
- */
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement