Exemple #1
0
        public Mob(Level level, GridDisplay grid, MobTemplate template, int health, int attack, int defense)
        {
            _grid  = grid;
            _level = level;

            MaxHealth = Health = health;
            Attack    = attack;
            Defense   = defense;
            Name      = template.Name;
            Color     = template.Color;
            Tile      = template.Tile;
        }
Exemple #2
0
        public Mob(Level level, GridDisplay grid, MobTemplate template, int health, int attack, int defense)
        {
            _grid = grid;
            _level = level;

            MaxHealth = Health = health;
            Attack = attack;
            Defense = defense;
            Name = template.Name;
            Color = template.Color;
            Tile = template.Tile;
        }