PlantWar/Models/PlaneFather.cs
(完整代码) 648Busing System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
namespace PlantWar.Models
{
public abstract class PlaneFather : GameObject
{
private Image imgPlane;//声明一个字段存储飞机的图片
public PlaneFather(int x, int y, Image img, int speed, int life, Direction dir)
: base(x, y, img.Width, img.Height, speed, life, dir)
{
this.imgPlane = img;
}
//提供一个判断是否死亡的抽象函数 具体怎么死亡 又子类自己去决定
public abstract void IsOver();
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。