Structural Hero League Practice

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.