SHERLOCK: Extra method comments
This commit is contained in:
parent
42a99354f9
commit
b4c3d9840c
14 changed files with 132 additions and 17 deletions
|
@ -188,6 +188,9 @@ void Settings::drawInteface(bool flag) {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Draws the buttons for the settings dialog
|
||||
*/
|
||||
int Settings::drawButtons(const Common::Point &pt, int _key) {
|
||||
Events &events = *_vm->_events;
|
||||
People &people = *_vm->_people;
|
||||
|
@ -259,7 +262,6 @@ int Settings::drawButtons(const Common::Point &pt, int _key) {
|
|||
return found;
|
||||
}
|
||||
|
||||
|
||||
/*----------------------------------------------------------------*/
|
||||
|
||||
UserInterface::UserInterface(SherlockEngine *vm) : _vm(vm) {
|
||||
|
@ -298,6 +300,9 @@ UserInterface::~UserInterface() {
|
|||
delete _controlPanel;
|
||||
}
|
||||
|
||||
/**
|
||||
* Resets the user interface
|
||||
*/
|
||||
void UserInterface::reset() {
|
||||
_oldKey = -1;
|
||||
_help = _oldHelp = -1;
|
||||
|
@ -1962,6 +1967,12 @@ void UserInterface::doTalkControl() {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles events when the Journal is active.
|
||||
* @remarks Whilst this would in theory be better in the Journal class, since it displays in
|
||||
* the user interface, it uses so many internal UI fields, that it sort of made some sense
|
||||
* to put it in the UserInterface class.
|
||||
*/
|
||||
void UserInterface::journalControl() {
|
||||
Events &events = *_vm->_events;
|
||||
Journal &journal = *_vm->_journal;
|
||||
|
@ -2013,6 +2024,9 @@ void UserInterface::journalControl() {
|
|||
|
||||
/**
|
||||
* Handles input when the settings window is being shown
|
||||
* @remarks Whilst this would in theory be better in the Journal class, since it displays in
|
||||
* the user interface, it uses so many internal UI fields, that it sort of made some sense
|
||||
* to put it in the UserInterface class.
|
||||
*/
|
||||
void UserInterface::doControls() {
|
||||
Events &events = *_vm->_events;
|
||||
|
@ -2702,5 +2716,4 @@ void UserInterface::checkAction(ActionType &action, const char *const messages[]
|
|||
events.setCursor(ARROW);
|
||||
}
|
||||
|
||||
|
||||
} // End of namespace Sherlock
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue