Difference between revisions of "Implementing weather changes that affect animals"

From TRCCompSci - AQA Computer Science
Jump to: navigation, search
Line 1: Line 1:
 
<syntaxhighlight lang="csharp">  
 
<syntaxhighlight lang="csharp">  
if (menuOption == 1)
+
                if (menuOption == 1)
 
                 {
 
                 {
 
                     TimePeriod++;
 
                     TimePeriod++;
Line 14: Line 14:
 
                     AdvanceTimePeriod();
 
                     AdvanceTimePeriod();
 
                 }
 
                 }
 
 
 
 
 
</syntaxhighlight>
 
</syntaxhighlight>

Revision as of 12:16, 14 March 2017

 
                if (menuOption == 1)
                {
                    TimePeriod++;
                    Season = TimePeriod % 4;
                    ShowDetail = true;
                    AdvanceTimePeriod();
                }
                if (menuOption == 2)
                {
                    TimePeriod++;
                    Season = TimePeriod % 4;
                    ShowDetail = false;
                    AdvanceTimePeriod();
                }