Open main menu

CDOT Wiki β

Changes

BTP300 Student Resources

23 bytes removed, 18:05, 11 October 2011
Student Resources
{{BTP300 Index | 20113}}
=Student Resources=
The purpose of this page is to share useful information that can help all groups with their projects.
==Pseudo Code==
This should help you with your designs of some of the classes. Not all functions are included. The simpler ones are omitted.
===CFrame===
* CFrame::Constructor
** initialize instance variables
** determine if full screen
*** if full screen set width and height to console width and height
** initialize covered area to nothing
* CFrame::Destructor
** release the covered area
* CFrame::setLine
** release the dynamic memory used to store the hidden characters
* move
** create pointer to meesage message for moving
** capture the characters hidden by the message
** for each move request
*** may need to draw the frame after removing the message
===CField===
* CField::Constructor
** pass parameter data to CFrame
** store the address of the field data in the instance pointer
* CField::Destructor** does nothing
* CField::display
** call CFrame::display with the offest offset received
* CField::edit
** call CFrame::edit with the address of the data belonging to the field