資源簡介
代碼片段和文件信息
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?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(Syst
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????460??2009-10-13?16:19??Direction.cs
-----------?---------??----------?-----??----
??????????????????460????????????????????1
- 上一篇:面向對象經典(反射)
- 下一篇:C# 獲取全國各城市天氣
評論
共有 條評論