
www.Usenet.com
| <-- __Chronological__ --> | <-- __Thread__ --> |
Dnia Wed, 26 Nov 2003 09:22:00 +0200, Topi Linkala napisal(a):
Scenario 3: Our hero decides to dispatch the monster to the hereafter and thus stops the occupation. The used 6000 energies are registered against the ground tile as used to dig a pit. When our hero resumes the digging the 6000 used energies are (totally or partially) counted towards the new digging action.
Note: it's generally bad idea to store such a counter in the map tile directly. It's much better to store some kind of list of places where the player started doing something, together with such counters. Such a list is usually quite short (especially if you remove timed-out entries) and you can easily search it to check whether the character starts a new action or continues an old one.
The list should be stored with the level info rather than character's info, so that any character may finish the action.
Topi -- "The whole problem with the world is that fools and fanatics are always so certain of themselves, but wiser people so full of doubts." - Bertrand Russell "How come he didn't put 'I think' at the end of it?" - Anonymous
| <-- __Chronological__ --> | <-- __Thread__ --> |