StendhalDesign: Difference between revisions
Content deleted Content added
No edit summary |
Replaced pig by sheep |
||
Line 4:
= Plot =
Stendhal's plot is to grow
The task is not simple because you will have to look after them because hungry wolves will try to eat your
You will need to spend money on getting new weapons and armors and healing potions.
Line 32:
* Player enter village in entry point
* Player moves to Farm zone
* Player talks with
<pre>
Player: Hi
Seller: Greetings! How may I help you?
Player: buy
Seller: Do you want to buy a
Player: yes
Seller: Thank you! Bye
</pre>
* Player moves.
* Player moves to plains
* Player moves around looking for food
* Player protect
* When
* Player talks with
<pre>
Player: Hi
Buyer: Greetings! How may I help you?
Player: sell
Buyer: Do you want to sell this
Player: yes
Buyer: Thank you! Bye
</pre>
* Player spend money in new
*# Armor
*# Weapon
*# Healing potions
===
FOREVER do:
* Listen to Player
* If listen "Hi":
** Seller says "Greetings <Player>!"
* If listen "Buy
** Seller says "Do you want to buy a
* If listen "yes" from Player:
** If Player money - 50 > 0:
*** set Player money=Player money - 50
*** Duplicate
*** Make
* Say bye to Player
DONE
===
FOREVER do:
* Listen to Player
* If listen "Hi":
** Seller says "Greetings <Player>!"
* If listen "Sell
** Estimate
** Seller says "Do you want to sell buy a
* If listen "yes" from Player:
** set Player money=Player money + <estimated price>
** Destroy
* Say bye to Player
DONE
===
*
* Player buys
*
*
* If
**
**
**
* Player sells
*
===Wolf's user case===
* Wolf moves
* If Wolf sees
** Wolf attacks
* If Wolf is attacked:
** Wolf attacks Attacker
Line 110:
== Entities ==
The above user cases shows the next entities in our system:
*
*
*
* Wolf
* Player
Line 121:
Let's describe each entity with its attributes and actions related.
===
It has the following set of attributes:
* x
Line 131:
* weight
* follow
* eat
If
=== Wolf ===
Line 155:
Wolf behaviour consists in patrolling some assigned areas.<br>
If Wolf finds
If Wolf is attacked, Wolf attacks.<br>
If Wolf is injured, Wolf will runaway.<br>
===
It has the following set of attributes:
* x
Line 181:
* hp
* atk
*
* money
| |||