Header Sep

Symbian OS Tips, Tricks & Code

Score
Login to rate page

February 2006

UIQ 3 board game code example

Board games can be easily created in UIQ 3 by using the CCoeControl based control framework. This code example shows how board games in UIQ 3 can be created using CCoeControl derived controls. The example application implements the Mines board game: 

Download example application>>

The screen shot below shows the running application: 
 

Important programming idioms are shown in the application source code, and parts of the application architecture can be reused for other board games.

The game board is divided into equal-sized squares. Each square in the game is a CCoeControl-derived control, which means that it has the ability to draw itself since it implements the Draw()-method. The status-information displayed at the top, such as the time and number of mines still to be flagged are drawn using a special-purpose text control. 

For more details of the board game implementation, see the example application source code. 

To build the example application for UIQ 3-based phones, use the following commands:

$ bldmake bldfiles
$ abld build gcce urel
$ makesis minesweep.pkg

More information:

Score
Login to rate page