Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Update Card.java
- Loading branch information
Showing
1 changed file
with
52 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,88 @@ | ||
package model; | ||
|
||
|
||
|
||
/* | ||
* 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 | ||
|
||
private int _value; // Any integer value that can be attached to the card. If card needs no value, put 0 | ||
|
||
private int _value1; //value of cost | ||
|
||
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){ | ||
|
||
_title = title; | ||
|
||
_type = type; | ||
|
||
_effect = effect; | ||
_value = value; | ||
} | ||
|
||
|
||
_value = value; | ||
|
||
} | ||
public String getTitle() | ||
|
||
{ | ||
return _title; | ||
} | ||
|
||
public String getType() | ||
{ | ||
return _type; | ||
} | ||
|
||
public int getValue(){ | ||
return _value; | ||
} | ||
|
||
|
||
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 = value; | ||
|
||
_value2 = value; | ||
|
||
_value3 = value; | ||
|
||
_value4 = value; | ||
|
||
|
||
} | ||
|
||
|
||
} |