Skip to content

Commit a67da5c

Browse files
committed
New BlackBerry 10 Proximity Gaming sample
1 parent 5421748 commit a67da5c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+4292
-0
lines changed

TouchTicTacTen/.cproject

Lines changed: 210 additions & 0 deletions
Large diffs are not rendered by default.

TouchTicTacTen/.project

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>TouchTicTacTen</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
10+
<arguments>
11+
<dictionary>
12+
<key>?name?</key>
13+
<value></value>
14+
</dictionary>
15+
<dictionary>
16+
<key>org.eclipse.cdt.make.core.append_environment</key>
17+
<value>true</value>
18+
</dictionary>
19+
<dictionary>
20+
<key>org.eclipse.cdt.make.core.autoBuildTarget</key>
21+
<value>Device-Debug</value>
22+
</dictionary>
23+
<dictionary>
24+
<key>org.eclipse.cdt.make.core.buildArguments</key>
25+
<value></value>
26+
</dictionary>
27+
<dictionary>
28+
<key>org.eclipse.cdt.make.core.buildCommand</key>
29+
<value>make</value>
30+
</dictionary>
31+
<dictionary>
32+
<key>org.eclipse.cdt.make.core.cleanBuildTarget</key>
33+
<value>clean</value>
34+
</dictionary>
35+
<dictionary>
36+
<key>org.eclipse.cdt.make.core.contents</key>
37+
<value>org.eclipse.cdt.make.core.activeConfigSettings</value>
38+
</dictionary>
39+
<dictionary>
40+
<key>org.eclipse.cdt.make.core.enableAutoBuild</key>
41+
<value>true</value>
42+
</dictionary>
43+
<dictionary>
44+
<key>org.eclipse.cdt.make.core.enableCleanBuild</key>
45+
<value>true</value>
46+
</dictionary>
47+
<dictionary>
48+
<key>org.eclipse.cdt.make.core.enableFullBuild</key>
49+
<value>true</value>
50+
</dictionary>
51+
<dictionary>
52+
<key>org.eclipse.cdt.make.core.fullBuildTarget</key>
53+
<value>Device-Debug</value>
54+
</dictionary>
55+
<dictionary>
56+
<key>org.eclipse.cdt.make.core.stopOnError</key>
57+
<value>true</value>
58+
</dictionary>
59+
<dictionary>
60+
<key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key>
61+
<value>true</value>
62+
</dictionary>
63+
</arguments>
64+
</buildCommand>
65+
<buildCommand>
66+
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
67+
<triggers>full,incremental,</triggers>
68+
<arguments>
69+
</arguments>
70+
</buildCommand>
71+
<buildCommand>
72+
<name>com.rim.tad.tools.qml.core.qmlFileBuilder</name>
73+
<arguments>
74+
</arguments>
75+
</buildCommand>
76+
<buildCommand>
77+
<name>com.qnx.tools.bbt.xml.core.bbtXMLValidationBuilder</name>
78+
<arguments>
79+
</arguments>
80+
</buildCommand>
81+
</buildSpec>
82+
<natures>
83+
<nature>com.rim.tad.tools.wst.jsdt.core.jsNature</nature>
84+
<nature>org.eclipse.cdt.core.cnature</nature>
85+
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
86+
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
87+
<nature>com.qnx.tools.ide.bbt.core.bbtnature</nature>
88+
<nature>org.eclipse.cdt.core.ccnature</nature>
89+
<nature>com.rim.tad.tools.qml.core.qmlNature</nature>
90+
</natures>
91+
</projectDescription>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
eclipse.preferences.version=1
2+
environment/project/com.qnx.qcc.toolChain.1275528115/CPULIST/delimiter=,
3+
environment/project/com.qnx.qcc.toolChain.1275528115/CPULIST/operation=append
4+
environment/project/com.qnx.qcc.toolChain.1275528115/CPULIST/value=x86
5+
environment/project/com.qnx.qcc.toolChain.1275528115/VARIANTLIST/delimiter=,
6+
environment/project/com.qnx.qcc.toolChain.1275528115/VARIANTLIST/operation=append
7+
environment/project/com.qnx.qcc.toolChain.1275528115/VARIANTLIST/value=g
8+
environment/project/com.qnx.qcc.toolChain.1275528115/append=true
9+
environment/project/com.qnx.qcc.toolChain.1275528115/appendContributed=true
10+
environment/project/com.qnx.qcc.toolChain.380155920/CPULIST/delimiter=,
11+
environment/project/com.qnx.qcc.toolChain.380155920/CPULIST/operation=append
12+
environment/project/com.qnx.qcc.toolChain.380155920/CPULIST/value=arm
13+
environment/project/com.qnx.qcc.toolChain.380155920/VARIANTLIST/delimiter=,
14+
environment/project/com.qnx.qcc.toolChain.380155920/VARIANTLIST/operation=append
15+
environment/project/com.qnx.qcc.toolChain.380155920/VARIANTLIST/value=g
16+
environment/project/com.qnx.qcc.toolChain.380155920/append=true
17+
environment/project/com.qnx.qcc.toolChain.380155920/appendContributed=true
18+
environment/project/com.qnx.qcc.toolChain.665378728/CPULIST/delimiter=,
19+
environment/project/com.qnx.qcc.toolChain.665378728/CPULIST/operation=append
20+
environment/project/com.qnx.qcc.toolChain.665378728/CPULIST/value=arm
21+
environment/project/com.qnx.qcc.toolChain.665378728/EXCLUDE_VARIANTLIST/delimiter=,
22+
environment/project/com.qnx.qcc.toolChain.665378728/EXCLUDE_VARIANTLIST/operation=append
23+
environment/project/com.qnx.qcc.toolChain.665378728/EXCLUDE_VARIANTLIST/value=r
24+
environment/project/com.qnx.qcc.toolChain.665378728/append=true
25+
environment/project/com.qnx.qcc.toolChain.665378728/appendContributed=true

TouchTicTacTen/Makefile

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
QMAKE_TARGET = TouchTicTacTen
2+
QMAKE = $(QNX_HOST)/usr/bin/qmake
3+
TARGET = $(QMAKE_TARGET)
4+
5+
6+
all: Makefile $(QMAKE_TARGET)
7+
8+
clean:
9+
$(MAKE) -C ./arm -f Makefile sureclean
10+
$(MAKE) -C ./x86 -f Makefile sureclean
11+
12+
13+
Makefile: FORCE
14+
$(QMAKE) -spec unsupported/blackberry-armv7le-qcc -o arm/Makefile $(QMAKE_TARGET).pro CONFIG+=device
15+
$(QMAKE) -spec unsupported/blackberry-x86-qcc -o x86/Makefile $(QMAKE_TARGET).pro CONFIG+=simulator
16+
$(MAKE) -C ./translations -f Makefile update release
17+
18+
FORCE:
19+
20+
$(QMAKE_TARGET): device simulator
21+
22+
device:
23+
$(MAKE) -C ./arm -f Makefile all
24+
25+
Device-Debug: Makefile
26+
$(MAKE) -C ./arm -f Makefile debug
27+
28+
Device-Release: Makefile
29+
$(MAKE) -C ./arm -f Makefile release
30+
31+
simulator:
32+
$(MAKE) -C ./x86 -f Makefile all
33+
34+
Simulator-Debug: Makefile
35+
$(MAKE) -C ./x86 -f Makefile debug

