Skip to content

Code Entry Primary Flow Control

dgets edited this page Nov 23, 2014 · 6 revisions

ddoc.js

Notes

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.

Layout

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.

Global Level Debauchery

Current OO Structure of docIface

Properties

  • menu - for help access from the main menu

Methods

  • getChoice() - just a wrapper for console.getkey() at the moment
  • doMainMenu() - displays the main menu
Sub-Objects
  • nav - navigation functionality
  • util - general utility
nav Methods
  • jump() - switching to a new sub-board/room
  • chk4Room() - searches to see if the substring passed exists in any room/sub-board description
util Methods
  • getRoomList() - passed true or false for whether confined, returns list of sub objects available
Clone this wiki locally