-
Notifications
You must be signed in to change notification settings - Fork 1
Code Entry Primary Flow Control
Damon Getsman edited this page Jan 22, 2015
·
6 revisions
At first it was just the primary menu hooks and general flow loop that existed in this file, along with a couple of nasty globals. I'm starting to put the BBS navigation code (primarily for 'J'ump functionality, at this point) into here, we'll see what else might end up here in the future.
This one isn't too ate up, from the simplicity of what's been here so far. I'm doing my best to try to keep it clean as I go.
-
menu
- for help access from the main menu -
sprompt
- prompt for saving messages
-
getChoice()
- just a wrapper forconsole.getkey()
at the moment -
log_str_n_char()
- nice little function to log a string explaining something (such as that we are at a 'read level' menu instead of primary, and then log the keystroke, as well -
doMainMenu()
- displays the main menu
-
nav
- navigation functionality -
util
- general utility
-
jump()
- switching to a new sub-board/room -
chk4Room()
- searches to see if the substring passed exists in any room/sub-board description -
skip()
- disregards anything unread in the current room (no pointer modification), pulls a room list, moves to the next room in the list in a linear fashion
-
getRoomList()
- passed true or false for whether confined, returns list of sub objects available -
initDdoc()
- passed true or false for whether confined, saves settings for restoration upon shell exit; this will be modified more based on user settings in upcoming versions -
quitDdoc()
- restores settings set ininitDdoc()