StendhalDesign: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
No edit summary |
No edit summary |
||
| Line 26: | Line 26: | ||
We need to use several use cases to describe our game. |
We need to use several use cases to describe our game. |
||
===Player's user case=== |
===Player's user case=== |
||
* Player enter village in entry point |
|||
* Player moves to Farm zone |
|||
* Player talks with pig seller |
|||
<pre> |
<pre> |
||
Player: Hi |
Player: Hi |
||
| Line 37: | Line 37: | ||
Seller: Thank you! Bye |
Seller: Thank you! Bye |
||
</pre> |
</pre> |
||
* Player moves. Pig follows Player. |
|||
* Player moves to plains |
|||
* Player moves around looking for food |
|||
* Player protect pig of wolves attacks |
|||
* When pig is big enough Player moves to Village |
|||
* Player talks with pig buyer |
|||
<pre> |
<pre> |
||
Player: Hi |
Player: Hi |
||
| Line 51: | Line 51: | ||
Buyer: Thank you! Bye |
Buyer: Thank you! Bye |
||
</pre> |
</pre> |
||
* Player spend money in new pig and equipment |
|||
*# Armor |
|||
*# Weapon |
|||
*# Healing potions |
|||
===Pig seller's user case=== |
|||
FOREVER do: |
|||
* Listen to Player |
|||
* If listen "Hi": |
|||
** Seller says "Greetings <Player>!" |
|||
* If listen "Buy pig" from Player: |
|||
** Seller says "Do you want to buy a pig for 50 coins?" |
|||
* If listen "yes" from Player: |
|||
** If Player money - 50 > 0: |
|||
*** set Player money=Player money - 50 |
|||
*** Duplicate Pig |
|||
*** Make Pig follows Player |
|||
* Say by to Player |
|||
DONE |
|||
===Pig's user case=== |
|||
* Pig is in Farm |
|||
* Player buys Pig |
|||
* Pig seller duplicates Pig |
|||
* Pig follows Player |
|||
* If Pig finds food: |
|||
** Pig moves to food |
|||
** Pig eats food |
|||
** Pig gains weight |
|||
* Player sells Pig |
|||
* Pig dissappear |
|||
===Wolf's user case=== |
|||
* Wolf moves |
|||
* If Wolf sees Pig: |
|||
** Wolf attacks Pig |
|||
* If Wolf is attacked: |
|||
** Wolf attacks Attacker |
|||