此设计模式以完整的项目作为基础,在此基础上使用设计模式,是一遍不可多得的好文章,内容齐全,含类图,源码,文档报告。。。
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 269198 2013-07-18 19:34 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugackgroundMUsici_comic.mp3
文件 1446589 2013-07-18 19:34 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugackgroundMUsic
_bgm_01.mp3
文件 1446589 2013-07-18 19:34 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugackgroundMUsic
_bgm_02.mp3
文件 1159033 2013-07-18 19:34 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugackgroundMUsicu_bgm.mp3
文件 12778028 2013-12-31 10:01 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugackgroundMUsicu_bgm.wav
文件 83456 2014-01-01 21:27 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugDragonQuest.exe
文件 132608 2014-01-01 21:27 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugDragonQuest.pdb
文件 22704 2014-01-01 21:26 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugDragonQuest.vshost.exe
文件 490 2013-03-18 17:00 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugDragonQuest.vshost.exe.manifest
文件 31747 2011-06-16 22:57 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugimagesackground.png
文件 35870 2011-06-16 22:57 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugimagesackground1.png
文件 284 2011-06-16 22:57 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugimageslast1_0.gif
文件 423 2011-06-16 22:57 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugimageslast1_1.gif
文件 680 2011-06-16 22:57 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugimageslast1_2.gif
文件 740 2011-06-16 22:57 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugimageslast1_3.gif
文件 765 2011-06-16 22:57 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugimageslast1_4.gif
文件 624 2011-06-16 22:57 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugimageslast1_5.gif
文件 500 2011-06-16 22:57 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugimageslast1_6.gif
文件 286 2011-06-16 22:57 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugimageslast1_7.gif
文件 241 2011-06-16 22:57 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugimageslast1_8.gif
文件 907 2011-06-16 22:57 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugimageslast2_0.gif
文件 1224 2011-06-16 22:57 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugimageslast2_1.gif
文件 5288 2011-06-16 22:57 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugimageslast2_2.gif
文件 1971 2011-06-16 22:57 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugimageslast2_3.gif
文件 6458 2011-06-16 22:57 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugimageslast2_4.gif
文件 8367 2011-06-16 22:57 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugimageslast2_5.gif
文件 9076 2011-06-16 22:57 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugimageslast2_6.gif
文件 8988 2011-06-16 22:57 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugimageslast2_7.gif
文件 3592 2011-06-16 22:57 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugimageslast2_8.gif
文件 2912 2011-06-16 22:57 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugimagesenemy1.gif
............此处省略139个文件信息
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DragonQuest.General;
using System.Drawing;
namespace DragonQuest
{
///
/// 血条,生命值
///
public class BloodBar : Element
{
//血条的单位长度
private const int WIDTH = 1;
//血条的高度
private const int HEIGHT = 10;
private int allLife nowLife;
public int X
{
get { return x; }
set { x = value; }
}
public int Y
{
get{return y;}
set { y = value; }
}
public BloodBar(int x int y int allLife)
: base(x y)
{
this.allLife = allLife;
this.nowLife = allLife;
}
public int NowLife
{
get
{
return nowLife;
}
set
{
nowLife = value;
}
}
public override void Draw(System.Drawing.Graphics g)
{
g.DrawString(“Life:“ new Font(“Arial“ 10f) new SolidBrush(Color.Red) x+50 y-20);
g.DrawRectangle(new Pen(Color.Red) x+85 y-18 WIDTH * allLife HEIGHT);
g.FillRectangle(new SolidBrush(Color.Red) x+85 y-18 WIDTH * nowLife HEIGHT);
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 269198 2013-07-18 19:34 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugackgroundMUsici_comic.mp3
文件 1446589 2013-07-18 19:34 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugackgroundMUsic
_bgm_01.mp3
文件 1446589 2013-07-18 19:34 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugackgroundMUsic
_bgm_02.mp3
文件 1159033 2013-07-18 19:34 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugackgroundMUsicu_bgm.mp3
文件 12778028 2013-12-31 10:01 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugackgroundMUsicu_bgm.wav
文件 83456 2014-01-01 21:27 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugDragonQuest.exe
文件 132608 2014-01-01 21:27 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugDragonQuest.pdb
文件 22704 2014-01-01 21:26 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugDragonQuest.vshost.exe
文件 490 2013-03-18 17:00 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugDragonQuest.vshost.exe.manifest
文件 31747 2011-06-16 22:57 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugimagesackground.png
文件 35870 2011-06-16 22:57 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugimagesackground1.png
文件 284 2011-06-16 22:57 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugimageslast1_0.gif
文件 423 2011-06-16 22:57 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugimageslast1_1.gif
文件 680 2011-06-16 22:57 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugimageslast1_2.gif
文件 740 2011-06-16 22:57 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugimageslast1_3.gif
文件 765 2011-06-16 22:57 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugimageslast1_4.gif
文件 624 2011-06-16 22:57 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugimageslast1_5.gif
文件 500 2011-06-16 22:57 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugimageslast1_6.gif
文件 286 2011-06-16 22:57 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugimageslast1_7.gif
文件 241 2011-06-16 22:57 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugimageslast1_8.gif
文件 907 2011-06-16 22:57 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugimageslast2_0.gif
文件 1224 2011-06-16 22:57 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugimageslast2_1.gif
文件 5288 2011-06-16 22:57 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugimageslast2_2.gif
文件 1971 2011-06-16 22:57 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugimageslast2_3.gif
文件 6458 2011-06-16 22:57 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugimageslast2_4.gif
文件 8367 2011-06-16 22:57 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugimageslast2_5.gif
文件 9076 2011-06-16 22:57 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugimageslast2_6.gif
文件 8988 2011-06-16 22:57 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugimageslast2_7.gif
文件 3592 2011-06-16 22:57 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugimageslast2_8.gif
文件 2912 2011-06-16 22:57 设计模式(包含5个设计模式)含源代码报告DragonQuest(VS2013版)DragonQuestDragonQuestinDebugimagesenemy1.gif
............此处省略139个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)