資源簡介
基于QT的黑白棋游戲設計和實現(xiàn)全部源碼附帶畢業(yè)設計全部文檔開題報告任務書,論文,答辯ppt,中期檢查,外文翻譯

代碼片段和文件信息
#include?“chessboard.h“
//#include?
unsigned?char?style_number?=?0;//界面風格編號
const?char?*game_style[3][7];//[*][0]為背景圖片,[*][1]為a的棋子,[*][2]為b的棋子,[*][3]為a的頭像,[*][4]為b的頭像,[*][5]為a大比分落后的頭像,[*][6]為b大比分落后的頭像
const?char?*backgrand_0?=?“:/other/resource/img/1.jpg“;
const?char?*chess_0_a?=?“:/other/resource/img/bc.png“;
const?char?*chess_0_b?=?“:/other/resource/img/wc.png“;
const?char?*pic_0_a?=?“:/other/resource/img/m1.png“;
const?char?*pic_0_b?=?“:/other/resource/img/m2.png“;
const?char?*pic_0_a_alarm?=?“:/other/resource/img/m3.png“;
const?char?*pic_0_b_alarm?=?“:/other/resource/img/m3.png“;
const?char?*backgrand_1?=?“:/other/resource/img/2.jpg“;
const?char?*chess_1_a?=?“:/other/resource/img/q1.png“;
const?char?*chess_1_b?=?“:/other/resource/img/q2.png“;
const?char?*pic_1_a?=?“:/other/resource/img/q1.png“;
const?char?*pic_1_b?=?“:/other/resource/img/q2.png“;
const?char?*pic_1_a_alarm?=?“:/other/resource/img/q1.png“;
const?char?*pic_1_b_alarm?=?“:/other/resource/img/q2.png“;
const?char?*backgrand_2?=?“:/other/resource/img/3.jpg“;
const?char?*chess_2_a?=?“:/other/resource/img/xa.png“;
const?char?*chess_2_b?=?“:/other/resource/img/xb.png“;
const?char?*pic_2_a?=?“:/other/resource/img/x1.png“;
const?char?*pic_2_b?=?“:/other/resource/img/x2.png“;
const?char?*pic_2_a_alarm?=?“:/other/resource/img/x3.png“;
const?char?*pic_2_b_alarm?=?“:/other/resource/img/x4.png“;
chessboard::chessboard(QWidget?*parent)?:QWidget(parent)
{
????//setAttribute(Qt::WA_StaticContents);
????horizontal_grid=10;//水平格數(shù)
????vertical_grid=10;//垂直格數(shù)
????penwidth?=?1;//畫線的粗細
????margin?=?3;//邊框距離,也是水平線和垂直線的起始坐標
????step_info_link?=?NULL;
}
chessboard::~chessboard()
{
}
void?chessboard::setchessboard(unsigned?char?xunsigned?char?yint?penwidthint?margin)
{
????GRIDINFO?*pf;
????unsigned?char?ij;
????this->horizontal_grid?=?x;
????this->vertical_grid?=?y;
????this->penwidth?=?penwidth;//棋盤線的粗細
????this->margin?=?margin;//邊框距離,即水平線和垂直線的起始坐標
????for(i=0;i ????{
????????for(j=0;j ????????{
????????????GRIDINFO?*p;
????????????p?=?new?GRIDINFO;
????????????p->x?=?j;
????????????p->y?=?i;
????????????p->who?=?-1;
????????????if((p->x?==?(x-1)/2?&&?p->y?==?(y-1)/2)||(p->x?==?(x-1)/2?+1?&&?p->y?==?(y-1)/2?+1))
????????????{
????????????????p->who?=?1;
????????????}
????????????else?if((p->x?==?(x-1)/2?&&?p->y?==?(y-1)/2?+1)||(p->x?==?(x-1)/2?+1?&&?p->y?==?(y-1)/2))
????????????{
????????????????p->who?=?0;
????????????}
????????????//p->begin_x?=?margin?+?i*spacing_column;
????????????//p->begin_y?=?margin?+?j*spacing_line;
????????????p->next?=?NULL;
????????????if(i==0&&j==0)
????????????{
????????????????grid_info_link?=?pf?=?p;
????????????}
????????????else
????????????{
????????????????pf->next?=?p;
????????????????pf?=?p;
????????????}
????????}
????}
}
void?chessboard::getchessboard(unsigned?char?&xunsigned?char?&yint?&penwidthint?&marginint?&spacing
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2015-04-01?19:55??基于QT的黑白棋游戲設計和實現(xiàn)\
?????目錄???????????0??2015-04-01?19:53??基于QT的黑白棋游戲設計和實現(xiàn)\BlackOrWhite\
?????文件?????????423??2011-01-21?15:18??基于QT的黑白棋游戲設計和實現(xiàn)\BlackOrWhite\BlackOrWhite.pro
?????文件???????13521??2011-04-21?22:00??基于QT的黑白棋游戲設計和實現(xiàn)\BlackOrWhite\BlackOrWhite.pro.user
?????文件????????5301??2011-01-21?14:51??基于QT的黑白棋游戲設計和實現(xiàn)\BlackOrWhite\chessboard.cpp
?????文件????????2589??2011-01-20?13:36??基于QT的黑白棋游戲設計和實現(xiàn)\BlackOrWhite\chessboard.h
?????文件????????9662??2011-01-21?15:15??基于QT的黑白棋游戲設計和實現(xiàn)\BlackOrWhite\ico.ico
?????目錄???????????0??2015-04-01?19:53??基于QT的黑白棋游戲設計和實現(xiàn)\BlackOrWhite\img\
?????文件??????133423??2011-01-16?11:44??基于QT的黑白棋游戲設計和實現(xiàn)\BlackOrWhite\img\1.jpg
?????文件??????184065??2011-01-21?13:10??基于QT的黑白棋游戲設計和實現(xiàn)\BlackOrWhite\img\2.jpg
?????文件???????39889??2011-01-13?16:36??基于QT的黑白棋游戲設計和實現(xiàn)\BlackOrWhite\img\3.jpg
?????文件??????940212??2011-01-21?14:17??基于QT的黑白棋游戲設計和實現(xiàn)\BlackOrWhite\img\Thumbs.db
?????文件???????66889??2011-01-16?11:30??基于QT的黑白棋游戲設計和實現(xiàn)\BlackOrWhite\img\b1.png
?????文件???????67932??2011-01-16?11:30??基于QT的黑白棋游戲設計和實現(xiàn)\BlackOrWhite\img\b2.png
?????文件???????67774??2011-01-16?11:30??基于QT的黑白棋游戲設計和實現(xiàn)\BlackOrWhite\img\b3.png
?????文件???????67888??2011-01-16?11:31??基于QT的黑白棋游戲設計和實現(xiàn)\BlackOrWhite\img\b4.png
?????文件???????67324??2011-01-16?11:30??基于QT的黑白棋游戲設計和實現(xiàn)\BlackOrWhite\img\b5.png
?????文件???????67880??2011-01-16?11:30??基于QT的黑白棋游戲設計和實現(xiàn)\BlackOrWhite\img\b6.png
?????文件???????64978??2011-01-14?09:09??基于QT的黑白棋游戲設計和實現(xiàn)\BlackOrWhite\img\back.png
?????文件???????10747??2011-01-13?17:28??基于QT的黑白棋游戲設計和實現(xiàn)\BlackOrWhite\img\bc.png
?????文件???????22521??2011-01-14?09:15??基于QT的黑白棋游戲設計和實現(xiàn)\BlackOrWhite\img\begin1.png
?????文件???????25167??2011-01-14?09:15??基于QT的黑白棋游戲設計和實現(xiàn)\BlackOrWhite\img\begin2.png
?????文件????????6946??2011-01-21?12:10??基于QT的黑白棋游戲設計和實現(xiàn)\BlackOrWhite\img\c1.png
?????文件????????8210??2011-01-21?12:10??基于QT的黑白棋游戲設計和實現(xiàn)\BlackOrWhite\img\c2.png
?????文件????????8435??2011-01-21?12:10??基于QT的黑白棋游戲設計和實現(xiàn)\BlackOrWhite\img\c3.png
?????文件???????69064??2011-01-14?09:09??基于QT的黑白棋游戲設計和實現(xiàn)\BlackOrWhite\img\craven.png
?????文件???????65371??2011-01-14?09:08??基于QT的黑白棋游戲設計和實現(xiàn)\BlackOrWhite\img\cue.png
?????文件???????41331??2011-01-13?17:14??基于QT的黑白棋游戲設計和實現(xiàn)\BlackOrWhite\img\icon.png
?????文件???????17683??2010-08-11?09:17??基于QT的黑白棋游戲設計和實現(xiàn)\BlackOrWhite\img\m1.png
?????文件???????16404??2010-08-09?10:09??基于QT的黑白棋游戲設計和實現(xiàn)\BlackOrWhite\img\m2.png
?????文件???????17981??2010-08-09?10:09??基于QT的黑白棋游戲設計和實現(xiàn)\BlackOrWhite\img\m3.png
............此處省略24個文件信息
- 上一篇:sap移動類型詳解
- 下一篇:紅警外掛 源代碼 易語言
評論
共有 條評論