~ml-launchpad/ubuntu/natty/gcompris/fix-for-777349

« back to all changes in this revision

Viewing changes to src/boards/traffic.h

  • Committer: Bazaar Package Importer
  • Author(s): Marc Gariepy, Marc Gariepy, Stephane Graber
  • Date: 2010-01-04 17:42:49 UTC
  • mfrom: (1.1.14 upstream)
  • Revision ID: james.westby@ubuntu.com-20100104174249-7bupatd9dtxyhvs4
Tags: 9.0-0ubuntu1
[Marc Gariepy]
* New upstream release (9.0).
* Remove cache.c from POTFILES to avoid FTBFS
* Remove unneeded rm in debian/rules (file no longer exists upstream)

[Stephane Graber]
* Bump Debian standards to 3.8.3
* Add patch system (dpatch)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* gcompris - traffic.h
2
 
 *
3
 
 * Copyright (C) 2003 Bruno Coudoin
4
 
 *
5
 
 * Based on the original code from Geoff Reedy <vader21@imsa.edu>
6
 
 * Copyright (C) 2000 Geoff Reedy
7
 
 *
8
 
 *   This program is free software; you can redistribute it and/or modify
9
 
 *   it under the terms of the GNU General Public License as published by
10
 
 *   the Free Software Foundation; either version 3 of the License, or
11
 
 *   (at your option) any later version.
12
 
 *
13
 
 *   This program is distributed in the hope that it will be useful,
14
 
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 
 *   GNU General Public License for more details.
17
 
 *
18
 
 *   You should have received a copy of the GNU General Public License
19
 
 *   along with this program; if not, see <http://www.gnu.org/licenses/>.
20
 
 */
21
 
 
22
 
/* The format and the dataset for the traffic game in gcompris
23
 
 * is taken from from
24
 
 * http://www.javascript-games.org/puzzle/rushhour/
25
 
 *
26
 
 * [LevelX]
27
 
 * CardY=string describing card 1
28
 
 * CardY=string describing card 2
29
 
 * ...
30
 
 * Where X is the Gcompris Level (in the control bar)
31
 
 * Where Y is the sublevel.
32
 
 *
33
 
 * This is followed by a comma separated list defining the cars on the
34
 
 * grid. So the string looks as follows:
35
 
 *
36
 
 * 'ID''X''Y'
37
 
 *
38
 
 * - 'ID' is one char in the range A-R and X
39
 
 *   A-N Specify a different car color of size 2
40
 
 *   O-R Specify a different car color of size 3
41
 
 *   X   Always Red, the goal car of size 2
42
 
 *
43
 
 * - 'X' xpos numbers between
44
 
 *    1 to 6 for Vertical car
45
 
 *    A to F for Horizontal car
46
 
 *
47
 
 * - 'Y' ypos numbers between
48
 
 *    1 to 6 for Horizontal car
49
 
 *    A to F for Vertical car
50
 
 *
51
 
 */
52
 
 
53
 
static char *DataList[] = {
54
 
  /* [Level1] */
55
 
  "XB3,AA1,B5A,CE5,O1F,P2A,Q2D,RC6",
56
 
  "XA3,A1A,B2D,C3E,D5C,EE5,FA6,GD6,OD1,P2F,QA4",
57
 
  "XB3,AB4,B5B,CC6,O3D,P4F",
58
 
  "XB3,A4C,B5F,O1A,P1D,QD4,RC6",
59
 
  "XB3,AA1,B1F,D5A,EE5,FE6,G3F,O1D,P2A,Q2E,RB4",
60
 
  /* [Level2] */
61
 
  "XB3,AA1,B1D,CA2,DA4,E4C,F5A,O2E,P2F,Q3D,RD6",
62
 
  "XB3,A1B,BC1,C1E,D1F,E2D,F3F,IC4,H5D",
63
 
  "XA3,AD1,BC2,C2E,D3C,E3D,FA4,GE4,HA5,I5C,KA6,O1F,PD5,QD6",
64
 
  "XA3,A1B,BC1,CE1,D2D,EE2,F3F,G5C,H5F,O3E,P4A,QB4",
65
 
  "XB3,AA1,B1C,CE1,DA2,E5D,FE5,GA6,HE6,O2F,P3A,QB4",
66
 
  /* [Level3] */
67
 
  "XB3,AB1,B4C,E5F,O1A,P1D,QD4,RC6",
68
 
  "XA3,A1A,BB1,C5E,O1F,P2C,QD4,RA6",
69
 
  "XD3,AA1,BC1,C1E,D2C,E3B,FD4,G5D,HE5,IB6,KE6,O2F,P4A",
70
 
  "XC3,AA1,B1C,CE2,D3A,E3B,F3E,G3F,HC4,I5C,JE5,KA6",
71
 
  "XC3,AB1,BD1,CA2,DC2,E4C,F4D,GE5,HB6,ID6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