-
Notifications
You must be signed in to change notification settings - Fork 0
MatchPlayer
MatchPlayer is a representation of a User during matches. It is designed to separate player variables which can change during a match from those which should remain unchanged. This particularly pertains the a Players deck, cards, and health which are all manipulated by BasicMatchController during a match.
Italics indicates fields is currently unused.
Type | Name |
---|---|
Player | player |
Int | maxPyramidCards |
Int | maxBoardCards |
Int | health |
Deck | deck |
public MatchPlayer(Player player, int maxPyramidCards, int maxBoardCards)
The constructor saves player, maxPyramidCards, and maxBoardCards to the related private fields. It also sets the health field using the player.getMaxHealth() method.
Additionally it creates a new deck which is a copy of the Users deck using the player getDeck() method and the deck addCard() method. This deck is also shuffled using deck.shuffleDeck()
Name | Returns | Parameters | Description |
---|---|---|---|
getNextReplenish | List<Card> | int number | Used to Remove the given number of cards from the deck and add them to the pyramid |
changeHealth | Void | *int diff | Used to increase or decrease the players health |
attackedBy | Void | MatchCard attacker | Uses the changeHealth Method to adjust health based on the attack value of the card passed as parameter |
getPlayer | this.player | - | Used to get the instance of player |
getHealth | this.health | - | Used to get the current players health |
getDeck | this.deck | - | Used to get the current players deck |
Correct as at 05.09.16 @lyndonmoore
Saving and Loading
Statistics tracking
- Statistics Tracking Overview
- Statistics Tracking
- User Statistics
- Champion Statistics
- Common Statistics
Game Play
APIs
- Section One: Pyramid Scheme Beginner's Guide
- Section Two: Getting Started
- Section Three: The Pyramid
- Section Four: Game Layout Explanation
- Section Five: Cards
- Section Six: Champions
- Section Seven: DuckDust
- Section: Eight: How to play Pyramid Scheme
- Section Nine: Ways to play
- Section Ten: Deck Building
- Section Eleven: How to Acquire Cards
- Section Twelve: Achievements
- Section Thirteen: Accessories
Other Guides
Design Guides
Overviews
- Architecture Overview
- UI Overview
- Main Menu Screen Overview
- Standardised Screen Graphics
- Overview of Graphics
Features
- Story Mode
- Cutscenes
- Beginners Guide Tutorial
- Clock
- Deckbuilding
- Card Deck Gallery
- Champion Roster
- Market Place
- Card Packs
- Game Settings
- Tool-tips
Animations
Splash Screen & Create Account Screen
Player Account Settings
AI
Duck Dust
Brainstorming
- Brainstorming - General
- Brainstorming - UI
- Brainstorming - Mechanics
- Brainstorming - Pyramid Design Discussion
- Brainstorming - Champions, Abilities and Design Mock-up
- Brainstorming - Achievement
Future Development