TouchTicTacTen/README.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# TouchTicTacToe
2+
3+
The purpose of this application is to demonstrate how NFC peer to peer mode can be used in games. This is known as "Proximity Gaming".
4+
5+
Note that there is a Java version of this application for BlackBerry 7.1 devices and games can be played between Blackberry 7 devices and BlackBerry 10 devices. See https://github.com/blackberry/Samples-for-Java/tree/master/NFC/TouchTicTacToe
6+
7+
The sample code for this application is Open Source under
8+
the [Apache 2.0 License](http://www.apache.org/licenses/LICENSE-2.0.html).
9+
10+
**Applies To**
11+
12+
* [Cascades for BlackBerry 10](https://bdsc.webapps.blackberry.com/cascades/)
13+
* [BlackBerry Native SDK for Tablet OS](https://bdsc.webapps.blackberry.com/native/)
14+
15+
**Author(s)**
16+
17+
* [John Murray](https://github.com/jcmurray)
18+
* [Martin Woolley](https://github.com/mdwoolley)
19+
20+
21+
**Release History**
22+
* **V1** - Initial release
23+
24+
**Known Issues**
25+
1. To start a new game it may be necessary to exit and then start again
26+
27+
**Dependencies**
28+
29+
1. BlackBerry Dev Alpha Device Software **10.0.9**
30+
2. BlackBerry 10 Native SDK **10.0.9**
31+
32+
33+
**I don't want to build it myself**
34+
35+
If you don't want to build this sample application yourself we've included a
36+
pre-build and signed BAR files for each version. You can find them in the
37+
folder "installable-bar-files":
38+
39+
40+
**To contribute code to this repository you must be [signed up as an
41+
official contributor](http://blackberry.github.com/howToContribute.html).**
42+
43+
44+
## Contributing Changes
45+
46+
Please see the [README](https://github.com/blackberry/Cascades-Community-Samples/blob/master/README.md)
47+
of the Cascades-Community-Samples repository for instructions on how to add new Samples or
48+
make modifications to existing Samples.
49+
50+
51+
## Bug Reporting and Feature Requests
52+
53+
If you find a bug in a Sample, or have an enhancement request, simply file
54+
an [Issue](https://github.com/blackberry/Cascades-Community-Samples/issues) for
55+
the Sample and send a message (via github messages) to the Sample Author(s) to let
56+
them know that you have filed an [Issue](https://github.com/blackberry/Cascades-Community-Samples/issues).
57+
58+
59+
## Disclaimer
60+
61+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
62+
BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
63+
AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
64+
ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
65+
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
66+
OTHER DEALINGS IN THE SOFTWARE.

TouchTicTacTen/README.md.bak

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# TouchTicTacToe
2+
3+
The purpose of this application is to demonstrate how NFC peer to peer mode can be used in games. This is known as "Proximity Gaming".
4+
5+
Note that there is a Java version of this application for BlackBerry 7.1 devices and games can be played between Blackberry 7 devices and BlackBerry 10 devices. See https://github.com/blackberry/Samples-for-Java/tree/master/NFC/TouchTicTacToe
6+
7+
The sample code for this application is Open Source under
8+
the [Apache 2.0 License](http://www.apache.org/licenses/LICENSE-2.0.html).
9+
10+
**Applies To**
11+
12+
* [Cascades for BlackBerry 10](https://bdsc.webapps.blackberry.com/cascades/)
13+
* [BlackBerry Native SDK for Tablet OS](https://bdsc.webapps.blackberry.com/native/)
14+
15+
**Author(s)**
16+
17+
* [John Murray](https://github.com/jcmurray)
18+
* [Martin Woolley](https://github.com/mdwoolley)
19+
20+
21+
**Release History**
22+
* **V1** - Initial release
23+
24+
**Known Issues**
25+
1. To start a new game it may be necessary to exit and then start again
26+
27+
**Dependencies**
28+
29+
1. BlackBerry Dev Alpha Device Software **10.0.9**
30+
2. BlackBerry 10 Native SDK **10.0.9**
31+
32+
33+
**I don't want to build it myself**
34+
35+
If you don't want to build this sample application yourself we've included a
36+
pre-build and signed BAR files for each version. You can find them in the
37+
folder "installable-bar-files":
38+
39+
40+
**Known Issues**
41+
42+
None
43+
44+
**To contribute code to this repository you must be [signed up as an
45+
official contributor](http://blackberry.github.com/howToContribute.html).**
46+
47+
48+
## Contributing Changes
49+
50+
Please see the [README](https://github.com/blackberry/Cascades-Community-Samples/blob/master/README.md)
51+
of the Cascades-Community-Samples repository for instructions on how to add new Samples or
52+
make modifications to existing Samples.
53+
54+
55+
## Bug Reporting and Feature Requests
56+
57+
If you find a bug in a Sample, or have an enhancement request, simply file
58+
an [Issue](https://github.com/blackberry/Cascades-Community-Samples/issues) for
59+
the Sample and send a message (via github messages) to the Sample Author(s) to let
60+
them know that you have filed an [Issue](https://github.com/blackberry/Cascades-Community-Samples/issues).
61+
62+
63+
## Disclaimer
64+
65+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
66+
BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
67+
AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
68+
ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
69+
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
70+
OTHER DEALINGS IN THE SOFTWARE.

TouchTicTacTen/TouchTicTacTen.pro

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
TEMPLATE = app
2+
TARGET = TouchTicTacTen
3+
4+
CONFIG += qt warn_on debug_and_release cascades
5+
6+
INCLUDEPATH += ../src
7+
SOURCES += ../src/*.cpp
8+
HEADERS += ../src/*.hpp ../src/*.h
9+
LIBS += -lnfc -lnfc_bps
10+
11+
lupdate_inclusion {
12+
SOURCES += ../assets/*.qml
13+
}
14+
15+
device {
16+
CONFIG(release, debug|release) {
17+
DESTDIR = o.le-v7
18+
}
19+
CONFIG(debug, debug|release) {
20+
DESTDIR = o.le-v7-g
21+
}
22+
}
23+
24+
simulator {
25+
CONFIG(release, debug|release) {
26+
DESTDIR = o
27+
}
28+
CONFIG(debug, debug|release) {
29+
DESTDIR = o-g
30+
}
31+
}
32+
33+
OBJECTS_DIR = $${DESTDIR}/.obj
34+
MOC_DIR = $${DESTDIR}/.moc
35+
RCC_DIR = $${DESTDIR}/.rcc
36+
UI_DIR = $${DESTDIR}/.ui
37+
38+
suredelete.target = sureclean
39+
suredelete.commands = $(DEL_FILE) $${MOC_DIR}/*; $(DEL_FILE) $${RCC_DIR}/*; $(DEL_FILE) $${UI_DIR}/*
40+
suredelete.depends = distclean
41+
42+
QMAKE_EXTRA_TARGETS += suredelete
43+
44+
TRANSLATIONS = \
45+
$${TARGET}_en_GB.ts \
46+
$${TARGET}_fr.ts \
47+
$${TARGET}_it.ts \
48+
$${TARGET}_de.ts \
49+
$${TARGET}_es.ts \
50+
$${TARGET}.ts
51+

0 commit comments

Comments
 (0)