using System;
using System.Collections.Generic;
using System.Text;

namespace WTD_Editor
{
    public class Monster
    {
        // inner class Immune
        public class Immune 
        {
            public int type;
            public int param1;
            public int param2;
            public int param3;

            public Immune()
            {
                type = 2;
                param1 = 0;
                param2 = 0;
                param3 = 0;
            }
        }

        // attributes
        public int usedby;
        public string name;
        public int type;
        public int pal;
        public bool invisible;
        public int gold_bonus;
        public int life;
        public int armor;
        public int speed;
        public List<Immune> immunes;
        public int anim_speed;
        public bool ghost;
        public int size;

        // constructor
        public Monster()
        {
            usedby = 0;
            name = "";
            type = 0;
            pal = (int)Map.M_PAL.RED;
            invisible = false;
            gold_bonus = 0;
            life = 0;
            armor = 0;
            speed = (int)Map.W_SPEED.NORMAL;
            immunes = new List<Immune>();
            anim_speed = (int)Map.MA_SPEED.NORMAL;
            ghost = false;
            size = 1;
        }

        override public string ToString()
        {
            return this.name;
        }
    }
}
