Repository navigation
Use Case: Play Game
Jemal Abdullahi edited this page Apr 16, 2020
·
5 revisions
The goal of this use case is for the player to interact with the game. This use case consists of taking in various inputs/controls from the user to make their character perform different actions. These actions include movement, attack, gather, and build.
N/A
Character must be created
Player must have entered the game
- This use case begins when the player provides input to the system.
- The system ascertains that the input is valid and bound to a specific action.
- The system manipulates the character in a manner corresponding to the input.
- The use case repeats as long as the player remains in the game and continues to provide input.
None
- This flow begins when the system determines that the player’s input is not valid or bound to a control. Reference: Basic Flow Step 2.
- The character is not affected by the invalid input.
- The system awaits for valid input and the flow returns to Basic Flow Step 1.
N/A
a) The player’s character has completed the action
Additional controls can be added in the future.
| Field Name | Description | Type | Req’d | Valid Values | Edit/Notes |
|---|---|---|---|---|---|
| character | object that the player manipulates to play the game | Game Component | Y | Base Model | |
| input | Whatever the player inputs to manipulate the character | keyboard | Y | KeyCodes | valid input is held in keyCodes: currently-up, down, left, right, space |