Changes

m
Line 10: Line 10:  
There are a lot of methods for querying the state of the logic in here, but the most important ones are process_day_logic(), process_change(), and process_day_end()
 
There are a lot of methods for querying the state of the logic in here, but the most important ones are process_day_logic(), process_change(), and process_day_end()
   −
process_day_logic() is the main method which calculates how many items you can buy, calculates how many customers show up at your shop, and how many drinks you manage to sell to your customers that day.  in other words, it gets run to calculate the outcome of the 'day' phase.
+
process_day_logic() is the main method which calculates how many items you can buy, how many customers shop at the stand, and how many drinks sold that day.  In other words, it runs to calculate the outcome of each 'day' phase.
    
process_change() runs the user's input against the change-counting algorithm to see if the user has picked the correct amount.  If the amount is right, it allows the player to proceed, otherwise it prompts the player that he has not succeeded and restarts the input.
 
process_change() runs the user's input against the change-counting algorithm to see if the user has picked the correct amount.  If the amount is right, it allows the player to proceed, otherwise it prompts the player that he has not succeeded and restarts the input.
   −
process_day_end() simply calls all events that happen at the end of the day, like random events, weather changes, etc.  If a new type of event is introduced it should probably get called here.
+
process_day_end() simply calls all events that happen at the end of the day, like random events, weather changes, etc.  If a new type of event is introduced, it should probably get called here.
    
==GUI: LemonadeGui.py==
 
==GUI: LemonadeGui.py==
5

edits