大一小学期布置的大作业,要求利用qt的网络编程制作的斗地主项目。附有详细设计文档,新手可参考,大神请无视。
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2020-09-07 11:14 ChinesePoker
文件 972 2020-09-06 08:17 ChinesePokercards.cpp
文件 436 2020-09-03 16:56 ChinesePokercards.h
文件 1377 2020-09-03 00:28 ChinesePokerChinesePoker.pro
文件 24929 2020-09-07 11:13 ChinesePokerChinesePoker.pro.user
文件 932 2020-09-05 22:19 ChinesePokerchoosescene.cpp
文件 420 2020-09-02 19:45 ChinesePokerchoosescene.h
文件 22861 2020-09-07 10:57 ChinesePokergamescene.cpp
文件 2302 2020-09-05 22:46 ChinesePokergamescene.h
文件 451 2020-09-05 20:14 ChinesePokergamescene.ui
目录 0 2020-09-07 11:14 ChinesePokerimages
文件 1895115 2018-09-06 21:22 ChinesePokerimagesasebackground0.png
目录 0 2020-09-07 11:14 ChinesePokerimagescards
文件 210052 2020-08-26 20:39 ChinesePokerimagescards214833-120P4164K869.jpg
文件 218309 2020-08-26 20:39 ChinesePokerimagescards214833-120P41A11846.jpg
文件 137178 2020-09-02 20:17 ChinesePokerimagescards214833-120P41A43836.jpg
文件 210160 2020-08-26 21:03 ChinesePokerimagescards214833-120P41AK868 .jpg
文件 72086 2020-08-26 21:18 ChinesePokerimagescardsBLACK JOKER.png
文件 42380 2020-08-26 21:07 ChinesePokerimagescardsC10.png
文件 18673 2020-08-26 21:07 ChinesePokerimagescardsC2.png
文件 22644 2020-08-26 21:07 ChinesePokerimagescardsC3.png
文件 23973 2020-08-26 21:07 ChinesePokerimagescardsC4.png
文件 27820 2020-08-26 21:07 ChinesePokerimagescardsC5.png
文件 30823 2020-08-26 21:07 ChinesePokerimagescardsC6.png
文件 32813 2020-08-26 21:07 ChinesePokerimagescardsC7.png
文件 38234 2020-08-26 21:07 ChinesePokerimagescardsC8.png
文件 40477 2020-08-26 21:07 ChinesePokerimagescardsC9.png
文件 15438 2020-08-26 21:07 ChinesePokerimagescardsCA.png
文件 105023 2020-08-26 21:07 ChinesePokerimagescardsCJ.png
文件 100501 2020-08-26 21:07 ChinesePokerimagescardsCK.png
文件 107126 2020-08-26 21:07 ChinesePokerimagescardsCQ.png
............此处省略202个文件信息
#include “cards.h“
#include
Cards::Cards()
{
for(int i = 3;i < 11;i++) setCard(iQString::number(i));
setCard(11“J“);
setCard(12“Q“);
setCard(13“K“);
setCard(14“A“);
setCard(15“2“);
Card bj;
bj.name = “BLACK JOKER“;
bj.color = 1;
bj.point = 16;
bj.id = _id++;
qDebug() << “id“ << _id;
bj.shape = ‘N‘;
Card hj;
hj.name = “RED JOKER“;
hj.color = 0;
hj.point = 17;
hj.id = _id;
hj.shape = ‘N‘;
cardvec.push_back(bj);
cardvec.push_back(hj);
}
void Cards::setCard(int iQString s)
{
Card temp;
temp.point = i;
for(int j = 0;j < 4;j++)
{
temp.id = _id++;
temp.color = 0;
if(j == 0) temp.shape = ‘D‘;
else if(j == 1) temp.shape = ‘C‘;
else if(j == 2) temp.shape = ‘H‘;
else temp.shape = ‘S‘;
temp.name = temp.shape + s;
cardvec.push_back(temp);
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2020-09-07 11:14 ChinesePoker
文件 972 2020-09-06 08:17 ChinesePokercards.cpp
文件 436 2020-09-03 16:56 ChinesePokercards.h
文件 1377 2020-09-03 00:28 ChinesePokerChinesePoker.pro
文件 24929 2020-09-07 11:13 ChinesePokerChinesePoker.pro.user
文件 932 2020-09-05 22:19 ChinesePokerchoosescene.cpp
文件 420 2020-09-02 19:45 ChinesePokerchoosescene.h
文件 22861 2020-09-07 10:57 ChinesePokergamescene.cpp
文件 2302 2020-09-05 22:46 ChinesePokergamescene.h
文件 451 2020-09-05 20:14 ChinesePokergamescene.ui
目录 0 2020-09-07 11:14 ChinesePokerimages
文件 1895115 2018-09-06 21:22 ChinesePokerimagesa
目录 0 2020-09-07 11:14 ChinesePokerimagescards
文件 210052 2020-08-26 20:39 ChinesePokerimagescards214833-120P4164K869.jpg
文件 218309 2020-08-26 20:39 ChinesePokerimagescards214833-120P41A11846.jpg
文件 137178 2020-09-02 20:17 ChinesePokerimagescards214833-120P41A43836.jpg
文件 210160 2020-08-26 21:03 ChinesePokerimagescards214833-120P41AK868 .jpg
文件 72086 2020-08-26 21:18 ChinesePokerimagescardsBLACK JOKER.png
文件 42380 2020-08-26 21:07 ChinesePokerimagescardsC10.png
文件 18673 2020-08-26 21:07 ChinesePokerimagescardsC2.png
文件 22644 2020-08-26 21:07 ChinesePokerimagescardsC3.png
文件 23973 2020-08-26 21:07 ChinesePokerimagescardsC4.png
文件 27820 2020-08-26 21:07 ChinesePokerimagescardsC5.png
文件 30823 2020-08-26 21:07 ChinesePokerimagescardsC6.png
文件 32813 2020-08-26 21:07 ChinesePokerimagescardsC7.png
文件 38234 2020-08-26 21:07 ChinesePokerimagescardsC8.png
文件 40477 2020-08-26 21:07 ChinesePokerimagescardsC9.png
文件 15438 2020-08-26 21:07 ChinesePokerimagescardsCA.png
文件 105023 2020-08-26 21:07 ChinesePokerimagescardsCJ.png
文件 100501 2020-08-26 21:07 ChinesePokerimagescardsCK.png
文件 107126 2020-08-26 21:07 ChinesePokerimagescardsCQ.png
............此处省略202个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)