C# Class ctac.PossibleActionsModel

Mostrar archivo Open project: dshook/centauri-tac Class Usage Examples

Public Properties

Property Type Description
chooseCards List>.Dictionary
eventedPieces List
metConditions List>.Dictionary
possibleAbilities List>.Dictionary
possibleActions List>.Dictionary
possibleAreas List>.Dictionary
spellDamage int>.Dictionary

Public Methods

Method Description
GetAbilitiesForPiece ( int playerId, int pieceId ) : AbilityTarget

Gets any ability targets if they exist for a piece, null if none

GetActionsForCard ( int playerId, int cardId ) : ActionTarget

Gets any action targets if they exist for a card, null if none Note, that this may need to be scoped to the event but for now playMinion or playSpell will work the same

GetAreasForCard ( int playerId, int cardId ) : AreaTarget
GetChoiceCards ( int playerId, int cardId ) : ChoiceCard
GetSpellDamage ( int playerId ) : int
Update ( PossibleActions newActions ) : void

Method Details

GetAbilitiesForPiece() public method

Gets any ability targets if they exist for a piece, null if none
public GetAbilitiesForPiece ( int playerId, int pieceId ) : AbilityTarget
playerId int
pieceId int
return AbilityTarget

GetActionsForCard() public method

Gets any action targets if they exist for a card, null if none Note, that this may need to be scoped to the event but for now playMinion or playSpell will work the same
public GetActionsForCard ( int playerId, int cardId ) : ActionTarget
playerId int
cardId int
return ActionTarget

GetAreasForCard() public method

public GetAreasForCard ( int playerId, int cardId ) : AreaTarget
playerId int
cardId int
return AreaTarget

GetChoiceCards() public method

public GetChoiceCards ( int playerId, int cardId ) : ChoiceCard
playerId int
cardId int
return ChoiceCard

GetSpellDamage() public method

public GetSpellDamage ( int playerId ) : int
playerId int
return int

Update() public method

public Update ( PossibleActions newActions ) : void
newActions PossibleActions
return void

Property Details

chooseCards public_oe property

public Dictionary> chooseCards
return List>.Dictionary

eventedPieces public_oe property

public List eventedPieces
return List

metConditions public_oe property

public Dictionary> metConditions
return List>.Dictionary

possibleAbilities public_oe property

public Dictionary> possibleAbilities
return List>.Dictionary

possibleActions public_oe property

public Dictionary> possibleActions
return List>.Dictionary

possibleAreas public_oe property

public Dictionary> possibleAreas
return List>.Dictionary

spellDamage public_oe property

public Dictionary spellDamage
return int>.Dictionary