Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace OOP
- {
- class Program
- {
- static void Main(string[] args)
- {
- Mage fireMage = new Mage(120, 250, 60, 2);
- fireMage.ShowStats();
- }
- }
- class Mage
- {
- public int Health;
- public int Mana;
- public int Damage;
- public int CastTime;
- public Mage(int health, int mana, int damage, int castTime)
- {
- Health = health;
- Mana = mana;
- Damage = damage;
- CastTime = castTime;
- }
- public void ShowStats()
- {
- Console.WriteLine("HP - " + Health + "\nMP - " + Mana + "\nDMG - " + Damage + "\nCast Time - " + CastTime + " sec");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement