Level.cs
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/************************************************************************************
*源码来自(C#源码世界) www.HelloCsharp.com
*如果对该源码有问题可以直接点击下方的提问按钮进行提问哦
*站长将亲自帮你解决问题
*C#源码世界-找到你需要的C#源码,交流和学习
************************************************************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace 全民英雄
{
/// <summary>
/// 飞机关类
/// </summary>
class Level
{
//构造函数
public Level() {
enemycount = 15;//默认的飞机数量
levelcount = 1;//默认的关数位1
}
int enemycount;//飞机的数量
int dethenemycount;//死亡飞机的数量
int levelcount;//当前的关数
public int Levelcount
{
get { return levelcount; }
set { levelcount = value; }
}
public int Dethenemycount
{
get { return dethenemycount; }
set { dethenemycount = value; }
}
public int Enemycount
{
get { return enemycount; }
set { enemycount = value; }
}
/// <summary>
/// 获得飞机的关数
/// </summary>
public void getlevel()
{
if (dethenemycount%50==0)//击毁敌机30架后回出现一架boss
{
enemycount--;
levelcount++;
}
if (enemycount<=0)
{
enemycount = 1;
}
后面还有 9 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。