-
Notifications
You must be signed in to change notification settings - Fork 1
/
Classes.txt
76 lines (74 loc) · 2.16 KB
/
Classes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
Classes:
1. Card
a. Variables:
1. Cost
2. Type (Color and type of science) (integer code?)
3. Prerequisite Cards/Building Cards/Chaining Cards (ArrayList<Card>)
4. VPboolean (can card give VP)
b. Methods
1. Playable(Board b)
a. Player has resources
b. Can be built off another played Card
2. get/set methods
3. toString
2. Deck
a. ArrayList<Cards>deckAge1
b. ArrayList<Cards>deckAge2
c. ArrayList<Cards>deckAge3
d. ArrayList<Cards>discard
3. Player
a. ArrayList<Cards>CardsPlayed
1. Holds cards the player has played
2. Used for building/chaining cards
b. Wonder w
1. Set in constructor
2. Randomly chosen by Board
c. ArrayList<Card>Hand
1. Has every card the player has
2. Contains options for wonder (ie 3 stone thing for wonder 1)
d. ArrayList<Resources>resourceList
e. int money (amount of coins)
f. int warMinusPoints
g. int warPlusPoints
h. int armies
i. int sciGear
j. int sciTablet
k. int sciLit
4. Board
a. ArrayList<Wonder>wonder
1. Holds all 7 wonders
b. Start method
1. Create decks for each age (Age 1, 2, 3- 21 cards in each age's deck)
a. Randomize 5 Guild cards to add for Age 3
2. calls deal(1)
3. gives each player a wonder (randomly Math.random()*wonder.size(), remove wonder after choosing for a player)
c. deal(int age)
1. deal cards of (int age)
2. 7 per player
d. calcPoints() (Victory Points and Sciences)
ArrayList<Integer>VP
1. warMinusPoints+warPlusPoints
2. Cards (Gold, Blue, Purple)
a. Go through player hand for gold/blue/purple cards
b. if the type can give VP then add VP
3. WonderStages
a. Go through a player's wonder and check for VP
4. Coin
a. Coins for player/3
5. Science
a. (MinOfAllSciInts)*7 (for each set of all 3 sciences, add 7 VP)
b. (sciInts)^2 (square each science int)
e.
5. Wonder
1. Name
2. Levels (and effects)
3. int CurrentStage
4. Resource produced by Wonder
6. GameState
a.
7. Graphics
public BufferedImage DisplayPlayer(int index)
public BufferedImage DisplayCard (Card c)
public void DisplayBoard (int index)
8. Resource
a. Type (Wood, Stone, Clay, etc)