by Tdarcos » Thu Sep 29, 2011 7:30 pm
Bainespal wrote:Now that it's been mentioned, I do feel that the library's treatment of the command to listen is inadequate
Let's consider that Hugo is a general purpose text-based adventure game processor. As such, the routines are going to be general purpose and targeted for the lowest common denominator, with the ability to override as needed.
So for most actions the default probably works right, but occasionally you need something better. When that happens you write the code that handles the special cases.
As a system, if done correctly, the base installation should hit at least the 95th percentile and hopefully 98th. This means that for 95 to 98% of all games, or 95-98% of even complicated games, the default library is adequate to do the job unchanged.
That means, given, say, that the library (objlib.h, resource.h, system.h, verblib.g, verblib.h, verbstub.g, verbstub.h, window.h, hugofix.g, hugofix.h, hugolib.h) is perhaps 20,000 lines, that at most you shouldn't have to code more than a couple hundred lines of replacement code.
[quote="Bainespal"]Now that it's been mentioned, I do feel that the library's treatment of the command to listen is inadequate [/quote]
Let's consider that Hugo is a general purpose text-based adventure game processor. As such, the routines are going to be general purpose and targeted for the lowest common denominator, with the ability to override as needed.
So for most actions the default probably works right, but occasionally you need something better. When that happens you write the code that handles the special cases.
As a system, if done correctly, the base installation should hit at least the 95th percentile and hopefully 98th. This means that for 95 to 98% of all games, or 95-98% of even complicated games, the default library is adequate to do the job unchanged.
That means, given, say, that the library (objlib.h, resource.h, system.h, verblib.g, verblib.h, verbstub.g, verbstub.h, window.h, hugofix.g, hugofix.h, hugolib.h) is perhaps 20,000 lines, that at most you shouldn't have to code more than a couple hundred lines of replacement code.