资源简介
以黑白棋为例,做的一个win32的小游戏。
压缩包里是详细代码,项目是vs2010的,其他IDE请自行创建项目然后添加源文件。
详细介绍可以参考我的博客:http://blog.csdn.net/zilaishuichina/article/details/38235313
注:代码仅供学习交流使用,请勿用于其他用途。

代码片段和文件信息
#include “CList.h“
CList::CList()
{
Init();
}
CList::~CList()
{
Init();
}
void CList::Init()
{
m_pHead = NULL;
m_pTail = NULL;
}
bool CList::PushTail(Node& node)
{
bool bRes = false;
if (NULL == node.m_pList)
{
node.m_pLast = m_pTail;
node.m_pNext = NULL;
node.m_pList = this;
if (NULL != m_pTail)
{
m_pTail->m_pNext = &node;
}
m_pTail = &node;
if (NULL == m_pHead)
{
m_pHead = &node;
}
bRes = true;
}
return bRes;
}
bool CList::Remove(Node& node)
{
bool bRes = false;
if (this == node.m_pList)
{
if (m_pHead == &node)
{
m_pHead = node.m_pNext;
}
if (m_pTail == &node)
{
m_pTail = node.m_pLast;
}
if (NULL != node.m_pNext)
{
node.m_pNext->m_pLast = node.m_pLast;
}
if (NULL != node.m_pLast)
{
node.m_pLast->m_pNext = node.m_pNext;
}
node.m_pNext = NULL;
node.m_pLast = NULL;
node.m_pList = NULL;
bRes = true;
}
return bRes;
}
Node *CList::GetHead()
{
return m_pHead;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 4076 2014-08-06 09:47 game\game.cpp
文件 800 2014-07-28 16:18 game\game.rc
文件 1228 2014-08-06 11:21 game\game.sln
文件 9117 2014-08-06 11:20 game\game.vcxproj
文件 4432 2014-08-06 11:20 game\game.vcxproj.filters
文件 157 2014-07-28 16:21 game\Resource.h
文件 4383 2014-08-06 09:48 game\ReversiAI.cpp
文件 1100 2014-08-06 11:12 game\ReversiAI.h
文件 5693 2014-08-06 10:42 game\ReversiBitBoard.cpp
文件 1206 2014-08-06 09:59 game\ReversiBitBoard.h
文件 317 2014-07-29 14:28 game\ReversiCommon.cpp
文件 2138 2014-08-06 11:12 game\ReversiCommon.h
文件 1133 2014-08-06 09:48 game\ReversiPla
文件 873 2014-08-06 09:47 game\ReversiPla
文件 1122 2014-07-21 17:19 game\ReversiPoint.h
文件 4707 2014-08-06 09:57 game\ReversiScene.cpp
文件 1070 2014-08-06 09:43 game\ReversiScene.h
文件 1049 2013-08-28 16:51 common\CList.cpp
文件 997 2013-04-18 17:09 common\CList.h
文件 37 2013-09-02 09:25 common\CLock.cpp
文件 441 2013-09-18 10:24 common\CLock.h
文件 672 2014-07-19 21:18 common\TArray.h
文件 1834 2014-07-19 21:18 common\TArray.hpp
文件 2868 2014-07-08 17:45 common\TBDli
文件 6669 2014-07-08 17:45 common\TBDli
文件 2147 2014-07-17 11:00 common\TContainer.h
文件 2351 2013-04-19 16:04 common\TContainer.hpp
文件 1370 2013-09-18 14:32 common\TIterator.h
文件 1220 2013-09-18 14:32 common\TIterator.hpp
文件 1320 2013-09-23 16:49 common\Tob
............此处省略13个文件信息
相关资源
- 黑白棋(带简单AI)
- zlib 最新 1.2.8 win32 win64 编译好的dll
- Win32 API大全.chm
- eetop.cn_eetop.cn_hfss15_win32crack
- nginx-rtmp-win32-master.rar
- Cocos2d-x开发游戏的坐标系知识介绍
- sunxi-tools-win32-support_f1c100s_32M(32M fl
- 《游戏中的数学与物理学 第2版》高清
- 基于QT的黑白棋游戏设计和实现
- 3D数学基础:图形与游戏开发(习题答
- Unity3D游戏开发.pdf 宣雨松著完整高清
- ipscan-win32
- ffplay_win32
- cmake-3.7.0-win32-x86.zip官方绿色包
- ffmpeg-3.2-win32-shared.zip
- windows32位系统的ffmpeg
- UE4虚幻引擎蓝图艺术大师三部完整版
- ffmpeg-2.5.2-win32-shared
- OpenCC-1.0.5-Win32
- Unity3D 实战视频教程 保卫萝卜 2D 游戏
- Notepad++的Json格式化插件win32和x64两版
- Eclipse64位4.3开普勒版eclipse-standard-ke
- award_bios_editor1.2_win32.zip
- Eclipse64位4.3.2开普勒版eclipse-jee-keple
- ninja(windows 32/64位)
- Corgi Engine - 2D 25D Platformer 5.4
- 黑白棋回溯算法及论文
- ffmpeg-4.2.1-win32-dev.zip
- unity炸弹人游戏开发
- Unity3D 游戏开发第二版PDF part1
评论
共有 条评论