資源簡介
坦克大戰
代碼片段和文件信息
using?System.Drawing;
//Download?by?http://www.codefans.net
//add
//add
namespace?坦克
{
????internal?class?bullet
????{
????????private?readonly?bool?type;?//己方子彈true敵方子彈false
????????private?int?direct;?//子彈行進方向
????????private?int?height?=?32;
????????private?int?left;
????????private?int?top;?//子彈坐標(TopLeft)
????????private?int?width?=?32;
????????public?bullet(int?type)?//?子彈類構造函數
????????{
????????????if?(type?==?6)?//己方
????????????????this.type?=?true;
????????????else
????????????????this.type?=?false;
????????}
????????public?int?Top?//Top屬性
????????{
????????????get?{?return?top;?}
????????????set?{?top?=?value;?}
????????}
????????public?int?Left?//Left屬性
????????{
????????????get?{?return?left;?}
????????????set?{?left?=?value;?}
???????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
-----------?---------??----------?-----??----
??????????????4704463????????????????????67
- 上一篇:推箱子
- 下一篇:log4net.dll 日志 使用 以及
評論
共有 條評論