コード例 #1
0
ファイル: CardModel.cs プロジェクト: dshook/centauri-tac
 /// <summary>
 /// Returns if this card needs to have some sort of targeting, area or targets
 /// </summary>
 public bool needsTargeting(PossibleActionsModel possibleActions)
 {
     var targets = possibleActions.GetActionsForCard(playerId, id);
     var area = possibleActions.GetAreasForCard(playerId, id);
     return (targets != null && targets.targetPieceIds.Count >= 1) || (area != null && area.isCursor);
 }
コード例 #2
0
ファイル: CardModel.cs プロジェクト: dshook/centauri-tac
 public bool isChoose(PossibleActionsModel possibleActions)
 {
     return possibleActions.GetChoiceCards(playerId, id) != null;
 }