Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
de3055be
Commit
de3055be
authored
Feb 11, 2013
by
Max-Wilhelm Bruker
Browse files
Merge branch 'master' of
git://github.com/mbruker/Cockatrice
parents
49d2fdc9
dca87cb4
Changes
4
Hide whitespace changes
Inline
Side-by-side
README.md
0 → 100644
View file @
de3055be
# Cockatrice
Cockatrice is an open-source multiplatform software for playing card games,
such as Magic: The Gathering, over a network. It is fully client-server based
to prevent any kind of cheating, though it supports single-player games without
a network interface as well. Both client and server are written in Qt 4.
# License
Cockatrice is free software, licensed under the GPLv2; see COPYING for details.
# Building
Dependencies:
-
[
Qt
](
http://qt-project.org/
)
-
[
protobuf
](
http://code.google.com/p/protobuf/
)
-
[
CMake
](
http://www.cmake.org/
)
The server requires an additional dependency:
-
[
libgcrypt
](
http://www.gnu.org/software/libgcrypt/
)
```
mkdir build
cd build
cmake ..
make
make install
```
The following flags can be passed to
`cmake`
:
-
`-DWITH_SERVER=1`
build the server
-
`-DWITHOUT_CLIENT=1`
do not build the client
# Running
`oracle`
fetches card data
`cockatrice`
is the game client
`servatrice`
is the server
cockatrice/CMakeLists.txt
View file @
de3055be
...
...
@@ -222,7 +222,11 @@ INCLUDE_DIRECTORIES(${QT_MOBILITY_MULTIMEDIAKIT_INCLUDE_DIR})
ADD_EXECUTABLE
(
cockatrice WIN32 MACOSX_BUNDLE
${
cockatrice_SOURCES
}
${
cockatrice_QM
}
${
cockatrice_RESOURCES_RCC
}
${
cockatrice_HEADERS_MOC
}
)
TARGET_LINK_LIBRARIES
(
cockatrice cockatrice_common
${
QT_LIBRARIES
}
${
QT_MOBILITY_MULTIMEDIAKIT_LIBRARY
}
${
CMAKE_THREAD_LIBS_INIT
}
)
INSTALL
(
PROGRAMS
${
CMAKE_CURRENT_BINARY_DIR
}
/cockatrice DESTINATION bin
)
IF
(
NOT APPLE
)
INSTALL
(
PROGRAMS
${
CMAKE_CURRENT_BINARY_DIR
}
/cockatrice DESTINATION bin
)
ELSE
(
APPLE
)
INSTALL
(
PROGRAMS
${
CMAKE_CURRENT_BINARY_DIR
}
/cockatrice.app DESTINATION bin
)
ENDIF
(
NOT APPLE
)
if
(
NOT WIN32 AND NOT APPLE
)
INSTALL
(
FILES
${
CMAKE_CURRENT_SOURCE_DIR
}
/resources/cockatrice.png DESTINATION
${
ICONDIR
}
/hicolor/48x48/apps
)
INSTALL
(
FILES
${
CMAKE_CURRENT_SOURCE_DIR
}
/resources/cockatrice.svg DESTINATION
${
ICONDIR
}
/hicolor/scalable/apps
)
...
...
cockatrice/src/carddatabasemodel.cpp
View file @
de3055be
...
...
@@ -117,7 +117,7 @@ bool CardDatabaseDisplayModel::filterAcceptsRow(int sourceRow, const QModelIndex
{
CardInfo
const
*
info
=
static_cast
<
CardDatabaseModel
*>
(
sourceModel
())
->
getCard
(
sourceRow
);
if
(((
isToken
==
ShowTrue
)
&&
!
info
->
getIsToken
())
||
(
isToken
==
ShowFalse
)
&&
info
->
getIsToken
())
if
(((
isToken
==
ShowTrue
)
&&
!
info
->
getIsToken
())
||
(
(
isToken
==
ShowFalse
)
&&
info
->
getIsToken
())
)
return
false
;
if
(
!
cardNameBeginning
.
isEmpty
())
...
...
oracle/CMakeLists.txt
View file @
de3055be
...
...
@@ -22,7 +22,11 @@ INCLUDE_DIRECTORIES(../cockatrice/src)
ADD_EXECUTABLE
(
oracle WIN32 MACOSX_BUNDLE
${
oracle_SOURCES
}
${
oracle_HEADERS_MOC
}
)
TARGET_LINK_LIBRARIES
(
oracle
${
QT_LIBRARIES
}
)
INSTALL
(
PROGRAMS
${
CMAKE_CURRENT_BINARY_DIR
}
/oracle DESTINATION bin
)
IF
(
NOT APPLE
)
INSTALL
(
PROGRAMS
${
CMAKE_CURRENT_BINARY_DIR
}
/oracle DESTINATION bin
)
ELSE
(
APPLE
)
INSTALL
(
PROGRAMS
${
CMAKE_CURRENT_BINARY_DIR
}
/oracle.app DESTINATION bin
)
ENDIF
(
NOT APPLE
)
IF
(
NOT WIN32 AND NOT APPLE
)
INSTALL
(
FILES
${
CMAKE_CURRENT_SOURCE_DIR
}
/oracle.desktop DESTINATION
${
DESKTOPDIR
}
)
ENDIF
(
NOT WIN32 AND NOT APPLE
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment