StendhalDesign: Difference between revisions
Content deleted Content added
No edit summary |
|||
Line 30:
We need to use several use cases to describe our game.
===Player's user case===
* Player moves to Farm zone▼
* Player talks with Sheep seller▼
<pre>
Player
Seller: Greetings! How may I help you?▼
Player: buy Sheep▼
Player:
Seller:
▲ Player: buy Sheep
Player: yes▼
Player: Hi▼
Player: sell Sheep▼
Player: yes
Buyer: Thank you! Bye
</pre>
▲* Player moves. Sheep follows Player.
▲* Player moves to plains
▲* Player moves around looking for food
▲* Player protect Sheep of wolves attacks
▲* When Sheep is big enough Player moves to Village
* Player talks with Sheep buyer▼
<pre>▼
▲ Player: Hi
▲ Player: sell Sheep
▲ Buyer: Do you want to sell this Sheep for 73 coins?
▲ Player: yes
▲ Buyer: Thank you! Bye
</pre>▼
▲* Player spend money in new Sheep and equipment
▲*# Armor
▲*# Weapon
▲*# Healing potions
===Sheep seller's user case===
▲<pre>
FOREVER do:
▲** Seller says "Do you want to buy a Sheep for 50 coins?"
*** set Player money=Player money - 50▼
*** Duplicate Sheep▼
Make Sheep follows Player
Say bye to Player
DONE
<pre>
===Sheep buyer's user case===
<pre>
FOREVER do:
** Estimate Sheep value related to Sheep weight▼
If listen "Sell Sheep" from Player:
▲** Seller says "Do you want to sell buy a Sheep for <estimated price> coins?"
▲* If listen "yes" from Player:
** Destroy Sheep▼
Say bye to Player
DONE
▲</pre>
===Sheep's user case===
<pre>
Sheep dissappear
</pre>
===Wolf's user case===
<pre>
** Wolf attacks Attacker▼
If Wolf is attacked:
</pre>
== Entities ==
| |||