Revision 2ccc103...

Go back to digest for 18th March 2012

Features in Games

Jakob Gruber committed changes in [picmi] /:

Basic save states

Board states can be saved and restored. Saved states are basically
pointers into the undo queue. Saving a state pushes the current undo
queue's size. Restoring a state pops the saved state stack and
repeatedly calls undo() until the undo queue's size equals the popped
size. Passing a save state through undo() deletes that saved state.

Currently, these actions are triggered by Ctrl + L and Ctrl + S.

Also, the current implementation very inefficiently recalculates the box
count and streaks after every single undo().

File Changes

Modified 6 files
  •   src/gui/mainwindow.cpp
  •   src/gui/mainwindow.h
  •   src/gui/scene.h
  •   src/logic/boardstate.cpp
  •   src/logic/boardstate.h
  •   src/logic/picmi.h
6 files changed in total