public StackableBuff(string name, 
	                UnitBuffAction newTurn = null, 
	                UnitBuffAction onRemove = null,
	                UnitBuffAction onApplication = null,
	                int duration = 1)
        : base(name, newTurn, onRemove, onApplication, duration)
    {
    }
Ejemplo n.º 2
0
    public UnitBuff(string name, 
	                UnitBuffAction newTurn = null, 
	                UnitBuffAction onRemove = null,
	                UnitBuffAction onApplication = null,
	                int duration = 1)
    {
        this.name = name;
        newTurnDel = newTurn ?? DoNothing;
        this.onRemove = onRemove ?? DoNothing;
        this.onApplication = onApplication ?? DoNothing;
        Duration = duration;
    }
Ejemplo n.º 3
0
    public AuraBuff(string name, Unit owner, int cardinality,
	                UnitBuffAction onRemove = null,
	                UnitBuffAction onAdd = null,
	                bool debuff = false)
    {
        this.name = name;
        this.debuff = debuff;
        this.owner = owner;
        this.cardinality = cardinality;
        GameControl.gameControl.AuraBuffs.Add(this);
        this.onRemove = onRemove ?? DoNothing;
        this.onAdd = onAdd ?? DoNothing;
        AffectedTiles().FindAll(h => h.Unit != null).ForEach(h => onAdd(h.Unit));
    }
Ejemplo n.º 4
0
 public UnitBuff(UnitBuffAction newTurn = null)
 {
     newTurnDel = newTurn ?? DoNothing;
 }