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 sheepwolf
* <b>y</b> is the y-position of the sheepwolf
* <b>dx</b> is the x-speed of the sheepwolf
* <b>dy</b> is the y-speed of the sheepwolf
* <b>hp</b> is the life indicator of the sheepwolf, when it reach 0 the sheep dies.
* <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
* x
* <b>y</b> is the y-position of the NPC
* y
* <b>dx</b> is the x-speed of the NPC
* dx
* <b>dy</b> is the y-speed of the NPC
* dy
* <b>attending</b> is the object_id of the player that is actually attending.
* 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
* x
* <b>y</b> is the y-position of the player
* y
* <b>dx</b> is the x-speed of the player
* dx
* <b>dy</b> is the y-speed of the player
* dy
* <b>hp</b> is the life indicator of the player, when it reach 0 the sheep dies.
* hp
* <b>atk</b> is the RP attack value. See [[StendhalDesign#RP|RP rules]]
* atk
* <b>money</b> is the quantity of money the player has.
* money
 
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