Namespace Structural Hero League practice
{
Class Program
{
struct player
{
public string name;
public int Dengji;
Public Zy Z;
Public ZB CZ;
}
struct ZY
{
public int ll;
public int en;
public int MJ;
public int fy;
}
struct ZB
{
public string SX;
public string WJ;
public string Yx;
public string NY;
}
static void Main (string[] args)
{
Player A = new player ();
A.name = "Li Qing";
A.dengji = 1;
A.z.ll = 50;
A.z.zh = 30;
A.Z.MJ = 100;
A.z.fy = 43;
A.CZ.SX = "Force of three items";
A.CZ.WJ = "Endless Blade";
A.cz.yx = "Drink Blood sword";
A.cz.ny = "Female Demon veil";
Player B = new player ();
B.name = "Ya-Rope";
B.dengji = 1;
B.Z.LL = 100;
B.z.zh = 15;
B.Z.MJ = 100;
B.z.fy = 43;
B.CZ.SX = "Stati electric Blade";
B.CZ.WJ = "Endless Blade";
B.cz.yx = "The blade of a ruined king";
B.cz.ny = "Spring elder brother Jia";
Console.WriteLine ("Hero Name:" +a.name+ "\ n rank:" +a.dengji+ "\ n power:" +a.z.ll+ "\ n Wisdom:" +a.z.zh+ "\ n Agility:" +a.z.mj+ "\ nthe defense:" +a.z.fy+ "\ n Equip:" + (a.cz.sx+ "\ t" +a.cz.wj+ "\ T" +a.cz.yx+ "\ T" +a.cz.ny));
Console.WriteLine ();
Console.WriteLine ("Hero Name:" + b.name + "\ n level:" + B.dengji + "\ n Power:" + b.z.ll + "\ n Wisdom:" + B.z.zh + "\ n Agility:" + B.Z.MJ + "\ n Defense:" +b.z.fy+ "\ n Equip:" + (b.cz.sx + "\ T" + b.cz.wj + "\ T" + B.cz.yx + "\ T" + b.cz.ny));
start calculating damage below//
//Blood = default value + Power * Level *1+ defense * Level *
//Energy = default Value + Smart * Level *2+ agility * Level
int QX = + A.z.ll * A.dengji * 1 + a.z.fy * a.dengji* 2;
int NL =100 + a.z.zh * A.dengji * 1 + A.Z.MJ * A.dengji * 2;
int qx1 = + B.z.ll * B.dengji * 1 + b.z.fy * B.dengji * 2;
int NL1 = + B.z.zh * B.dengji * 1 + B.Z.MJ * B.dengji * 2;
Console.WriteLine (a.name+ "Qi and Blood:" +qx+ "\ T energy:" +nl+ "\ n" +b.name+ "Qi and Blood:" +qx1+ "\ T energy:" +NL1);
Console.ReadLine ();
}
}
}
Structural Hero League Practice