Gifflen/Javademic — Issue #5: Discover a cure with rough pseudocode
Author: drinne
Created: 2011-12-14 01:29:56+00:00
State: open
Labels: Interactions

OK I reference an eradication process count but for this project it's a nice-to-have

Discover A Cure
Cure Disease
•	If player/pawn role == ResearchScientist then SpecialAbility is this.SpecialAction
•	Where playercards.(disease(x)Color ==locationColor) = 4
•	and GUI Special Actions Menu puts “Discover A Cure” button on top in “Special Ability” button field
•	and resorts the other buttons into the “Special Action” buttons
Else
•	If Player/pawn role != ResearchScientist &&
•	If Currentplayer’s Location contains Research Station == false || Currentplayer’s Hand doesn’t not contain playercards. Where playercards.(disease(x)Color ==locationColor) != 5
•	== Currentplayer’s location then display inactive “Discover A Cure” button
•	If Currentplayer’s Location contains Research Station == true && Currentplayer’s Hand contain playercards Where playercards.(disease(x)Color ==locationColor) = 5, then display clickable “Discover A Cure” button

Special Action user prompt after has three choices /buttons
“yes” , “no” “return to Action Menu”
•	On Mouseclick the GUI will prompt the Currentplayer “ You have cured Disease (X) !”
•	If Disease(X) = cured then all Infect & outbreak methods addDisease(X)Cubes +0/
•	this.Location registers to the eradicationCount() && checks to confirm Currentplayer location then update board state and turnActionCount - -
•	if turnActionCount == 0 then startDrawPhase else display ActionMenu GUI for Currentplayer