public ActionConstraint AndThen(ActionConstraint constraint)
 {
     m_AndThen.Add(constraint);
     Description += " and\n";
     Description += constraint.Description;
     return(this);
 }
Beispiel #2
0
 /// <summary>
 /// Called to generate the constraints of this ability.
 /// </summary>
 public void initialzeMyConstraint()
 {
     myConstraint = new ActionConstraint(myName, tileConstraint, turnConstraint, losType, aoeType);
 }
Beispiel #3
0
 /// <summary>
 /// Called to clear a unit's status override.
 /// </summary>
 public void clearOverrideConstraint()
 {
     overrideConstraint = null;
 }
Beispiel #4
0
 /// <summary>
 /// Called to override a unit's status.
 /// </summary>
 public void setOverrideConstraint(ActionConstraint overrideC)
 {
     overrideConstraint = overrideC;
 }