A.cs
namespace _7._24
{
class A:Player
{
public A()
{
name = "A";
maxHp = 100;
g_Hp = 20;
atk = 50;
g_Atk = 10;
speed = 100;
g_Speed = 20;
sAtk = 80;
miss = 10;
}
}
}
A1.cs
namespace _7._24
{
class A1:Enemy
{
public A1()
{
Go("A1", 700, 10, 50, 10, 10, 10, 100);
}
}
}
B.cs
namespace _7._24
{
class B : Player
{
public B()
{
name = "B";
maxHp = 100;
g_Hp = 20;
atk = 50;
g_Atk = 10;
speed = 100;
g_Speed = 20;
sAtk = 80;
miss = 10;
}
}
}
B1.cs
namespace _7._24
{
class B1: Enemy
{
public B1()
{
Go("B1", 800, 10, 50, 10, 10, 10, 100);
}
}
}
BeforeFight.cs
using System;
namespace _7._24
{
class BeforeFight
{
public void Run()
{
Game.player.ShowInfo();
Debug.Log("是否消耗20金币回满血量?",ConsoleColor.Cyan);
Debug.Log("1,是 2,跳过", ConsoleColor.Cyan);
string str = Console.ReadLine();
if (str == "1" && Game.player.money >= 20)
{
Game.player.money -= 20;
Game.player.currentHp = Game.player.maxHp;
Game.player.ShowInfo();
}
}
}
}
Debug.cs
using System;
using System.Threading;
namespace _7._24
{
class Debug
{
public static void Log(int a)
{
Console.WriteLine(a);
Thread.Sleep(1000);
}
public static void Log(string text)
{
Console.WriteLine(text);
Thread.Sleep(1000);
}
public static void Log()
{
for(int i = 0; i < 12; i++)
{
Console.WriteLine("·");
Thread.Sleep(200);
}
Console.WriteLine();
}
public static void Log(string text,ConsoleColor color)
{
Console.ForegroundColor = color;
Console.WriteLine(text);
Thread.Sleep(1000);
Console.ForegroundColor = ConsoleColor.White;
}
public static void Log(string text,int time)
{
Console.WriteLine(text);
Thread.Sleep(time);
}
public static void Log(string text,int time,ConsoleColor color)
{
Console.ForegroundColor = color;
Console.WriteLine(text);
Thread.Sleep(time);
Console.ForegroundColor = ConsoleColor.White;
}
}
}
Enemy.cs
using System;
namespace _7._24
{
enum EnemyType
{
A1,
B1
}
class Enemy
{
SkillType[] skillTypes = {
SkillType.晴天霹雳, SkillType.火舞炫风 };
int[] skillP = {
30, 100 };
public string name;
public int hp;
public int atk;
public int speed;
public int satk;
public int miss;
public int money;
public int exp;
public void Go(string name, int hp, int atk, int speed