﻿using System;
using System.Collections.Generic;

namespace MonsterClicker
{
    using Interfaces;
    using System.Numerics;
    using System.Windows.Forms;
    public class Monster : IMonster
    {
        private BigInteger health;
        private static BigInteger startHealth = 10;
        private BigInteger nextLevelHealth = startHealth;
        //private List<string> photosPaths;
        private Random randomGenerator;

        //TODO: exp and money - every next monster must have more money and exp
        //TODO: exp must be part of health
        //TODO: make class Boss 
        //TODO: make homework
        //TODO: Timer

        public Monster()
        {
            this.Health = startHealth;
            //this.photosPaths = new List<string>();
            this.randomGenerator = new System.Random();
        }

        public BigInteger Health
        {
            get { return this.health; }
            set { this.health = value; }
        }


        public void TakeDamage(BigInteger damage)
        {
            this.Health -= damage;            
        }

        public void GenerateHealth()
        {
            nextLevelHealth += (nextLevelHealth / 10);
            this.health = nextLevelHealth;
        }

        public int GetRandomNumber()
        {            
            var number = randomGenerator.Next(0, 5);
            return number;
        }

        
    }
}
﻿using System;
using System.Collections.Generic;

namespace MonsterClicker
{
    using Interfaces;
    using System.Numerics;
    using System.Windows.Forms;
    public class Monster : IMonster
    {
        private BigInteger health;
        private static BigInteger startHealth = 10;
        private BigInteger nextLevelHealth = startHealth;
        //private List<string> photosPaths;
        private Random randomGenerator;

        //TODO: exp and money - every next monster must have more money and exp
        //TODO: exp must be part of health
        //TODO: make class Boss 
        //TODO: make homework
        //TODO: Timer

        public Monster()
        {
            this.Health = startHealth;
            //this.photosPaths = new List<string>();
            this.randomGenerator = new System.Random();
        }

        public BigInteger Health
        {
            get { return this.health; }
            set { this.health = value; }
        }


        public void TakeDamage(BigInteger damage)
        {
            this.Health -= damage;            
        }

        public void GenerateHealth()
        {
            nextLevelHealth += (nextLevelHealth / 10);
            this.health = nextLevelHealth;
        }

        public int GetRandomNumber()
        {
            int firstNumber = 0;                
            var number = randomGenerator.Next(0, 5);
            if (number == firstNumber)
            {
                while (number == firstNumber)
                {
                    number = randomGenerator.Next(0, 5);
                }
            }
            else
            {
                firstNumber = number;
            }       
            return number;
        }

        
    }
}
Make a picture unque for every next level
Make a picture unque for every next level
