Welcome, Guest! Log In | Create Account

Changeset 45606

Show
Ignore:
Timestamp:
11/01/09 23:20:46 (2 months ago)
Author:
spalek
Message:

Commented the rest of the loop() logic

Location:
scummvm/trunk/engines/draci
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • scummvm/trunk/engines/draci/game.cpp

    r45604 r45606  
    243243void Game::loop() { 
    244244        // Can run both as an outer and inner loop.  In both mode it updates 
    245         // the screen according to the timer.  It the outer mode it also reacts 
    246         // to user events.  In the inner mode, the loop runs until its stopping 
     245        // the screen according to the timer.  It the outer mode 
     246        // (kSubstatusOrdinary) it also reacts to user events.  In the inner 
     247        // mode (all other kSubstatus* enums), the loop runs until its stopping 
    247248        // condition, possibly stopping earlier if the user interrupts it, 
    248249        // however no other user intervention is allowed. 
     
    304305                        updateTitle(); 
    305306 
     307                        // During the normal game-play, in particular not when 
     308                        // running the init-scripts, enable interactivity. 
    306309                        if (_loopStatus == kStatusOrdinary && _loopSubstatus == kSubstatusOrdinary) { 
    307310                                if (_vm->_mouse->lButtonPressed()) { 
  • scummvm/trunk/engines/draci/game.h

    r45597 r45606  
    160160 
    161161enum LoopStatus { 
    162         kStatusOrdinary, 
    163         kStatusGate, 
    164         kStatusInventory, 
    165         kStatusDialogue 
     162        kStatusOrdinary,        // normal game-play: everything allowed 
     163        kStatusGate,            // during running init-scripts when entering a room: disable interactivity 
     164        kStatusInventory,       // inventory is open: cannot change the room or go to map 
     165        kStatusDialogue         // during a dialogue: cannot change the room, go to inventory 
    166166}; 
    167167 
    168168enum LoopSubstatus { 
    169         kSubstatusOrdinary, 
    170         kSubstatusTalk, 
    171         kSubstatusFade, 
    172         kSubstatusStrange 
     169        kSubstatusOrdinary,     // outer loop: everything is allowed 
     170        kSubstatusTalk,         // playing a voice: inner loop will exit afterwards 
     171        kSubstatusFade,         // fading a palette: inner loop will exit when done 
     172        kSubstatusStrange       // other inner loop: either immediately exiting or waiting for an animation to end (whose callback ends the loop) 
    173173}; 
    174174