/// <summary> /// Adds Character to Team /// </summary> /// <param name="p"> /// Character to Add /// </param> /// <returns> /// returns true if character was added, false if character is already in it /// </returns> public bool AddMate(MyHexCharacter p) { for (int i = teammates.Count - 1; i >= 0; i--) { if (teammates[i] == p) { return(false); } } teammates.Add(p); return(true); }
public abstract bool OnActivate(MyHexCharacter me, MyHexCharacter enemy);
public abstract bool OnSelect(MyHexCharacter me);
public abstract bool OnActivate(MyHexCharacter me, MyHexCharacter attacker);