Symbol.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tank_11_14.Properties;
using System.Drawing;
namespace Tank_11_14
{
class Symbol:Module
{
private static Image imgSymbol = Resources.symbol;
private static Image imgDestory = Resources.destory;
private static Image imgOver = Resources.over;
private bool isDestory=false;
/* private bool isover = false;
public bool Isover
{
get { return isover; }
set { isover = value; }
}*/
public bool IsDestory
{
get { return isDestory; }
set { isDestory = value; }
}
public Symbol(int x, int y)
: base(x, y, imgSymbol.Width, imgSymbol.Height)
{
this.Width = 60;
this.Height = 45;
}
public override void Draw(Graphics g)
{
if (isDestory)
{
g.DrawImage(imgDestory, this.X,this.Y );
Singleton.Instance.P1Tank.Enable = true;
Singleton.Instance.P2Tank.Enable = true;
}
else {
g.DrawImage(imgSymbol,this.X,this.Y);
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。