Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
2102-Group-Project-Spring-2017/src/model/Card.java
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
74 lines (46 sloc)
1.28 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* this is a very broad object class | |
* i know we said all the card stacks would be in here but like | |
* would it make more sense for them to be in the individual card classes? | |
* - jackie | |
* | |
*/ | |
public class Card | |
{ | |
private String _title; | |
private String _type; // you dont have to use this but i added it because theres so many different types of market cards i need something to keep track of which is which | |
private Boolean _effect; //True if it effects all players | |
private int _value; // Any integer value that can be attached to the card. If card needs no value, put 0. Value of cost for deal cards apparently. | |
private int _value2; //value of Down Payment | |
private int _value3; //value of Mortgage | |
private int _value4; //value of Cash Flow | |
public Card (String title, String type, Boolean effect, int value, int value2, int value3, int value4){ | |
_title = title; | |
_type = type; | |
_effect = effect; | |
_value = value; | |
_value1 = value2; | |
_value2 = value3; | |
_value3 = value4; | |
} | |
public String getTitle() | |
{ | |
return _title; | |
} | |
public String getType() | |
{ | |
return _type; | |
} | |
public int getValue(){ | |
return _value; | |
} | |
public int getValue2(){ | |
return _value2; | |
} | |
public int getValue3(){ | |
return _value3; | |
} | |
public int getValue4(){ | |
return _value4; | |
} | |
} |