New to mud coding but experienced player, taking several computer science courses this semester in C(++) and unix.
I'm trying to locate the guts of smaug time- the one that controls pulses, etc. I'd like to be able to write my own waits/lags, but can't find an example of it in the code. I figure, any wait/pause/lag has to call some unix function, and I'm guessing that's why sys/time is included, but I'm not familiar with the command. Could anyone point me to the file(s) that contain(s) the C or unix wait?
Also, on a similar note, I found that many smaug functions dealing with waiting use members of a pointer to a character struct. I think it's CHAR_DATA. What file is this defined in?
Hope you guys can help, I've gleaned much from lurking and will continue to do so.
I'm trying to locate the guts of smaug time- the one that controls pulses, etc. I'd like to be able to write my own waits/lags, but can't find an example of it in the code. I figure, any wait/pause/lag has to call some unix function, and I'm guessing that's why sys/time is included, but I'm not familiar with the command. Could anyone point me to the file(s) that contain(s) the C or unix wait?
Also, on a similar note, I found that many smaug functions dealing with waiting use members of a pointer to a character struct. I think it's CHAR_DATA. What file is this defined in?
Hope you guys can help, I've gleaned much from lurking and will continue to do so.