I'm trying to create an interface with an Array list of an abstarct class objects ,but i had no luck so far.What i'm trying to do is this :
interface aoeSkill<ArrayList<Unit> >
{
void aoeAttack(ArrayList<Unit> );
}
class Name extends Unit implements aoeSkill<ArrayList<Unit> > {
public void aoeAttack (ArrayList<Unit> unitsList)
{
this.aoeAttackObj.aoeAttackAct(this.getUnitsWithinRange());
}
}
What i get is multiple errors , at the interface declaration.Any advice would be gratly appreciated!