package pl.nullcoders.nguilds.guild;

import java.util.ArrayList;
import java.util.List;

import org.apache.commons.lang.Validate;
import org.bukkit.entity.Entity;

public class Guild
{

    private List<User> users;
    private String name, tag;
    private User owner;
    private Entity healthEntity;
    private List<User> mods;
    private int damageTotalit;
    private List<Guild> allies;
    private List<Guild> enemies;
    private int timeInGame;

    public Entity getHealthEntity() {
        return healthEntity;
    }

    public void setHealthEntity(Entity healthEntity) {
        this.healthEntity = healthEntity;
    }

    public List<User> getMods() {
        return mods;
    }

    public void setMods(List<User> mods) {
        this.mods = mods;
    }

    public int getDamageTotalit() {
        return damageTotalit;
    }

    public void setDamageTotalit(int damageTotalit) {
        this.damageTotalit = damageTotalit;
    }

    public List<Guild> getAllies() {
        return allies;
    }

    public void setAllies(List<Guild> allies) {
        this.allies = allies;
    }

    public List<Guild> getEnemies() {
        return enemies;
    }

    public void setEnemies(List<Guild> enemies) {
        this.enemies = enemies;
    }

    public int getTimeInGame() {
        return timeInGame;
    }

    public void setTimeInGame(int timeInGame) {
        this.timeInGame = timeInGame;
    }

    public Guild(String name, String tag, User owner)
    {
        Validate.notNull(name, "Name cannot be null!");
        Validate.notNull(tag, "Tag cannot be null!");
        Validate.notNull(owner, "Owner cannot be null!");
        this.name = name;
        this.tag = tag;
        this.owner = owner;
        this.users = new ArrayList<>();
    }

    public List<User> getUsers()
    {
        return users;
    }

    public String getName()
    {
        return name;
    }

    public String getTag()
    {
        return tag;
    }

    public User getOwner()
    {
        return owner;
    }


}
