Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApp1
- {
- class Program
- {
- static void Main()
- {
- Player player1 = new Player("Isosiska", 10, 8000, 1000, 200);
- player1.ShowInfo();
- }
- }
- class Player
- {
- public string Nick;
- public int Level;
- public int Exp;
- public int Hp;
- public int Mana;
- public Player(string nick, int level, int exp, int hp, int mana)
- {
- Nick = nick;
- Level = level;
- Exp = exp;
- Hp = hp;
- Mana = mana;
- }
- public void ShowInfo()
- {
- Console.WriteLine("Ник игрока: " + Nick + "\nУровень: " + Level + "\nОпыт: " + Exp +"\nМаксимальное здоровье: " + Hp + "\nМаксимальная мана: " + Mana);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement