Exemple #1
0
 public virtual bool AllowedAction(InGameAction inGameAction, XmlGame game)
 {
     if (_AllowedActions.Contains(inGameAction.GetType()))
     {
         return true;
     }
     else
     {
         return false;
     }
 }
Exemple #2
0
 /// <summary>
 /// Returns true if passed action is allowed to be performed in current
 /// game phase
 /// </summary>
 /// <param name="inGameAction"></param>
 /// <returns></returns>
 public virtual bool IsAllowed(InGameAction inGameAction, XmlGame game)
 {
     return _AllowedActions.Contains(inGameAction.GetType());
 }