Revision 841686

Go back to digest for 10th August 2008

Features in Games

Stefan Majewsky committed changes in /trunk/playground/games/palapeli:

Sync with what I did yesterday (without internet connection).

In libpalapelipattern:
* Allow to rescan the PatternTrader's configuration list.
* Finalize the libpalapelipattern API with the addition of the PatternPlugin class (which allows for multiple PatternConfiguration instances in one plugin).
* Randomize the random numbers.

In the pattern plugin subdirectory:
* Port the rectangular pattern to the new libpalapelipattern API.
* Add new pattern with hexagonal pieces (as a proof-of-concept implementation for arbitrary piece shapes).

In Palapeli itself:
* Add an autosaver class and adjust the settings interface to set autosave intervals. (This is not accessible from the interface by now.)
* Add a state manager class which records whether Palapeli's current stage is persistent. (This, and the above change, will make sense once I make a crash recovery interface.)
* Do not add relations to the Manager's list if there is a relation in the list that equals the given relation logically (by implementation of operator== for Palapeli::PieceRelation).

In general:* Remove some old TODO items.

File Changes

Added 9 files
  • /trunk/playground/games/palapeli
  •   /game/autosaver.cpp
  •   /game/autosaver.h
  •   /game/statemanager.cpp
  •   /game/statemanager.h
  •   /lib/pattern-plugin.cpp
  •   /lib/pattern-plugin.h
  •   /patterns/palapeli_hexagonpattern.desktop
  •   /patterns/pattern-hexagon.cpp
  •   /patterns/pattern-hexagon.h
Modified 24 files
  • /trunk/playground/games/palapeli
  •   /TODO
  •   /game/CMakeLists.txt
  •   /game/main.cpp
  •   /game/mainwindow.cpp
  •   /game/manager.cpp
  •   /game/manager.h
  •   /game/palapeli.kcfg
  •   /game/piece.cpp
  •   /game/piecerelation.cpp
  •   /game/piecerelation.h
  •   /game/settings.ui
  •   /lib/CMakeLists.txt
  •   /lib/palapelipatternplugin.desktop
  •   /lib/pattern-configuration.cpp
  •   /lib/pattern-configuration.h
  •   /lib/pattern-trader.cpp
  •   /lib/pattern-trader.h
  •   /lib/pattern.cpp
  •   /lib/pattern.h
  •   /patterns/CMakeLists.txt
  •   /patterns/palapeli_rectangularpattern.desktop
  •   /patterns/pattern-rectangular.cpp
  •   /patterns/pattern-rectangular.h
  •   /storage/gamestorage.cpp
33 files changed in total