Changeset 45606
- Timestamp:
- 11/01/09 23:20:46 (2 months ago)
- Location:
- scummvm/trunk/engines/draci
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
scummvm/trunk/engines/draci/game.cpp
r45604 r45606 243 243 void Game::loop() { 244 244 // 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 247 248 // condition, possibly stopping earlier if the user interrupts it, 248 249 // however no other user intervention is allowed. … … 304 305 updateTitle(); 305 306 307 // During the normal game-play, in particular not when 308 // running the init-scripts, enable interactivity. 306 309 if (_loopStatus == kStatusOrdinary && _loopSubstatus == kSubstatusOrdinary) { 307 310 if (_vm->_mouse->lButtonPressed()) { -
scummvm/trunk/engines/draci/game.h
r45597 r45606 160 160 161 161 enum 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 166 166 }; 167 167 168 168 enum 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) 173 173 }; 174 174
