Revision 1191708

Go back to digest for 7th November 2010

Other in Games

Stefan Majewsky committed changes in /trunk/KDE/kdegames/kolf:

Adapt Kolf::Overlay and Kolf::Shape from playground/games/kolf2/base.

I'm aiming to restrict CanvasItem subclasses to those which are actually
relevant for the gameplay (e.g. Bumper, Cup, Bridge; e.g. NOT RectPoint
and WallPoint). The first step is to introduce a means of displaying
editing interfaces without the need for additional CanvasItems, i.e.
Kolf::Overlay.

The Overlay class relies on the Shape class which determines the
outlines, but Shape will also be useful for the upcoming step to Box2D.
That code is already available in playground/games/kolf2/base, but I've
kept things simple in this first step. The aim is to replace the editing
interface first, and further simplify datastructures in the various
CanvasItem subclasses in the process.

Currently, an overlay is only installed on Cup and Wall. I plan to
stabilize those first before I install overlays on all items.

File Changes

Added 6 files
  • /trunk/KDE/kdegames/kolf
  •   /overlay.cpp
  •   /overlay.h
  •   /shape.cpp
  •   /shape.h
  •   /utils-animateditem.cpp
  •   /utils-animateditem.h
Modified 5 files
  • /trunk/KDE/kdegames/kolf
  •   /canvasitem.cpp
  •   /canvasitem.h
  •   /CMakeLists.txt
  •   /game.cpp
  •   /game.h
11 files changed in total