StendhalDesign: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 149:
=== Sheep ===
A sheep has the following set of attributes:
* <b>x</b> is the x-position of the sheep
* <b>y</b> is the y-position of the sheep
* <b>dx</b> is the x-speed of the sheep
* <b>dy</b> is the y-speed of the sheep
* <b>hp</b> is the life indicator of the sheep, when it reach 0 the sheep dies.
* <b>weight</b> is the weight indicator of the sheep, the more weight, the more expensive it is.
Sheep tasks should be:
Line 166:
=== Wolf ===
Wolves have the following set of attributes:
* <b>x</b> is the x-position of the
* <b>y</b> is the y-position of the
* <b>dx</b> is the x-speed of the
* <b>dy</b> is the y-speed of the
* <b>hp</b> is the life indicator of the
* <b>atk</b> is the RP attack value. See [[StendhalDesign#RP|RP rules]]
Wolf tasks should be:
Line 186:
=== Sheep seller and Sheep buyer ===
The buyer and seller have the following set of attributes:
* <b>x</b> is the x-position of the NPC
* <b>y</b> is the y-position of the NPC
* <b>dx</b> is the x-speed of the NPC
* <b>dy</b> is the y-speed of the NPC
* <b>attending</b> is the object_id of the player that is actually attending.
seller and buyer tasks would be:
Line 200:
=== Player===
The player has the following set of attributes:
* <b>x</b> is the x-position of the player
* <b>y</b> is the y-position of the player
* <b>dx</b> is the x-speed of the player
* <b>dy</b> is the y-speed of the player
* <b>hp</b> is the life indicator of the player, when it reach 0 the sheep dies.
* <b>atk</b> is the RP attack value. See [[StendhalDesign#RP|RP rules]]
* <b>money</b> is the quantity of money the player has.
It has three slots:
Line 229:
== Pseudocode ==
It is a good idea to first write pseudo code of how the design ideas should be implemented, as it will allow us to spot problems that are later harder to solve.
=RP=
'''TODO:''' Describe here the RP rules
| |||