-
Notifications
You must be signed in to change notification settings - Fork 0
System Behaviour Analysis
For our first deliverable, we would like to release a basic Pokémon Game, where the user can choose a Pokémon and attack the Opponent's Pokémon with it.
Our expectations list is divided into two parts: before the game starts, and after the game starts.
Before the game starts:
- The system should be able to load the UI. The user will be able to see the game board.
- The system should be able to read the description files to create the cards, decks and define the abilities.
After the game starts:
- The Player should be able to interact to the cards in his hand, and place them on the board. Therefore this includes:
- The Player should be able to choose a Pokémon card and put it in the Active Pokémon section;
- He/She should be able to put some Pokemons in the Pokémon Bench;
- Attach an energy card to the Pokemon;
All of this behaviour is done through out the mouse. The user can simply click on the card that he/she wants to play, and then click on the destination of where the card should be placed.
Here is the sequence: When a player clicks on a card, a onHandCardClicked() method is called which will pass in two arguments (the player and the card), which will allow to call another method named GameBoard(). This method is actually the main controller. In this case, it will allow the player to select the card in this case. Once the player selects a Pokémon card in his hand, and then clicks on the Active slot, it will call a method name onActiveCardClicked(). This method will pass in the card to the game controller that the player wants to put a Pokémon as an Active Pokémon.
- Pokémon's behaviour
- A Pokémon is enable to attack the other Pokémon each turn;
- A Pokémon can be retreated;
The player can click on his/her own Pokémon, and be able to select a particular attack to perform an attack action on the opponent's Pokémon. Of course, the system should be able to perform the game logic behind it as well, which will include calculating the damage and the damage taken (hit points). When a Pokémon loses all oh his hp, it dies (or we should say, that it is defeated), and the card goes into the discarded pile.
Concordia University
Department of Computer Science and Software Engineering
COMP 354 Pokemon Go Back