using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class entities : MonoBehaviour
{
    public bool isCastle = false;
    public bool isTower = false;
    public bool isWarrior = false;
    public bool isArcher = false;
    public bool isZeppelin = false;
    public bool isDragon = false;

    public Characters castle = new Characters();
    public Characters tower = new Characters();
    public Characters warrior = new Characters();
    public Characters archer = new Characters();
    public Characters zeppelin = new Characters();
    public Characters dragon = new Characters();

    public void Start()
    {
        CreateCharacter();
    }

    public void CreateCharacter()
    {

            warrior.entityName = "warrior";
            warrior.type = "ground-to-ground";
            warrior.health = 50;
            warrior.speed = 4;
            warrior.attackDamage = 8;
            warrior.attackRange = 1;
            warrior.cost = 2;

        if (isCastle == true)
        {
            castle.entityName = "castle";
            castle.type = "ground-to-air";
            castle.health = 800;
            castle.speed = 0;
            castle.attackDamage = 15;
            castle.attackRange = 4;
            castle.cost = 0;
        }
        else if (isTower == true)
        {
            castle.entityName = "tower";
            castle.type = "ground-to-air";
            castle.health = 500;
            castle.speed = 0;
            castle.attackDamage = 10;
            castle.attackRange = 6;
            castle.cost = 0;
        }
        // else if (isWarrior == true)
        // {
        //     warrior.entityName = "warrior";
        //     warrior.type = "ground-to-ground";
        //     warrior.health = 50;
        //     warrior.speed = 4;
        //     warrior.attackDamage = 8;
        //     warrior.attackRange = 1;
        //     warrior.cost = 2;
        // }
        else if (isArcher == true)
        {
            archer.entityName = "archer";
            archer.type = "ground-to-air";
            archer.health = 40;
            archer.speed = 3;
            archer.attackDamage = 6;
            archer.attackRange = 2;
            archer.cost = 3;
        }
        else if (isZeppelin == true)
        {
            zeppelin.entityName = "zeppelin";
            zeppelin.type = "air-to-ground";
            zeppelin.health = 30;
            zeppelin.speed = 1;
            zeppelin.attackDamage = 30;
            zeppelin.attackRange = 1;
            zeppelin.cost = 5;
        }
        else if (isDragon == true)
        {
            dragon.entityName = "dragon";
            dragon.type = "air-to-air";
            dragon.health = 200;
            dragon.speed = 2;
            dragon.attackDamage = 15;
            dragon.attackRange = 2;
            dragon.cost = 6;
        }
    }
}